write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Resolve short approval against the latest checkpoint. Use for "lgtm", "looks good", "approved", or "go ahead"; not risky or review feedback.
Re-check a prior assistant claim. Use when user says "nack", "not convinced", or "check again"; not for review feedback.
UI/UX routing front door. Use as the front door for broad or ambiguous UI/UX work that needs the right build, redesign, audit, design-system, accessibility, or browser specialist. Do not use when the user already names a narrower UI skill.
Proposes UI Vault resource upgrades for a selected webpage. Use when the user asks for libraries, assets, effects, or inspiration for an existing page. Do not use for implementation or greenfield design.
Upload, list, or delete files with s3upload and return expiring Azure links. Use for configured temporary Azure storage; not for S3 or cloud setup.
Ship local Git changes by inspecting, polishing, validating, split-committing, and pushing. Use for commit, push, ship, delivery audit, or delivery blockers; not deploys or releases.
| name | write-a-skill |
| description | Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill. |
Create skills as small runtime contracts: when to load, what to inspect, what to do, what not to do, and what proves success.
Before changing a skill, inspect the current skill inventory, README.md, CONTEXT.md, THIRD_PARTY_NOTICES.md, package manifests, validation tests, and any upstream source being adapted. When codebase-map-understand.md exists, consult the codebase map for package/skill relationships that can focus the repo study, then verify named files directly. Preserve third-party notices and make the skill fit this repo's package language instead of copying upstream commands that do not exist here.
SKILL.md short; move rare details, long examples, and source notes to references/.SKILL.md with compact entry instructions and a contract.npm test when shipping) and one realistic scenario/review.For a non-trivial new or changed skill, prepare one pinned realistic scenario. When an approved runner is available, record a skill-on/skill-off comparison using the same model and harness, deterministic acceptance checks, a token/cost receipt, and brief trajectory notes. If the comparison cannot run, label the improvement unreplicated instead of claiming it works.
Do not invoke a paid or live model API without explicit approval, and never put live model calls in tests or CI.
User: “Create a release-readiness skill that must never publish.” Agent: inspect neighboring skills and package commands, draft a no-publish boundary plus deterministic checks, then label behavior unreplicated until an approved paired run exists.
For narrow defect or optimization skills, prefer the upstream prompt-cache pattern: Target → Symptom → Fix → Verify. Make applicability deterministic, keep one bug per skill, cite the source/version being adapted, and require a concrete post-fix assertion instead of prose confidence.
skill-name/
├── SKILL.md
├── references/
│ └── details.md
└── scripts/
└── helper.js
---
name: skill-name
description: Brief capability. Use when [specific triggers]. Do not use for [nearby non-goals].
---
# Skill Name
## Quick start
[Minimal first action]
## Operational basis
[Files/tools/state the agent must inspect before acting]
## Workflow
[Steps/checklists for the main path]
## Skill contract
[Entry protocol, topology check, verification gate, red lines, output contract]
## Example
User: [one realistic request]
Agent: [first action or final artifact shape]
## References
- [Detailed guidance](references/details.md)
For non-trivial skills, use and trim the contract template instead of duplicating its detailed guidance here.
The description is the only always-visible part. Keep it under the package budget, write in third person, and include concrete triggers: description: Extract PDF text/tables. Use when working with PDFs or forms. Avoid vague text like Helps with documents.
Before finalizing, compare the description against nearby skill descriptions. If five or more meaningful trigger words overlap, narrow the trigger, add an anti-trigger, or merge with the existing skill.
SKILL.md grew; first move rare details to references/.SKILL.md is compact; details live in references/.Follow the shared skill contract for repo study, dirty-worktree hygiene, verification evidence, safe handoffs, and safety defaults.