Writing great skills

From stevesolun/ctx · View interactive version

Writing great skills is an AI agent skill from the GitHub repository stevesolun/ctx. Design or revise concise skills with clear triggers, proportional constraints, progressive disclosure, and realistic validation.

How to use this skill

Skill file

Write an effective skill

  1. Define the job, realistic trigger prompts, non-trigger prompts, expected

output, and material failure modes.

  1. Choose the degree of freedom:

adaptation.

repeatability justifies the constraint.

  1. Keep metadata concise and discriminative. Put trigger conditions in the

description; put execution guidance in the body.

  1. Assume the model already understands general software work. Preserve only

domain knowledge, workflow choices, tool interfaces, and opinions that

materially change behavior.

  1. Keep the entrypoint legible. Move branch-specific detail, catalogues,

templates, and examples to direct references; avoid deep reference chains.

  1. Prefer positive target behavior and surrounding-context judgment over

blanket prohibitions. State exact constraints where mistakes would be

costly or hard to recover.

  1. Validate syntax and links, then test both triggering and output quality with

fresh, realistic prompts. Compare against a no-skill baseline when the

skill's value is uncertain.

  1. Prune repetition, stale material, and instructions that do not change model

behavior.

Read GLOSSARY.md when shared vocabulary helps discuss invocation,

information hierarchy, steering, or pruning.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.