accessibility-per-comp…
Audit one design system component's accessibility against WCAG 2.2 AA: keyboard, screen reader, contrast, focus, ARIA, target…
Document a multi-component pattern (form validation, empty states, error handling): when to use, composition, states, a11y, anti-patterns. Triggers: document this pattern, write the pattern page. One named component: use usage-guidelines. Choosing a component:
Claude Code
$ npx -y skills add murphytrueman/design-system-ops --skill pattern-documentation --agent claude-code
Codex
$ npx skills add murphytrueman/design-system-ops --skill pattern-documentation -a codex -y
Cursor
$ npx skills add murphytrueman/design-system-ops --skill pattern-documentation -a cursor -y
Gemini CLI
$ npx skills add murphytrueman/design-system-ops --skill pattern-documentation -a gemini-cli -y
GitHub Copilot
$ npx skills add murphytrueman/design-system-ops --skill pattern-documentation -a github-copilot -y
OpenCode
$ npx skills add murphytrueman/design-system-ops --skill pattern-documentation -a opencode -y
Windsurf
$ npx skills add murphytrueman/design-system-ops --skill pattern-documentation -a windsurf -y
name: pattern-documentation description: "Document a multi-component pattern (form validation, empty states, error handling): when to use, composition, states, a11y, anti-patterns. Triggers: document this pattern, write the pattern page. One named component: use usage-guidelines. Choosing a component: component-decision-tree." allowed-tools: Read, Write, Grep, Glob, Bash(cat:*), Bash(find:*), Bash(head:*), Bash(ls:*), Bash(grep:*), Bash(rg:*) references: - ../../knowledge-notes/ai-readiness.md - ../../knowledge-notes/component-bestiary-reference.md - ../../knowledge-notes/output-discipline.md
A skill for writing documentation for design system patterns. Patterns are distinct from components: a component is a discrete, reusable UI element; a pattern is a recurring solution composed from multiple components that addresses a specific user or product problem. Form validation, empty states, error handling, progressive disclosure — these are patterns.
Confirm that every path in this skill's frontmatter `references:` exists relative to this SKILL.md. If any is missing, stop: the install is incomplete, usually because a flattening installer (for example `npx skills install`) dropped the repo-root `knowledge-notes/` directory. Tell the user to reinstall by a method in `1-INSTALL.md` and run `verify-install.sh` from the install root. Proceed without the references only if the user explicitly says to, and then say in the output that it was produced without the pack's reference material.
Pattern documentation is systematically underdone in most design systems. Teams document components in detail and leave patterns as implicit knowledge — accumulated through convention, absorbed during onboarding, and lost when people leave. The result is parallel local solutions that drift apart over time, and product teams that rebuild the same interaction in slightly different ways because no one wrote down the shared answer.
Good pattern documentation does two things. It explains the pattern clearly enough that a designer or developer encountering it for the first time can apply it correctly. And it explains the edges: when this pattern is not the right choice, what alternatives exist, and how to handle the cases that do not fit neatly.
---
Before documenting a pattern, confirm it is worth documenting. Not every recurring UI solution is a pattern — some are conventions, some are coincidences, and some are too specific to generalise.
**A UI solution is a documentable pattern if:**
**A UI solution is NOT a documentable pattern if:**
**If the bar isn't met**, say which criteria failed and what to write instead: a single component used in a standard way belongs in `usage-guidelines`; a one-product solution is a local convention note in that product's docs; instances too varied to share a structure need a conversation, not a page. Then stop; don't write a pattern page for something that isn't one.
**Where to find undocumented patterns:** 1. Look at drift-detection findings classified as E (system gap) — these often reveal patterns teams are building independently 2. Review support channel questions — recurring "how do I..." questions about multi-component interactions signal undocumented patterns 3. Ask product teams: "What do you build most often that is not a single component?" The answers are pattern candidates 4. Review design file reuse — Figma frames that appear across multiple files without being components are likely patterns
**Provenance rule.** Product contexts, instances, states and accessibility behaviour in the documentation come from code, Figma, the team's docs or the user, and are cited by path or URL where they come from files. If you can't locate instances, ask the user; never invent product or team names. Rules you propose rather than observe are marked "proposed". See "Every figure and fact needs a source" in the output-discipline knowledge note.
Ask for or confirm:
If the pattern does not yet have a name, propose one before writing the documentation. Pattern names should describe the interaction or function, not the visual treatment: "confirmation dialog" not "modal with two buttons."
---
**Category:** [navigation / forms / feedback / layout / data display / other] **Components used:** [list the design system components this pattern draws on] **Last updated:** [date]
---
One to two sentences. Describe the pattern in terms of what it accomplishes for the user, not how it looks or which components it uses.
Example (form validation): Communicates the status of user input during and after fo
Audit one design system component's accessibility against WCAG 2.2 AA: keyboard, screen reader, contrast, focus, ARIA, target…
Adoption report: coverage (what the system provides), reach (teams with access) and adoption (teams shipping with it), design vs…
Write the AGENTS.md that tells coding agents how to use this design system: where things live, sourced rules, how to check work,…
Write a six-section prose description (purpose, props, anti-patterns, composition, accessibility, examples) for a Figma…
Turn existing audit findings into sprint-ready tickets with T-shirt estimates, acceptance criteria, dependencies and phases.…
Write release notes, a migration guide and a team announcement for a design system change that is already decided, scaled to its…
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.