writing-great-skills
Design or revise concise skills with clear triggers, proportional constraints, progressive disclosure, and realistic validation.
- License 许可
- MIT
- 所属仓库
- stevesolun/ctx
- 最近更新
- 2026-10-15
- Stars
- ★ 590
- Forks
- 69
01 前言 Front Matter
- name
- writing-great-skills
- description
- Design or revise concise skills with clear triggers, proportional constraints, progressive disclosure, and realistic validation.
02 资源文件 2
- 参考文档agents/openai.yaml149 B
- 参考文档GLOSSARY.md1.9 KB
03 SKILL.md 正文
Write an effective skill
- Define the job, realistic trigger prompts, non-trigger prompts, expected output, and material failure modes.
- Choose the degree of freedom:
- Use judgment-based guidance when context admits several good approaches.
- Use parameters or pseudocode when a preferred pattern still needs adaptation.
- Use deterministic scripts or hard gates only when reliability, safety, or repeatability justifies the constraint.
- Keep metadata concise and discriminative. Put trigger conditions in the description; put execution guidance in the body.
- Assume the model already understands general software work. Preserve only domain knowledge, workflow choices, tool interfaces, and opinions that materially change behavior.
- Keep the entrypoint legible. Move branch-specific detail, catalogues, templates, and examples to direct references; avoid deep reference chains.
- Prefer positive target behavior and surrounding-context judgment over blanket prohibitions. State exact constraints where mistakes would be costly or hard to recover.
- 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.
- 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.
04 同仓库更多 Skills
toolbox
Pre/post dev toolbox — named bundles of skills/agents loaded before development work and councils of experts invoked after. Run /toolbox or the toolbox.py CLI to list, activate, initialize, export, import, and validate toolboxes. Invoke at the start or end of a dev session, when setting up a new repo, or when sharing toolboxes with a team.
skill-router
Alive skill router — reads the current project's stack and loads/unloads skills dynamically. Invoke at session start or when project context changes.
repo-stats-autoupdate
Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory. Runs automatically on every commit via a git pre-commit hook. Use when the README drifts from reality or before publishing a release.
find-skills
Discover installable agent skills from ctx's shipped Skills.sh catalog, the Skills.sh search API, and the npx skills CLI. Use when a user asks whether a skill exists, wants to add/update a skill, or needs a repeatable procedure for finding candidate skills safely.
no-mistakes
Validate committed feature-branch changes through the no-mistakes pipeline: intent, rebase, review, test, docs, lint, push, PR, and CI. Use when the user asks to run no-mistakes, ship safely, validate before pushing, or gate a change before it reaches upstream.
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.