skill-management
Use when condensing, decondenseing, refactoring, or improving existing skills. Covers the full skill lifecycle from verbose → sharp → maintained.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 19
- Forks
- 1
01 前言 Front Matter
- name
- skill-management
- packs
- [ "meta" ]
- scope
- { "write": [], "verification_reason": "execution.handler is internal, so this skill spawns no subprocess — writes happen through the agent's declared allowed_tools. No command can prove a scope the skill never executes." }
- domain
- process
- source
- project
- execution
- { "type": "assisted", "handler": "internal", "allowed_tools": [] }
- model_tier
- inherit
- workspaces
- [ "agent-config-maintainer" ]
- description
- Use when condensing, decondenseing, refactoring, or improving existing skills. Covers the full skill lifecycle from verbose → sharp → maintained.
03 SKILL.md 正文
skill-management
When to use
Use this skill when:
- Condenseing a verbose skill into a sharper version
- Expanding a condensed skill into a maintainable source-of-truth
- Refactoring a skill to fix structure, scope, or quality issues
- Migrating skills to new standards
Do not use when:
- Creating a new skill from scratch (use
skill-writing) - Reviewing/validating a skill (use
skill-reviewer)
Procedure: Manage a skill
Mode: Condense
Trigger: "condense skill", "shorten skill", "make skill sharper"
- Inspect — what is the core job? Which lines are redundant?
- Preserve critical skeleton: When to use, Procedure, Output format, Gotchas, Do NOT
- Condense trigger — rewrite description for fast matching
- Condense decision logic — explanations → direct choices
- Condense procedure — each step short and executable
- Remove obvious content — keep only what model forgets or misuses
- Validate — condensed version must be: easier to scan, easier to trigger, at least as safe
Iron rule: Condensation must NOT weaken validation or remove decision hints that prevent mistakes.
Linter gate: After condensation, run ./scripts-run src/scripts/skill_linter on the file — must be 0 FAIL.
Mode: Decondense
Trigger: "expand skill", "decondense skill", "make skill clearer"
- Inspect — which parts are unclear or too condensed?
- Restore full structure (all required sections)
- Expand trigger — make "When to use" clearer
- Expand procedure — turn terse steps into clear actions
- Strengthen validation — make checks explicit and testable
- Add minimal explanations only where they improve execution
- Validate — expanded version must be: clearer, still executable, not noisy
Iron rule: Expansion must NOT turn skills into documentation. Add context, not prose.
Linter gate: After expansion, run ./scripts-run src/scripts/skill_linter on the file — must be 0 FAIL.
Mode: Refactor
Trigger: "refactor skill", "improve skill", "fix skill structure"
- Inspect — identify missing sections, weak areas, anti-patterns
- Clean structure — ensure required sections exist
- Improve procedure — make steps concrete, add validation
- Remove noise — delete obvious/redundant content, merge duplicate bullets
- Refine scope — ensure single responsibility, split if multiple workflows
- Compare before/after — must be clearer, at least as executable, not broader
Linter gate: After refactoring, run ./scripts-run src/scripts/skill_linter on the file — must be 0 FAIL.
Independence check: After refactoring, verify the skill is still executable without opening any guideline. If the refactor introduced guideline delegations ("see guideline X"), ensure the Procedure still works standalone.
Decision hints:
- Too long → condense or split
- Too generic → narrow scope
- Missing validation → add it
- Too dependent on guidelines → inline essential steps
- Multiple workflows → split into separate skills
Common anti-patterns
- Same idea repeated in Goal, Core rules, and Gotchas
- Long paragraphs where one bullet would do
- Vague procedure steps ("think about X")
- Condensation that deletes safety-critical checks
- Over-expansion that turns skills into documentation
- Refactoring scope instead of structure
- Removing gotchas because they "look verbose"
Output format
- Updated skill file(s) passing linter with 0 FAIL
- Before/after line count comparison
Gotchas
- Over-condensation removes important nuance
- Some examples look verbose but are load-bearing
- Shorter is not better if trigger quality drops
- Changing intent instead of improving structure
- Condensed versions must be derived from uncondensed source, not the other way around
- Validation steps are non-negotiable — every Procedure must end with a concrete verify/confirm step. Skills without validation pass the linter today but cause failures when the linter is tightened.
- Renaming headings to "Procedure:" without adding steps creates false structure — the linter now requires ordered steps or sub-headings inside Procedure blocks.
Do NOT
- Do NOT remove validation steps
- Do NOT condense away decision hints that prevent mistakes
- Do NOT change the skill's core intent
- Do NOT merge unrelated workflows to save space
- Do NOT expand everything blindly — only where it helps execution
- Do NOT rewrite without understanding original intent
- Do NOT skip the
preservation-guardrule checklist before completing any transformation
Auto-trigger keywords
- condense skill
- decondense skill
- refactor skill
- improve skill
- shorten skill
- expand skill
- telegraph condense
- make skill sharper
04 同仓库更多 Skills
unknown-key-fixture
Declares a key the schema does not know.
portable-fixture
Declares only semantics the MCP-lite carrier transports whole.
non-portable-fixture
Declares a runtime semantic the carrier drops.
candidate-zero-width
A candidate whose prose carries an invisible joiner.
candidate-disclosure-suppression
A candidate whose prose tells the agent to withhold from the user.
candidate-dangerous-frontmatter
A candidate claiming an unscoped tool grant and a permission bypass.