anti-entropy-governanc…
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth…
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Claude Code
$ npx -y skills add GanyuanRan/Aegis --skill writing-skills --agent claude-code
Codex
$ npx skills add GanyuanRan/Aegis --skill writing-skills -a codex -y
Cursor
$ npx skills add GanyuanRan/Aegis --skill writing-skills -a cursor -y
Gemini CLI
$ npx skills add GanyuanRan/Aegis --skill writing-skills -a gemini-cli -y
GitHub Copilot
$ npx skills add GanyuanRan/Aegis --skill writing-skills -a github-copilot -y
OpenCode
$ npx skills add GanyuanRan/Aegis --skill writing-skills -a opencode -y
Windsurf
$ npx skills add GanyuanRan/Aegis --skill writing-skills -a windsurf -y
name: writing-skills description: "Use when creating new skills, editing existing skills, or verifying skills work before deployment"
Create the smallest reusable skill that changes decisions or improves task execution without constraining unrelated work. Skill changes use behavior validation, not a code TDD route. This validation does not require loading `aegis:test-driven-development`.
check already owns it. Prefer the smallest existing owner.
discovery tests, and bundled resources before changing or retiring them.
conventions in the project owner and automate mechanical constraints when practical.
Use representative tasks, not questions that merely ask the agent to recite instructions.
only when testing whether the skill itself needs to exist.
case appropriate to the skill type.
references, and unknowns. Do not treat line or byte counts as behavior proof.
If meaningful behavior cannot be evaluated, stop at `needs-verification`; do not claim that the skill is deployment-ready or capability-preserving.
criteria, safety boundaries, and steps whose omission caused an observed gap.
only for fragile, permission-sensitive, or safety-critical operations.
capability and when it applies; add an exclusion only when it prevents likely misrouting. Do not turn the description into a procedural shortcut.
Move substantial conditional detail to a direct reference and state the evidence trigger for reading it.
by default or duplicate its content in the main body.
representative example is normally enough.
paths, and UI choreography in their host-owned documentation.
The canonical repository shape is `skills/<skill-name>/SKILL.md` with only the supporting references, scripts, or assets the workflow actually uses. Use the repository's host docs or the target host's live specification for optional metadata instead of copying a vendor manual into the skill.
Address observed gaps and remove superseded duplication in the same slice. Preserve public attribution and any externally supported contract. When retiring an internal owner, fallback, or resource, compose `aegis:anti-entropy-governance`; do not leave a compatibility copy without dependency evidence.
Do not convert one model's phrasing, one historical incident, or a hypothetical edge case into a universal rule.
Re-run the same positive, negative, and pressure/application scenarios under a comparable model, tool, and host configuration. Compare outcomes, not wording.
Also verify:
touched surface pass.
If behavior regresses, restore the missing obligation or narrow the change; do not add a second owner or fallback to mask it.
| Skill type | Representative evidence | | --- | --- | | Discipline or safety | realistic pressure and authorization boundaries | | Technique | application, variation, and missing-information cases | | Pattern | recognition, application, and counter-example cases | | Reference | retrieval, correct use, and common-gap cases |
For a complex or high-risk skill where an independent evaluator adds confidence, read `testing-skills-with-subagents.md`.
Keep the result compact and auditable in natural prose or equivalent fields:
This is method-pack evidence, not authoritative completion or deployment approval.
Aegis Method Pack Make your AI coding agent trustworthy: fewer reworks, safer changes, proof before "done". English · 中文 · Fast-Track Playbook · 速通秘籍 Stop babysitting your agent.
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth…
Use when defining ambiguous or high-complexity new features, product behavior, UI/component design, architecture choices,…
Use when the user asks for caveman mode, fewer tokens, brief responses, compressed communication, or otherwise explicitly…
Use when facing 2+ independent tasks without a written plan, with no conflicting shared mutable state or sequential dependencies,…
Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain…
Use when executing a written implementation plan across sessions or with review checkpoints. Small or single-slice plans stay…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.