一键导入
compact-skill-creator
Author or refine a skill for maximum token economy without losing intent. Use when creating any new skill or editing an existing `SKILL.md`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Author or refine a skill for maximum token economy without losing intent. Use when creating any new skill or editing an existing `SKILL.md`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit the current project's agent-memory and, block by block, relocate each entry into a user-controlled home (project doc/skill/rule or user-level skill/rule) or archive it — draining memory so nothing uncontrolled accumulates in the agent's context.
How to write texts meant to be published by humans for other humans.
Fresh-eyes review of a changeset by a fresh-context agent — catches regressions and correctness issues the authoring context reads past.
Check how much of a ticket is already implemented — split it into requirement blocks, judge each against the code, and save a human-readable TICKET-STATUS report in the planning dir.
Audit what auto-loads into an agent session's context window and suggest lean, reversible fixes to cut startup tokens.
Assist a human reviewing a pull request or branch locally — diff a source branch against its target (auto-detected or from a PR link) and return concise, human-voice review comments with file and line locations. Read-only, never posts.
| name | compact-skill-creator |
| description | Author or refine a skill for maximum token economy without losing intent. Use when creating any new skill or editing an existing `SKILL.md`. |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
| license | MIT |
| metadata | {"author":"Francesco Borzì","version":"1.15"} |
Author a new skill, or improve an existing one, so it carries all its rules and intent in the
least text possible. Cost has two tiers: the description sits in context every session — the
skill's most expensive text — while the body loads only when the skill triggers. Both stay lean. Be
interactive: gather what you need, draft, then apply only on approval.
The compaction rules — the least-text principle, the removal-audit verification, and the present-and-confirm with a measured word delta — live in compact-docs-writer, the single source of truth; this skill never restates or re-derives them. From the moment you draft (step 4) through self-review (step 5) and present (step 6), always invoke compact-docs-writer and follow its workflow on the skill text — reading it, applying its principles by hand, or naming it after a direct edit does not count. This skill adds only the skill-specific layer: trigger taxonomy, agnosticism, progressive disclosure, completion criteria, metadata, and the version-bump decision.
How a skill is triggered decides how its description is written. Classify into one:
/command, or sibling skills/rules that reference it
explicitly. The by-name reference does all the routing, so trigger wording buys nothing: the
description is one short line of what the skill does — enough for a human choosing from a
list — never a body summary, never a "load when …" clause. When the skill format can block
model invocation (e.g. a disable-model-invocation flag), set it for Manual skills nothing
invokes programmatically — the description then costs no standing context; when sibling skills
must drive this one, keep it model-invocable and mark it "invoke manually only" in the
description instead.Governing rule: description tokens are justified only by trigger precision, never by summary. Compress within a type — but never starve a Mandatory trigger to save a few tokens.
In every type, never use : in the description — : in the unquoted value breaks some agents'
YAML parsers; avoid the character rather than quote it.
Two sharpeners for the trigger wording:
Placement corollary: the body loads only after the skill triggers, when the choice is already made — so keep when-to-use and routing cues in the description (read before the choice), never in the body, where they steer nothing.
A skill folder can hold a lean SKILL.md that references supporting .md docs. A referenced doc
loads only when the agent follows the pointer — that is the lever.
When a skill encodes steps, end each on a completion criterion the agent can check — done vs not-done — and make it exhaustive where a partial pass could look complete ("every modified file accounted for", not "produce a summary"). A vague criterion is what makes an agent wrap up early; sharpening it is the first and cheapest fix. Only when a criterion stays irreducibly fuzzy and later steps still tempt rushing should those later steps move out of sight (a follow-on skill or a disclosed doc).
name field must match, in kebab-case.SKILL.md files, git config user.name, repo LICENSE), ask the
user to confirm or override. Version starts at "1.0", or "0.x" when the author wants a trial
period before declaring the skill stable — ask which. Improving: preserve existing fields, and
flag any missing one.Wording agent-agnostic? Project coupling contained? Cross-references limited to declared dependencies or a real operational benefit?
Trigger type identified, and the description written to fit it? Test it four ways, reading only the description:
Reword until all four hold.
No new or grown inline chunk meets the split test (progressive disclosure)?
Steps end on checkable, exhaustive completion criteria?