skill-design
1
总安装量
1
周安装量
#44495
全站排名
安装命令
npx skills add https://github.com/shihyuho/skills --skill skill-design
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
claude-code
1
Skill 文档
Skill Design
These are instructions for designing skills as reusable behavior systems.
Core Rule
- MUST design for reliable agent behavior, not document aesthetics.
- MUST make trigger conditions explicit and searchable.
- MUST keep instructions executable and verifiable.
- NEVER rely on implicit project context.
Trigger Contract
Use this skill when users ask to:
- create a new skill
- refactor an existing skill
- improve trigger quality or discoverability
- align
SKILL.md,README.md, andreferences/ - remove ambiguity or conflicting guidance
Typical trigger phrases:
- “create a skill for X”
- “design a new skill”
- “refactor this skill”
- “make this skill reusable”
- “align README and SKILL behavior”
CRITICAL: Writing Mode
- MUST write in imperative voice.
- MUST use
MUST/NEVERfor non-negotiables. - MUST keep sections short and high-signal.
- MUST prefer concrete constraints over abstract advice.
- NEVER use weak modal language for hard rules (
should,could,may,consider,usually). - NEVER pad with narrative text that does not change execution.
Information Architecture
- MUST keep
SKILL.mdas execution logic and decision constraints. - MUST keep
references/as the single source of heavy schemas/templates. - MAY add
scripts/only for repeatable deterministic operations. - MUST keep file structure minimal and purpose-driven.
Workflow
Phase 1 – Define Contract
- Define who uses the skill and when it triggers.
- Define non-negotiable behavior and failure boundaries.
- Define deterministic vs heuristic decisions.
Phase 2 – Structure Content
- Write trigger and constraints first.
- Move bulky detail to
references/. - Keep one source of truth for each schema.
Phase 3 – Author/Refactor SKILL
- Tighten description and trigger wording.
- Convert soft guidance to executable rules.
- Add explicit anti-generic constraints.
- Remove duplicate or contradictory instructions.
Phase 4 – Align README (Human-Facing)
- Keep README value-first: problem -> value -> example -> activation.
- Keep implementation internals out of README.
- Keep claims behavior-accurate.
Phase 5 – Validate
- Run available validator for your environment.
- If no validator exists, run manual consistency checks.
- Confirm no repository-specific assumptions remain unless explicitly intended.
README Rules
- In this skill,
README.mdmeans the skill-level README (for exampleskills/<skill-name>/README.md), not the repository root README. README.mdis not required by Agent Skills Specification.README.mdis recommended for faster human understanding and adoption.- MUST keep README focused on outcomes, not internal mechanics.
Anti-Patterns
- Hardcoded local paths as universal defaults.
- Tool lock-in with no fallback path.
- Workflow summary inside frontmatter
description. - Duplicated schema definitions across files.
- Long narrative prose with no executable instruction.
Done Checklist
SKILL.mdhas explicit trigger contract and hard constraints.README.mdis concise and value-focused.references/contains heavy details only when needed.- No stale terms or contradictory rules.
- Validation evidence is recorded (tool-based or manual).
- Example validation command:
npx --yes skills-ref validate <skill-name>.