writing-skills
Cross-cutting (meta) block: this is the skill that explains how to write the other skills.
Applies as soon as a gap is identified in the pipeline or a sourced idea deserves to be
rewritten our way (Rule B).
When
- A gap is spotted in the pipeline (e.g. "we're missing a model router" →
choose-model).
- An idea seen elsewhere (market repo, article, aitmpl.com, superpowers) looks useful but doesn't
exist here yet.
- An existing skill no longer matches real usage and needs revising.
Steps
Check that no existing block already covers the need: read CATALOG.md and the skills
table in README.md before writing anything. A duplicate costs more than a gap (Rule B,
adoption checklist).
Isolate the real mechanism, not the packaging: if the skill is sourced from an external
repo, read the concept until you can explain it without the source file in front of you.
Write to the single template (CONVENTIONS.md):
- frontmatter
name + description starting with "Use when..."; description is what routes
the block, and it is truncated at 1,536 characters in the listing — that is a platform
limit, not a style preference, so a description written to summarise instead of to route
loses its tail silently
- the optional frontmatter fields, declared only when the block needs one:
paths so a
stack block doesn't load on another stack's files, allowed-tools so an operator isn't
approving each gate command, disallowed-tools to keep an autonomous block out of
AskUserQuestion, disable-model-invocation for a step nobody should trigger by accident,
context: fork when the step belongs in a subagent rather than in the conversation. The list
and what each one costs are in references/claude-code-platform.md §2 — including which of
them make the block Claude Code-only, which is a rule C decision and not a detail
# name
## When
## Steps
## Output / checkpoint
## Guardrails
## Origin: never empty: either an external source credited honestly, or "no external
source, internal synthesis".
Place the skill in the pipeline if it has a numbered step (see the README.md table), or
mark it "cross-cutting" if it applies everywhere without being a sequential step (e.g.
choose-model, dispatch-parallel).
Update CATALOG.md (registry + source traceability) and the skills table in README.md
in the same move; a skill not referenced in both becomes invisible and gets rewritten twice
later.
Stay publishable (Rule C): no real project name, no secret, a generic role ("the Laravel
backend") never an internal repo name: except in an internal MR-review implementation, which has a different
status (production evidence, real names owned).
Order within a section by how often the rule fires, not by when it occurred to you. A block grows one
real gap at a time (a re-check, a review finding), and appending each addition at the bottom of its
section is how the load-bearing rule from month one ends up under ten rare-case additions from month six —
the "lost in the middle" effect applies to a skill file exactly as it does to any other long context. When
a section passes roughly ten points, that's the signal to re-sort it (common case first) rather than to
keep appending, not a hard line to enforce mechanically.
A filter block states a positive requirement. A block that only forbids produces empty output; say
what the result must contain. Every detection block also carries a mandatory section on what not to
flag, because a detector without one drifts into false positives.
A rule names the artefact that proves it was applied, or it becomes a hook. Adding a canon without
cutting the sources it absorbed reproduces the duplication it was meant to remove.
Every scanner added locks its tiers with a regression test, so a threshold cannot be loosened by
editing the scanner alone.
Points 11 to 49 live in a reference file: gotchas sections, what to put in a skill and what to cut,
calibrating control, validation patterns and description-writing rules from the open Agent Skills guides,
then completion criteria, positive steering, no-ops, pointer wording and pruning from a second source,
then contents lists, the 500-line ceiling, freedom per step, verification loops, undeclared dependencies
per-model testing, the pre-share validator, script intent, staleness, full tool names, evaluations first and vetting a block from outside from a third.
Read it when drafting or revising a body or a description:
references/11-authoring-rules.md. Whether a description actually
triggers is measured with skill-trigger-evals, not judged by eye.
Output / checkpoint
A complete skills/<name>/SKILL.md file following the template, referenced in CATALOG.md and
in the README.md table, with a non-empty Origin section.
Guardrails
- Never a skill without
## Origin: honesty about the source (internal vs sourced from the
market vs rewritten from a specific repo) is structural, not optional.
- Never install an external repo as a dependency: we read, we rewrite, we credit (Rule B): never
a
git submodule or a runtime import to a third-party repo.
- A skill that duplicates an existing block is a regression, not an addition: check step 1 before
writing, not after.
Origin
Rewrite of the writing-skills skill from a market skill/agent framework; there it documents
their own template, here it documents ours (the single template in CONVENTIONS.md), plus the
Rule B adoption checklist (check for duplicates, credit the source) which doesn't exist as such
on the superpowers side.
Step 7 (ordering by frequency, re-sort past ~10 points) added 2026-08-10 from the "context engineering"
literature's lost-in-middle effect and progressive-disclosure framing (surveyed via a market
context-engineering skill kit while scouting for new market blocks worth adopting; no code or text
copied, the mechanism was already familiar from long-context work and is stated here in our own terms).
Concrete trigger for writing it now rather than leaving it as a general instinct: several blocks in this
repo (vue-nuxt-vuetify-conventions, react-nextjs-conventions) grew past 10 points per section across
this session's re-checks, each addition appended at the bottom of its list.
Points 11 to 30 (in references/11-authoring-rules.md) added 2026-10-19 from the Agent Skills open
specification and its best-practices and description guides, agentskills/agentskills commit 69ef37e (docs
CC BY 4.0, credited, restated in our words), details in references/origin.md.
Steps 8 to 10 added 2026-10-02 from a read of public prose-quality and design-quality filters: the
positive-requirement and not-to-flag rules come from how those filters fail, the proof-artefact rule and
the scanner regression test from the corpus's own history of unenforced guarantees.
Points 31 to 38 (completion criteria, steering by the positive, no-ops, pointer wording, the environment as a source of truth, sediment, one meaning one place, leading words) added 2026-10-19 from writing-for-agents of mattpocock/skills (MIT), wording ours, details and the owner's decision on guardrail style in references/origin.md.
Points 39 to 44 (contents list past 100 lines, one-level pointers, freedom per step, verification that loops back, no assumed installs, per-model testing, pre-share validation) added 2026-11-10 from two secondary write-ups of the vendor's updated skill best practices, wording ours, details in references/origin.md.
Points 45 to 48 and the verification of 39 to 44 added 2026-11-10 from the vendor skill best-practices page and the open Agent Skills specification, read directly; wording ours, details in references/origin.md.
1---2name: writing-skills3description: Use when a new skill has to be created (or an existing skill revised) for this framework, applies the single template, checks that no existing block already covers the need, and credits the source if the idea comes from elsewhere.4metadata:5 source: https://skillmd.com/skills/techmefr/writing-skills6---78# writing-skills910Cross-cutting (meta) block: this is the skill that explains how to write the other skills.11Applies as soon as a gap is identified in the pipeline or a sourced idea deserves to be12rewritten our way (Rule B).1314## When15- A gap is spotted in the pipeline (e.g. "we're missing a model router" → `choose-model`).16- An idea seen elsewhere (market repo, article, aitmpl.com, superpowers) looks useful but doesn't17 exist here yet.18- An existing skill no longer matches real usage and needs revising.1920## Steps211. **Check that no existing block already covers the need**: read `CATALOG.md` and the skills22 table in `README.md` before writing anything. A duplicate costs more than a gap (Rule B,23 adoption checklist).242. **Isolate the real mechanism**, not the packaging: if the skill is sourced from an external25 repo, read the concept until you can explain it without the source file in front of you.263. **Write to the single template** (`CONVENTIONS.md`):27 - frontmatter `name` + `description` starting with "Use when..."; `description` is what routes28 the block, and it is **truncated at 1,536 characters in the listing** — that is a platform29 limit, not a style preference, so a description written to summarise instead of to route30 loses its tail silently31 - the optional frontmatter fields, **declared only when the block needs one**: `paths` so a32 stack block doesn't load on another stack's files, `allowed-tools` so an operator isn't33 approving each gate command, `disallowed-tools` to keep an autonomous block out of34 `AskUserQuestion`, `disable-model-invocation` for a step nobody should trigger by accident,35 `context: fork` when the step belongs in a subagent rather than in the conversation. The list36 and what each one costs are in `references/claude-code-platform.md` §2 — including which of37 them make the block Claude Code-only, which is a rule C decision and not a detail38 - `# name`39 - `## When`40 - `## Steps`41 - `## Output / checkpoint`42 - `## Guardrails`43 - `## Origin`: never empty: either an external source credited honestly, or "no external44 source, internal synthesis".454. **Place the skill in the pipeline** if it has a numbered step (see the `README.md` table), or46 mark it "cross-cutting" if it applies everywhere without being a sequential step (e.g.47 `choose-model`, `dispatch-parallel`).485. **Update `CATALOG.md`** (registry + source traceability) and the skills table in `README.md`49 in the same move; a skill not referenced in both becomes invisible and gets rewritten twice50 later.516. **Stay publishable** (Rule C): no real project name, no secret, a generic role ("the Laravel52 backend") never an internal repo name: except in an internal MR-review implementation, which has a different53 status (production evidence, real names owned).547. **Order within a section by how often the rule fires, not by when it occurred to you.** A block grows one55 real gap at a time (a re-check, a review finding), and appending each addition at the bottom of its56 section is how the load-bearing rule from month one ends up under ten rare-case additions from month six —57 the "lost in the middle" effect applies to a skill file exactly as it does to any other long context. When58 a section passes roughly ten points, that's the signal to re-sort it (common case first) rather than to59 keep appending, not a hard line to enforce mechanically.608. **A filter block states a positive requirement.** A block that only forbids produces empty output; say61 what the result must contain. Every detection block also carries a mandatory section on what not to62 flag, because a detector without one drifts into false positives.639. **A rule names the artefact that proves it was applied**, or it becomes a hook. Adding a canon without64 cutting the sources it absorbed reproduces the duplication it was meant to remove.6510. **Every scanner added locks its tiers with a regression test**, so a threshold cannot be loosened by66 editing the scanner alone.676811. **Points 11 to 49 live in a reference file**: gotchas sections, what to put in a skill and what to cut,69 calibrating control, validation patterns and description-writing rules from the open Agent Skills guides,70 then completion criteria, positive steering, no-ops, pointer wording and pruning from a second source,71 then contents lists, the 500-line ceiling, freedom per step, verification loops, undeclared dependencies72 per-model testing, the pre-share validator, script intent, staleness, full tool names, evaluations first and vetting a block from outside from a third.73 Read it when drafting or revising a body or a description:74 [`references/11-authoring-rules.md`](./references/11-authoring-rules.md). Whether a description actually75 triggers is measured with `skill-trigger-evals`, not judged by eye.7677## Output / checkpoint78A complete `skills/<name>/SKILL.md` file following the template, referenced in `CATALOG.md` and79in the `README.md` table, with a non-empty `Origin` section.8081## Guardrails82- Never a skill without `## Origin`: honesty about the source (internal vs sourced from the83 market vs rewritten from a specific repo) is structural, not optional.84- Never install an external repo as a dependency: we read, we rewrite, we credit (Rule B): never85 a `git submodule` or a runtime import to a third-party repo.86- A skill that duplicates an existing block is a regression, not an addition: check step 1 before87 writing, not after.8889## Origin90Rewrite of the `writing-skills` skill from a market skill/agent framework; there it documents91their own template, here it documents ours (the single template in `CONVENTIONS.md`), plus the92Rule B adoption checklist (check for duplicates, credit the source) which doesn't exist as such93on the superpowers side.9495Step 7 (ordering by frequency, re-sort past ~10 points) added 2026-08-10 from the "context engineering"96literature's lost-in-middle effect and progressive-disclosure framing (surveyed via a market97context-engineering skill kit while scouting for new market blocks worth adopting; no code or text98copied, the mechanism was already familiar from long-context work and is stated here in our own terms).99Concrete trigger for writing it now rather than leaving it as a general instinct: several blocks in this100repo (`vue-nuxt-vuetify-conventions`, `react-nextjs-conventions`) grew past 10 points per section across101this session's re-checks, each addition appended at the bottom of its list.102103Points 11 to 30 (in `references/11-authoring-rules.md`) added 2026-10-19 from the Agent Skills open104specification and its best-practices and description guides, agentskills/agentskills commit 69ef37e (docs105CC BY 4.0, credited, restated in our words), details in [`references/origin.md`](./references/origin.md).106107Steps 8 to 10 added 2026-10-02 from a read of public prose-quality and design-quality filters: the108positive-requirement and not-to-flag rules come from how those filters fail, the proof-artefact rule and109the scanner regression test from the corpus's own history of unenforced guarantees.110111Points 31 to 38 (completion criteria, steering by the positive, no-ops, pointer wording, the environment as a source of truth, sediment, one meaning one place, leading words) added 2026-10-19 from `writing-for-agents` of `mattpocock/skills` (MIT), wording ours, details and the owner's decision on guardrail style in [`references/origin.md`](./references/origin.md).112113Points 39 to 44 (contents list past 100 lines, one-level pointers, freedom per step, verification that loops back, no assumed installs, per-model testing, pre-share validation) added 2026-11-10 from two secondary write-ups of the vendor's updated skill best practices, wording ours, details in [`references/origin.md`](./references/origin.md).114115Points 45 to 48 and the verification of 39 to 44 added 2026-11-10 from the vendor skill best-practices page and the open Agent Skills specification, read directly; wording ours, details in [`references/origin.md`](./references/origin.md).