write-skill

Create and refine agent skills with structured editing, size tracking, and completeness validation.

139k|20.6k|Updated Mar 11, 2026
Ready to run
npx skills add https://github.com/garrytan/gstack --skill write-skill-garrytan
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: write-skill
Source: https://github.com/garrytan/gstack/tree/main/write-skill
Command: npx skills add https://github.com/garrytan/gstack --skill write-skill-garrytan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and sections (resource) components.

What problem does it solve? Writing effective agent skills is hard: instructions drift, grow bloated, get loaded at the wrong stage, and break under edge cases. This Skill enforces a rigorous edit ladder, size budget, and completeness checklist to keep skills lean, discoverable, and maintainable. ## Core Features & Use Cases - Edit Ladder: Fix issues at the lowest possible level—tool code first, then error messages, then skill prose—before adding new documentation. - Size Tracking: Monitor skill size per level (description, SKILL.md, references/, tool help) and reject additions that exceed 10% growth without a diet. - Completeness Validation: Ensures each fact reaches agents at exactly the right stage: descriptions for discovery, SKILL.md for every use, references/ for deep dives, tool help for flags and errors. - Use Case: A skill has grown from 2KB to 6KB over three months. Run the diet workflow to identify bloat, rewrite it onto the correct levels, and prove agents perform just as well with half the prose. ## Quick Start Run gstack-skill-bill on your skill folder to see its size breakdown by level, then follow the edit ladder to fix the root cause instead of just adding more documentation.

Frequently Asked Questions about write-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the edit ladder and when do I use each step?▼

The ladder prioritizes fixes: Step 1 improves the tool code or error messages (lowest cost), Step 2 checks if agents already know it without new prose, Step 3 edits existing skill text (never appends), Step 4 places the fact at the right level (description/SKILL.md/references/tool-help), Step 5 writes one positive rule with a short name. Use this order to avoid skill bloat.

How do I run a full skill diet to reduce size?▼

Use gstack-skill-bill to get the size per level, then follow the diet workflow: list what depends on the skill, identify mismatches between what the skill teaches and what the tool actually does, write evaluation tasks to prove the new version works as well as the old one, and rewrite the skill onto the correct levels. Commit with a Skill-Diet message and size delta.

What does the 10% growth budget mean?▼

After a Skill-Diet commit, the skill has a 10% growth ceiling before the next diet. If a new feature or fix would exceed that, you must diet the skill instead of adding more prose. This prevents bloat accumulation.

How do I know when a fact belongs in SKILL.md versus references/?▼

SKILL.md holds what every task needs before running. References/ holds what some tasks need, behind a line saying when to read it. Use the levels table: description for discovery, SKILL.md for every use, references/ for deep dives, tool help for flags and errors.

What goes into the skill evaluation tasks file?▼

Create tasks at test/fixtures/skill-evals/<skill>/tasks.json with id, prompt, setup, must/must_not checks, and safety assertions. Cover each mode, each "don't" rule as a safety task, and risky areas. Lock tasks before a paid run to preregister the contract.

Why does a skill need a diet instead of just growing?▼

Large skills waste context budget, make it harder for agents to find what they need, and accumulate instruction drift. A diet forces a rewrite onto the levels model, often cutting 30-50% while maintaining or improving agent performance.