AGENT SKILL

ask-write-skill

Write Skill: Creates and revises skills and guardrails from reusable workflow gaps. Use when making a skill or when agent behavior exposes a routing gap.

License 许可
MIT
最近更新
2026-11-09
Stars
★ 1
Forks
0

01 前言 Front Matter

name
ask-write-skill
triggers
[ "create skill", "revise skill", "skill design", "trigger-focused", "write skills", "improve skills", "skill improvement", "skill gap", "workflow improvement", "routing gap", "missing guardrail", "prompt pack improvement", "reusable improvement", "agent missed", "auto improvement" ]
description
Write Skill: Creates and revises skills and guardrails from reusable workflow gaps. Use when making a skill or when agent behavior exposes a routing gap.
execution_tier
standard
disable-model-invocation
true

03 SKILL.md 正文

Writing ASK Skills

Two modes: (1) create or revise skills that improve agent judgment, (2) capture reusable workflow gaps observed during sessions.

Creating skills

Design rules

  1. The description says when to use, not how the skill works.
  2. Length follows the steps: inline what every run needs, so it cannot be skipped, and cut what changes no behavior. Disclose into references/ only a branch that just some runs reach.
  3. Prefer one clear pattern over a long manifesto.
  4. Add support files only when the main file would become reference-heavy.
  5. Make autonomous progress the default when the goal is clear.
  6. General skills should not hardcode branded artifact trees or repo-local folder conventions.
  7. Encode hard gates only for failures that are expensive and common.
  8. Treat the description and any always-loaded pointer line as a context pointer: its wording decides when the material is reached. Front-load the leading word, give one trigger per distinct branch (synonyms are one branch written twice), and cut identity the body already carries. Sharpen a weak pointer before inlining its target.
  9. End every step with a completion criterion the agent can check and that demands full coverage ("every changed function has an intent comment"). A vague bound ("understanding reached") invites stopping early; sharpen the bound before hiding later steps.
  10. Spend the two loads on purpose. Always-loaded text costs context on every turn, and a document with no pointer costs the human an index of what exists. Keep the steps in SKILL.md, and push reference that only some branches need behind a pointer to a one-level references/ file.

Design test

  • What mistake will the model make without this skill?
  • What is the smallest guidance that prevents that mistake?
  • Does this skill help discovery, or does it just add ceremony?
  • Can the agent tell done from not done at the end of each step?

Capturing workflow improvements

When agent behavior reveals a reusable gap:

  1. State observed gap: what was missed, guessed, repeated, or done too late.
  2. Propose smallest durable fix: skill text, router hint, plugin behavior, or issue-flow guidance.
  3. Prefer updating an existing skill over creating a new one.
  4. If implementing immediately, still create or reuse a tracking issue in the skill-pack source repo.
  5. If not implementing now, create follow-up issue with evidence and concrete proposed fix.

Hooks

  1. After review or verification, check whether session exposed reusable workflow gap.
  2. If yes, load this skill before ending session cold.
  3. If improvement is clear and small, implement directly. Even after direct fix, create or reuse source-tracking issue.

Good candidates

  • Same missed step appears across multiple sessions
  • Skill lacks obvious guardrail or ordering rule
  • Router should bias toward better skill in recurring situation
  • Issue creation, review, or verification misses common safety check

Use with

  • session-review when improvement should become a tracked issue
  • code-review when improvement was discovered during review
  • verification when session is closing and reusable learning should not get lost

Avoid

  • Filing issue for one-off typo or isolated repo bug
  • Creating new skills when existing one can absorb guidance
  • Vague meta-issues without observed pattern or proposed change
  • Descriptions that summarize workflow instead of saying when to use
  • Repo-specific path recipes in generic skills

04 同仓库更多 Skills