/general:writing-paired-skillsfrom general
Guides splitting a single skill into two paired skills when a topic has rare wiring tasks and frequent practice tasks, with an explicit contract between them.
Ships in general. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Some topics carry two cadences inside one body of practice. Setting up a logging pipeline happens once per process; emitting a log record happens millions of times. Initializing a project happens once per environment; running a TDD cycle happens every step. Establishing a glossary happens once per bounded context; checking the glossary before introducing a term happens every term. The two cadences want two skills, joined by a small explicit contract.
A paired skill is two SKILL.md files about the same topic, written together. One is the wiring (rare, idempotent, source of truth for the harness). The other is the practice (frequent, scoped to one call site, assumes the wiring holds). The contract between them is short, scannable, and published by the wiring skill; the practice skill cites it rather than re-teaching it.
Background: Use general:writing-skills for the underlying authoring methodology (CSO, TDD-of-documentation, frontmatter rules, RED-GREEN-REFACTOR with subagents). When the pair lives in the patterns plugin specifically, also use general:writing-pattern-skills for the Alexandrian template. This skill only documents what is specific to the pair.
The rare-but-recurring half. Runs once per process, once per environment, once per change to the harness. It is idempotent: running it on an already-configured system either confirms the configuration or surfaces drift, but never destroys state. It is the source of truth for whatever it installs — the global subscriber, the toolchain layout, the glossary file.
The wiring skill is the place to return when the system changes. The skill body names the triggers: toolchain change, environment change, library upgrade, suspected drift. Re-running checks that the contract still holds.
The frequent half. Runs every time the relevant work happens — every log emit, every TDD cycle, every new term. It is scoped to one call site and assumes the wiring holds. The practice skill cites the wiring as a prerequisite, not as a step. Its body never repeats the wiring instructions.
The practice skill carries the warning Beck attaches to practices: a practice without the wiring it depends on is rote. If a reader can use the practice skill without the wiring being in place, the contract was wrong.
For an emerging pair, test each half against the cadence questions:
| Question | If "yes" | If "no" |
|---|---|---|
| Does the work run once per process, environment, or change? | Wiring. | Probably practice. |
| Does the work run every emit, every cycle, every term? | Practice. | Probably wiring. |
| Does running the work twice need to be safe? | Wiring (idempotent). | Could be either. |
| Does the work assume something is already installed? | Practice. | Probably wiring. |
| Is the work the source of truth for a harness, file, or registry? | Wiring. | Practice. |
When both halves answer the same way to several questions, the pair is probably one skill, not two. When the answers diverge cleanly, the assignment is the diverging axis.
The frontmatter is where the pair announces itself to Claude's skill selector. Each description carries a cadence and a scope, and each description points at its partner under "When NOT to use".
Open with "Use when" and the assembly triggers, then close with the cadence and scope: "applies once at process start, never inside library code", "applies when bootstrapping or revising the toolchain for a project", "applies once per bounded context, never inside a domain operation". The cadence is what prevents Claude from loading this skill at every emit site.
# Wiring frontmatter (configuring-logging)
description: Use when bootstrapping a service's logging pipeline — selecting a
subscriber/registry, layering formatter/filter/enricher/exporter, attaching
resource attributes, wiring W3C trace propagators, choosing head- or
tail-based sampling, configuring redaction as defense-in-depth, and arranging
graceful shutdown flush. Applies once at process start, never inside library
code.
Open with "Use when" and the recurring trigger: "applies every time code emits a log record", "applies when implementing a plan step", "applies before introducing a new term". The recurring trigger is what makes Claude load this skill at the call site.
# Practice frontmatter (emitting-logs)
description: Use when writing log call sites in domain or application code —
choosing a severity, attaching structured fields with semantic-convention
keys, scoping spans to units of work, recording errors with their full chain
at a single boundary, and naming business events. Applies every time code
emits a log record.
Each skill's body carries a "When NOT to use" line that points at the partner by name:
"When NOT to use: to set up the pipeline, attach resource attributes, install propagators, or configure exporters. Those belong in
patterns:configuring-logging."
"When NOT to use: inside a library crate, request handler, or any code reachable more than once. Libraries emit; they do not configure."
The cross-reference is symmetric. The wiring skill names the practice skill as the place for the per-call-site work; the practice skill names the wiring skill as the place for the setup. "Composes With" is an acceptable second location for the cross-reference when the partner is one of several related skills, but the "When NOT to use" placement is preferred because that is where Claude reads when deciding whether to load the alternative.
The contract is a short, scannable statement of what downstream code may assume once the wiring has been run. It is the API between the pair. It lives in the wiring skill — either as a small block near the top labelled "Contract" or "After this skill runs …", or as the last paragraph of the Overview. The practice skill cites the contract; it does not restate it.
A good contract is concrete and short. The logging pair's contract reads, in effect:
After
patterns:configuring-logginghas run, callers may assume: a single global subscriber is installed; resource attributes (service.*orprocess.*) are attached at the resource layer; the W3Ctraceparentpropagator is wired so that the active span'sTraceIdandSpanIdflow to every record; the exporter receives records; a flush is registered at shutdown.
A reader of patterns:emitting-logs can then rely on those assumptions: the emit site does not name a destination, does not re-attach resource attributes, does not manage propagation, and does not flush. Every one of those would be a contract violation, and the skill body says so.
Drift signal. If the practice skill grows a "first, make sure you have …" paragraph, the contract has gone stale or the wiring skill has dropped something. Either the wiring needs to do more, or the contract needs to be widened to name the new assumption. The practice skill should never have to teach the wiring.
The wiring skill is the return address when the system changes. The skill body lists the triggers that mean re-running is due:
tracing major, a new OTel version).Re-running checks that the contract still holds. The wiring skill names what to re-verify and how. The practice skill does not list these triggers; if a reader of the practice skill spots one, they switch to the wiring skill.
The two existing examples in this repository are the working models the meta-skill draws from. The logging pair is the primary example because both halves are already published, the contract is legible, and the cross-references are symmetric.
| Concern | patterns:configuring-logging (Wiring) | patterns:emitting-logs (Practice) |
|---|---|---|
| Cadence | Once at process start. | Every call site. |
| Scope | Application bootstrap; never inside library code. | Domain and application code. |
| Idempotent? | Yes. Re-runs confirm or surface drift. | N/A; every call is a new record. |
| Source of truth for … | The subscriber registry, resource attributes, propagator, exporter, flush. | The per-event fields, the severity, the EventName. |
| Contract published? | Yes (subscriber installed; resource attributes attached; traceparent wired; flush registered). | N/A; the practice consumes the contract. |
| Cross-reference | "When NOT to use" names emitting-logs as the call-site partner. | "When NOT to use" names configuring-logging as the setup home. |
| Re-verify triggers | Library upgrade, environment change, drift. | None; defer to the partner. |
The developer-plugin program-management pair is the second exemplar: a once-per-project tracker-wiring half and an every-session task-I/O half, both reached through the developer:ailly coordinator as references (references/abilities/program-management/configuring.md ↔ references/abilities/program-management/using.md). The cadence asymmetry is the same, the role names map cleanly, and the contract (the ## Program Management section the configuring half publishes to DEVELOPMENT.md) is what the using half consumes every session. A reader who has internalized the logging pair can read the developer pair as the same shape in a different domain.
| Concern | Wiring | Practice |
|---|---|---|
| Cadence | Once per process / environment / change | Every emit / cycle / call site |
| Posture | Near the entry point (12-Factor build, Composition Root) | Inside the application or library |
| Idempotent | Required | Not applicable |
| Re-runnable | Yes; surfaces drift | One-shot per call |
| Frontmatter cadence clause | "Applies once at process start, never inside library code" | "Applies every time code emits a log record" |
| Contract | Publishes it | Cites it |
| Cross-reference location | "When NOT to use" → practice | "When NOT to use" → wiring |
| Re-verification triggers | Toolchain / environment / library / drift | None; defer to wiring |
| Body forbids | Per-call emission details | Setup instructions |
general:writing-skills — the underlying authoring methodology (CSO, TDD-of-documentation, frontmatter rules) that this skill specialises for paired skills. Run a baseline pressure scenario on each half of a pair before writing either skill; the wiring half and the practice half typically fail in different ways without their respective skills.general:writing-pattern-skills — when the pair lives in the patterns plugin, both halves also follow the Alexandrian template documented there. This skill adds the pairing conventions on top.general:review — review a fresh pair as a unit, not one half at a time. The contract, the cross-references, and the cadence clauses are pair-level properties.patterns:bootstrap-and-service — the code-level analog of the cadence split. Bootstrap is where wiring is invoked; the service is where practice runs. The pairing of skills mirrors the pairing of code locations.What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Jul 31, 2026
8 skills in this plugin
/c3-reviewProvide review and feedback based on Correctness, Conciseness, and Clarity. Given a scope of artifacts, reviews them in their entirety and provide feedback that gauges those three aspects./conversationUse when interacting with users — asking clarifying or exploratory questions, presenting suggestions or options, pausing for confirmation, or before taking an action with effects outside the repository./dispatching-agentsUse when preparing to dispatch subagents. Applies before starting any subagent, and especially when multiple independent tasks (unrelated test failures, parallel research areas) could run concurrently without shared state.npx claudepluginhub davidsouther/ailly --plugin generalOther plugins' skills for the same job