/collaboration-skills:skill-authoring-patternsfrom collaboration-skills
Provides conventions for authoring and reviewing SKILL.md files in this catalog, especially Apple/Swift framework skills. Covers precision-router descriptions, section bookends, references/ splitting, and multi-reviewer CR.
Ships in collaboration-skills. 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.
Read when SKILL.md points to them.
This is a thin complement, not a replacement. For the general discipline of writing a skill — whether a skill should exist at all, the test-first / RED-GREEN loop, matching the guidance form to the failure mode, and word-count budgets — use superpowers:writing-skills first. This skill adds only what is specific to this catalog and to Apple/Swift framework skills: how to word descriptions so an agent routes to the right framework skill, the section conventions we standardize on, and how we review skills.
SKILL.md for this repo (especially an Apple/Swift framework skill).description routes wrong (or over-fires); you're rewording it.references/.This skill owns the catalog-specific and Apple/Swift-specific authoring conventions below. It does not own: the decision to create a skill, test-first skill development, or general prose-economy rules — route those to superpowers:writing-skills. Distribution/packaging (plugin vs marketplace, discovery) → claude-skill-plugin-packaging.
The description is the only part of a skill that stays in the model's context by default (the body loads when the skill is invoked, and the description is length-capped). So spend its words on routing, not summary.
Where this differs from superpowers:writing-skills: that skill's description rule says
to write ONLY the trigger ("Use when…"), never what the skill does, aiming for under 500
characters. Its evidence is real but narrower than the rule it's stated as: an agent that
reads a description summarizing a workflow's steps will follow the description instead of
the body (this catalog's own gate encodes the same boundary as the "description may summarize
workflow" MINOR). The official Claude Code and Agent Skills docs, by contrast, specify
description as covering both what the skill does and when to use it. This catalog
follows the official contract: one verb-anchored capability sentence (the result, not the
steps) + trigger scenarios + a negative boundary when needed. A capability statement ("Resolve
Swift 6 concurrency errors…") is not a workflow summary, so writing one doesn't reproduce the
failure mode superpowers is guarding against — it still never enumerates workflow steps or
numeric thresholds in the description. This catalog's DESC_MAX (800 chars) is also
independent of superpowers' <500-char target; both are stricter than the official 1,536-char
listing cap for unrelated reasons.
Sendable, @MainActor, MetricKit, AccessibilityFocusState. This is the highest-leverage delta for framework skills: an agent routing on "I'm getting a Sendable error" only lands here if Sendable is in the description.*.xcstrings, Package.swift), prefer the official paths: frontmatter over a prose file trigger — it takes glob patterns, and Claude then loads the skill automatically only when working with matching files. mise run check flags prose file-triggers as candidate for paths:.BAD: description: Helps with accessibility.
GOOD: description: VoiceOver / Dynamic Type / touch-target implementation for SwiftUI & UIKit.
Use when adding or auditing user-facing UI; when asked "make this accessible" / "VoiceOver
doesn't read this" / "does this pass WCAG"; before an App Review a11y pass. Covers
accessibilityLabel/value/hint/traits, Dynamic Type + minimumScaleFactor, 44pt targets.
Does NOT cover deep Rotor/Focus APIs — see <sibling>.
Every enabled skill's description is always-on context, shared by a catalog-wide budget, not
a per-skill one — so before adding a skill, ask "is this trigger phrase worth permanently
occupying part of every session's listing budget?", not just "does this description fit under
800 chars". For the exact mechanism (the 1% context-window budget, the 1,536-char per-entry
cap, least-used-first truncation, the when_to_use field, and the measurement tools), read
references/listing-budget.md.
Order the middle by the topic's pedagogy, but keep these conventions. All four bookends below are required for new skills; none of them are retrofitted onto pre-existing skills — the gaps in the "today" column are historical debt, not evidence the convention is optional:
| Heading | Purpose | Retrofit status | Today (of 40 skills) |
|---|---|---|---|
## Rationale | why this default was chosen. Unique to this catalog. | Not retrofitted | 22/40 |
## Deviation considerations | when to override the default, and the cost (e.g. "Drop to iOS 18 when an existing user base still runs it — every Liquid Glass API then needs an availability guard, and the pre-26 chrome must be snapshot-tested separately"). Also ours. | Not retrofitted | 24/40 |
## Common Mistakes | concrete, anti-pattern-named items ("Using DateFormatter() in body"), as many as are real — do not pad to a number. | Not retrofitted; older skills express this as inline anti-pattern sections instead. | 12/40 |
## Review Checklist | a - [ ] list at the end, runnable top-to-bottom. | Not retrofitted; older skills use a prose ## Verification checklist instead. | 28/40 (incl. the older prose form; mise run check's section matrix) |
## Related skills — siblings by name.Use a scope-boundary line in the body wherever a sibling is close ("owns X; does NOT own Y → route to <sibling>") — this is what stops two framework skills both claiming the same request.
---
name: <kebab-matches-folder>
description: <precision router — see above>
---
# <Title>
<1-paragraph scope: what it implements/reviews + target version>
## When to invoke
## Scope ← what it does NOT own → sibling
## <body: triage/workflow → decision table → rules → code>
## Rationale
## Deviation considerations
## Common Mistakes
## Review Checklist
## References ← only if it has references/
## Related skills
## Contents TOC only for genuinely long skills that a reader jumps around in — not by default; for a short linear skill it just costs tokens.Keep SKILL.md scannable: decision logic, short paired WRONG/RIGHT snippets (one point each), quick tables. Move long migrations, full API references, and big samples into references/*.md and point to them from SKILL.md with a plain instruction ("for the full guide, read references/<topic>.md"). This is a documentation convention — the agent reads those files via normal file reads when your SKILL.md tells it to; there is no automatic lazy-load. It keeps the always-in-context cost low while letting depth exist.
name is kebab-case; our consistency gate requires name to equal the directory (run mise run check) for clean cross-references and tooling. This is more than tooling hygiene: in a plugin skill — how every skill in this catalog ships — a name ≠ directory mismatch silently renames the command a user types; that's the failure our gate exists to block. For exactly how Claude Code derives a skill's command name in each install path, read references/official-docs.md.storekit2-iap-defaults, swift6-concurrency, swiftui-navigation-architecture, cloudkit-schema-source-of-truth — rather than the bare Kit name. Bare Kit names (widgetkit, storekit, swift-concurrency) are already taken by the aggregated apple-skills plugin, so the compound name is also what keeps the two catalogs from routing to the same command. For cross-cutting topics use a descriptive compound at the right altitude — swiftui-navigation-architecture, not the too-broad swiftui nor the too-narrow swiftui-observable.When you CR a skill or a batch, apply the evidence-based, multi-lens doctrine (it caught real errors in this catalog):
description — the agent can't route to it. Use the precision-router form with API names.SKILL.md, bloating always-in-context cost — move to references/..task, our build has bug #361") — ships wrong advice to every consumer.#available guards or won't compile.superpowers:writing-skills, except its description rule — see §Description as a precision router.)name equals the directory; mise run check passes.description is router form: verb-anchored, embeds the triggering framework APIs, lists trigger scenarios; a negative boundary if it could over-fire.references/*.md with an in-body pointer; SKILL.md stays scannable.Rationale + Deviation present; code uses current APIs with version gates marked inline.Common Mistakes are concrete and anti-pattern-named; no padding.git rev-parse --show-toplevel, $MISE_DATA_DIR) and thresholds are stated as parameters.superpowers:writing-skills — read first for the general discipline this skill deliberately does not repeat.claude-skill-plugin-packaging — packaging/distribution/discovery of the authored skill.subagent-review-cycles — the round structure the evidence-based CR plugs into.references/official-docs.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/agent-impl-notes-logKeep a running impl-notes file next to the phase meeting log while a subagent executes a task, recording design decisions, intentional deviations from spec, tradeoffs, and open questions as they happen rather than after the fact. Use at the start of any non-trivial subagent dispatch (multi-file change, ambiguous spec, new dependency or module, refactor), when ambiguity is hit mid-task, or before deviating from spec. Not the post-hoc meeting log (session-to-meeting-log); the two coexist./backlog-routing-by-topicRoute a stray idea that surfaces mid-task to the §Backlog of the right living doc in a spec-phase-orchestration repo (design.md, foundations.md, plan.md, methodology.md, or today's meeting log) as a single line, without derailing the current work. Use when a not-now-but-don't-forget idea comes up, when tidying a meeting log's parking-lot items, or when asked where an idea should go. Not for decisions that must be acted on now (those belong in the body of plan.md)./claude-skill-plugin-packagingPackage Claude Code skills as a plugin plus marketplace and install them into other repos — globally, pinned per project via committed settings, or as a skills-dir plugin. Use when sharing skills across repos, wiring an existing skill plugin into a project, choosing flat project skills versus a plugin, aggregating other people's skill repos by reference, or when a submodule or nested folder of skills is not being discovered. Does not cover PR/issue mechanics (github-contribution-workflow) or how to write the skill itself (skill-authoring-patterns)./github-contribution-workflowDrive GitHub contributions through the gh CLI — pull requests, issues, GitHub-side file edits, repo secrets, contribution-flow repo settings, submodule pin bumps. Use when about to run `gh pr create` / `gh pr merge` / `gh pr checks` / `gh issue create` / `gh secret set` / `gh api`, or asked "open a PR", "merge this", "bump the submodule". Does NOT cover pure local git, diff-vs-commit sanity (pr-diff-verification), security repo settings (apple-dev-skills:apple-public-repo-security), worktree conflicts (subagent-conflict-detection), plugin distribution (claude-skill-plugin-packaging)./leader-developer-handoff-contractShape the prompt a Leader sends when dispatching a sub-agent (Developer, Designer, Code Reviewer, drafting agent) so the result comes back verifiable and integrable. Use when about to call the Agent tool, writing or reviewing a dispatch prompt, deciding what a sub-agent must read or which skills it must invoke, or when asked "what should the sub-agent prompt include" / "which element am I missing". Does NOT own how many review rounds to run or how findings are adjudicated (subagent-review-cycles), nor the impl-notes file format (agent-impl-notes-log)./methodology-pattern-extractorExtract recurring collaboration patterns from accumulated meeting logs (optionally session JSONL) and record them in docs/methodology.md with evidence of where each was sighted. Use when the user asks to update methodology, extract recurring patterns across the meeting logs, or consolidate recurring collaboration flows; or when five or more meeting logs have accumulated while §Patterns is still empty. Not for writing the meeting logs themselves (session-to-meeting-log) or for parking one-off ideas (backlog-routing-by-topic). Takes no arguments — the fork scans all of `meetings/*.md`.npx claudepluginhub wei18/apple-dev-skills --plugin collaboration-skillsOther plugins' skills for the same job