docs: add skill-lifecycle strategy spec#2
Open
luw2007 wants to merge 10 commits into
Open
Conversation
--bare stripped all MCP tools, causing 100% task failure. Now uses DISABLE_OMC + OMC_SKIP_HOOKS env vars to prevent hook recursion while keeping full tool access. Also bumps defaults: - max-budget-per-task: 0.30 -> 1.00 - total-budget: 2.00 -> 5.00 - timeout-sec: 180 -> 300
~/.claude is auto-managed by Claude Code, all changes are safe to commit. The allowlist approach was blocking nightly runs whenever any new file appeared (settings, plans, skills, etc).
…ssible to complete within timeout
- Add src/extract_corrections.py to scan session JSONL for user negation patterns - Add plugin.json manifest for nightly plugin - Add corrections.jsonl output placeholder - Add .omc/ to .gitignore (runtime state)
…w, writes run-history.jsonl
…ptimizer - Add src/skill_lifecycle.py adapter wrapping skill-router's manage.py for single-target archive/recall with JSON output and NIGHTLY-compatible exit codes (0=success, 1=no-candidate, 3=safety-rejected) - Update agents/nightly-optimizer.md: add skill-lifecycle as 6th strategy, document propose/apply/revert flow, update hard rule 5 with skill directory exception - Add .claude/nightly_skill-lifecycle-integration-spec.md design spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a spec for a new
skill-lifecyclemutation strategy that archives unused skills and recalls demanded archived skills based on session transcript usage analysis.What this proposes
A 6th strategy for the nightly optimizer loop:
_archive_skills/— reduces prompt token noiseKey design decisions
src/skill_lifecycle.py): wraps session scanning + filesystem moves with JSON output and NIGHTLY-compatible exit codes (0/1/3)git reset --hardFiles
docs/spec-skill-lifecycle.md— full English specNo code changes in this PR — spec only for discussion before implementation.