ganyuanran avatar

Writing Skills

If you're building skills for Claude, this is your meta-guide. It treats skill writing as test-driven development for documentation: run a baseline test with a subagent to watch it fail without the skill, write the skill to fix that specific behavior, then verify compliance. The core insight is about Claude Search Optimization, where descriptions must contain triggering conditions, not workflow summaries, because testing showed Claude will follow the description and skip reading the actual skill content. Includes concrete structure templates, naming conventions, and a detailed breakdown of what makes skills discoverable. Assumes you already understand TDD fundamentals from the aegis skill. Most useful when you're actually creating or debugging skills that Claude isn't finding or following correctly.

GitHub stars
492
last updated
Jun 11, 2026

Install

$ npx -y skills add ganyuanran/aegis --skill writing-skills --agent claude-code

Installs into .claude/skills of the current project.

Files

Writing Skills

Purpose

Create the smallest reusable skill that changes decisions or improves task execution without constraining unrelated work. Skill changes use behavior validation, not a code TDD route. This validation does not require loading aegis:test-driven-development.

Default Path

1. Establish Need And Ownership

  • Name the reusable behavior gap, intended users/hosts, and non-goals.
  • Check whether an existing skill, project rule, host adapter, or automated check already owns it. Prefer the smallest existing owner.
  • For an existing skill, inspect its references, manifests or generated copies, discovery tests, and bundled resources before changing or retiring them.
  • Create a skill only for reusable, non-obvious guidance. Keep one-off project conventions in the project owner and automate mechanical constraints when practical.

2. Record Behavior Before Editing

Use representative tasks, not questions that merely ask the agent to recite instructions.

Sponsors

Details

Repository
github.com/ganyuanran/aegis
Categories
Documentation, Skill Development
License
MIT
First seen
Jun 11, 2026

More from ganyuanran/aegis

All 22
1hoangnguyen0403 avatarupdate-docshoangnguyen0403/agent-skills-standardAutomated workflow to detect and fix missing documentation0skills.sh installs
2metabase avatardocs-writemetabase/metabaseWrite documentation following Metabase's conversational, clear, and user-focused style. Use when creating or editing documentation files (markdown, MDX, etc.).0skills.sh installs
3pytorch avatardocstringpytorch/pytorchWrite docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.0skills.sh installs
4reactjs avatardocs-componentsreactjs/react.devComprehensive MDX component patterns (Note, Pitfall, DeepDive, Recipes, etc.) for all documentation types. Authoritative source for component usage, examples, a0skills.sh installs
5reactjs avatarreview-docsreactjs/react.devThis orchestrates parallel reviews of React documentation files by routing them through specialized agents based on file location and...0skills.sh installs
6TencentCloudBase avatardocs-workflowsTencentCloudBase/CloudBase-AI-ToolkitDocumentation and extension workflows derived from local slash commands (docs, explanation, issues, prototypes, tutorials, MCP design review).0skills.sh installs