Writing skills
Creates and improves Agent Skills for this repository. Use when authoring, editing, validating, or evaluating files under skills/.From its SKILL.md
npx -y skills add h3y6e/agent-skills --skill writing-skillsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.3 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Writing Skills
Create skills that make execution reproducible. Under identical conditions, required research, branches, artifacts, and verification must meet consistent standards.
Contracts
Before writing, define observable process invariants. Classify research as checked, not applicable, or unavailable; evaluate branches; require artifact fields; and stop when work or verification is incomplete.
Follow the Agent Skills specification: require name and description; make name match its directory and contain at most 64 lowercase letters, digits, or single hyphens; keep description within 1-500 characters and state capability and triggers.
Repository rules:
- Put published skills at
skills/<skill-name>/SKILL.md. Keep the body as short as possible; aim for fewer than 500 words without dropping required instructions or references. - Never edit
metadata.versionmanually. - After adding, renaming, or removing a skill, make
.tagprversionFilematch every existingskills/*/SKILL.md. - Before completion, run the validator:
.agents/skills/writing-skills/scripts/validate.ts <skill-directory>
Design
Use a skill for recurring conditional judgment with meaningful failure cost. Prefer automation for mechanical checks, project instructions for universal rules, references/ for extensive facts, and notes for temporary information. Extend rather than duplicate a skill.
Treat loading tier and information role independently. Keep required procedures, decisions, and output contracts in SKILL.md; conditional detail in references/; fragile operations in scripts/; and artifact material in assets/. Reference pointers must say when to read and how to apply them. Prefer principles for contextual choices, templates for bounded variation, and exact scripts where variation causes failure. For loading design, read .vendor/skills/writing-great-skills/SKILL.md; for anchor terms and failure modes, read .vendor/skills/writing-great-skills/GLOSSARY.md; and for freedom levels, read .vendor/skills/writing-skills/anthropic-best-practices.md.
Workflow
- Record capability, triggers, evaluated near-misses, artifacts, and process invariants. Connect requirements to examples.
- Search
.vendor/skills/for skills related to the target capability, domain, and triggers, then read relevant candidates before design. Treat them only as authoring evidence: incorporate applicable guidance so the new skill stands alone, without naming or linking any consulted skill, directory, or path in any resulting file. - Design evaluation first. Discovery cases cover direct triggers, paraphrases, near-misses, competing skills, and multi-skill use. Execution cases make required research, branches, artifacts, and verification scorable. Baseline behavior-constraining skills without the skill.
- Write the minimum skill. Format
descriptionas "capability.Use whentriggers." Give important steps input, decisions, evidence, completion criteria, and incomplete transitions as needed. - Distribute information by loading design. Never hide universally required instructions in references.
- Pass mechanical validation before evaluation.
- Evaluate discovery and execution separately. Measure activation, misses, and false activations; then requirement satisfaction, validator success, premature completion, and unnecessary tools. Repeat important skills across intended models. Follow
.vendor/skills/writing-skills/testing-skills-with-subagents.md. - Prune statements that do not change default behavior. Keep each rule once per loading tier. Prefer established terms over invented shorthand. State expected behavior positively; reserve prohibitions for dangerous boundaries or observed failures, with an alternative and reason.
Before applying TDD to skill authoring, read .vendor/skills/writing-skills/SKILL.md. When iterative comparison is needed, use .vendor/skills/empirical-prompt-tuning/SKILL.md.
Evidence
Choose verification by failure cost, frequency, blast radius, and activation conflicts:
- Run the validator, lint, and structure and link review for every skill.
- For behavioral rules or branches, run an applicable baseline plus representative and failure scenarios, then record requirement results.
- For high-risk, frequent, broad, or activation-conflicting skills, repeat runs or models and compare variance and before/after results.
For scenario evaluation, record model/version, environment/tools, skill commit/hash, and prompts. For repeated evaluation, also record run count and activation, false-activation, and requirement-satisfaction rates.
When codifying experience, record the initial failure, final solution, and connecting insight; then use .vendor/skills/retrospective-codify/SKILL.md to choose between automation, project instructions, extending a skill, creating a skill, or no persistence.
Before completion, confirm validator and Markdown lint success, evidence for every process invariant, separate discovery and execution evaluation, and no claim beyond the evidence produced.
What ships with it: 1 file
5.6 KB alongside SKILL.md, 1 of them executable
scripts/
- validate.tsruns5.6 KB