Skills Writing Pattern Library
Consult focused architecture and testing references without introducing another competing creation workflow.
When to Use
Use this skill as supporting guidance when:
- A complex skill needs an architecture tier
- Agents ignore or rationalize around important rules
- Skill discovery descriptions need deeper optimization
- A team needs metadata and structural standards
- A skill needs behavior-focused testing guidance
../skill-writer/SKILL.mdor../skill-improver/SKILL.mdrequires a specific pattern
Do not use this skill to scaffold a new skill directly. Use ../skill-make-template/SKILL.md.
Do not load every reference. Select only the material needed for the current decision.
Reference Index
Architecture Tiers
references/tier-1-simple/README.md: focused single-job skillsreferences/tier-2-expanded/README.md: skills with several supporting concepts or resourcesreferences/tier-3-platform/README.md: parent routers and broad platform families
Choose a tier based on independent capabilities and context-loading needs, not prestige or word count.
Discovery and Metadata
references/cso/README.md: description and trigger optimizationreferences/standards/README.md: naming, metadata, and folder conventionsreferences/standards/metadata-standard.md: detailed metadata guidance
Treat bundled metadata recommendations as proposals. The active Agent Skills specification and repository rules take precedence.
Discipline and Rule Reliability
references/anti-rationalization/README.md: writing concrete rules agents are less likely to evade
Use anti-rationalization patterns only for real safety, correctness, or process risks. Do not turn ordinary preferences into shrill mandatory language.
Testing
references/testing/README.md: behavior-oriented skill testingtesting-skills-with-subagents.md: delegation-based testing concepts
Replace provider-specific subagent syntax with the active environment's supported delegation mechanism.
Templates
references/templates/technique.mdreferences/templates/reference.mdreferences/templates/discipline.mdreferences/templates/pattern.mdreferences/templates/tier-3-platform.md
Templates are structural examples, not content authority. Remove placeholders and unsupported assumptions before use.
Additional Guidance
examples.md: representative patternsgotchas.md: common failure modespersuasion-principles.md: communication principles requiring careful useanthropic-best-practices.md: provider-originated guidance that must be generalized unless the target is explicitly Claude-specific
Selection Workflow
- Define the current authoring or repair decision.
- Select one or two relevant references.
- Identify provider-specific or outdated assumptions.
- Extract the reusable principle.
- Adapt it to the active specification and environment.
- Apply it through
skill-writerorskill-improver. - Validate the resulting skill with
skill-check.
Guardrails
- Do not copy provider-specific paths, hooks, slash commands, or tool names accidentally
- Do not require
metadata.triggersunless the active specification or repository does - Do not force every skill into a tiered architecture
- Do not add anti-rationalization language where ordinary clear instructions suffice
- Do not use subagents unless delegation is available and useful
- Do not let references contradict the parent workflow
Completion Checks
- Only relevant references were loaded
- Reusable principles were separated from platform-specific implementation
- Active specification and repository rules took precedence
- Applied guidance improved a concrete authoring decision
- Resulting skill was validated independently