Authoring Rules
Edit Rules
- Before writing a new rule, check whether the repository already implements the same decision in scripts, generated assets, or another skill. A rule that contradicts working code makes the next run "fix" assets that were already correct. A constraint tied to one machine or host (drive/DLP policy, installed CLI, account setup) normally belongs in the user's host-level instruction, not a portable skill: check for an existing one and, if present, do not copy it; if absent, report it as a handoff candidate instead of writing it here.
- A single negative observation is not a rule. Before writing "the feature is absent here", rule out authentication state, activation, mode and environment; otherwise record the observation's conditions rather than an absolute.
- Compaction targets the minimum information the model needs to act; human readability is secondary.
- Use this refactor order: delete text unnecessary for normal/exception/stop decisions -> merge/compact needed text -> move long detail to
references/-> add missing guidance. Age alone does not obsolete history; confirm its original is preserved before removal and retain unsaved notes. - Do not add generic or obvious process advice; prefer gotchas, verification checks, and failure-avoidance rules that change future behavior.
- Preserve non-obvious decision criteria, gotchas, done criteria, and failure-avoidance rules.
- Do not repeat the same
Learning / Evidence / Impactin different wording. - Classify every learning so none stays unprocessed. An out-of-scope learning is
handoffwhen its recommended destination is confirmed and確認待ちotherwise, never見送りmerely for being out of scope. Areview-onlyproposal is提案のみ, never reported as reflected.
Apply Details
- For new skills, create at minimum
SKILL.mdwith frontmatter:name,description,argument-hint,user-invocable,license, andmetadata.authorwhen the repo convention uses them. Decide manual-only (disable-model-invocation: true) vs model-only (user-invocable: false) deliberately; a manual-only skill needs a concreteargument-hint. Treatcontext: forkas experimental (add only with an inline fallback). - Skills index README: it is a generated shared file, so edit it only via the repo's generator (commonly a script under
<private-repo>/scripts/with a check flag). Check once after skill edits; if stale, regenerate, review the diff rows, then confirm the check passes. Commit it on its own (docs(skills): refresh skill index), never mixed into a skill commit, and never hand-edit rows. Stale descriptions of other skills are expected carry-over, not a reason to skip. If no generator exists, skip and say so in the report. - Verify table/formatter drift; group relevant formatting with the owning skill's small change. Separate unrelated normalization; never blanket-stage or split one bounded improvement into repeated pushes.
Report Template
Use this compact report:
# Retro: [Title]
- Target: <private-repo>/.github/skills/<skill>/...
- Learnings: <what changed behavior>
- Outcomes: <each learning -> 反映済み / 既存で充足 / 見送り / handoff / 確認待ち / 承認待ち / 提案のみ>
- Changes: <files changed>
- Index: <README regenerated / already current / no generator>
- Commit: <hash or none>
- Gate: pass / stop reason