skill-design
Original:🇺🇸 English
Translated
Design and refactor Agent Skills with concise, high-signal instructions and explicit trigger metadata. Use when creating a new skill, revising SKILL.md/README.md structure, or improving skill discoverability and portability.
10installs
Sourceshihyuho/skills
Added on
NPX Install
npx skill4agent add shihyuho/skills skill-designTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Skill Design
Design skills as reusable behavior systems that are easy to discover and execute.
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, andREADME.mdreferences/ - 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"
Core Principles
- Optimize for reliable agent behavior, not document aesthetics.
- Make trigger conditions explicit and searchable.
- Keep instructions executable and verifiable.
- Avoid implicit project context unless explicitly required.
Writing Style Rules
- Use imperative voice.
- Keep sections short and high-signal.
- Prefer concrete constraints over abstract advice.
- Use /
MUSTfor true invariants (safety, correctness, irreversible failure).NEVER - For normal guidance, use direct action verbs and clear defaults.
- Avoid weak modal wording for hard rules (,
should,could,may,consider).usually - Remove narrative text that does not change execution.
Metadata and Discovery
- Write frontmatter in third person.
description - Include both what the skill does and when to use it.
- Keep trigger terms concrete (,
file type,task type).user phrasing - Do not put workflow details in ; keep those in the body.
description
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.
- Keep as execution logic and decision constraints.
SKILL.md - Move bulky detail to and keep one source of truth per schema.
references/ - Add only for repeatable deterministic operations.
scripts/ - When composing with other skills, invoke them by name and never copy their instruction bodies.
Phase 3 - Author/Refactor SKILL
- Tighten description and trigger wording.
- Convert soft guidance into explicit, executable instructions.
- Provide one default path first; add alternatives only when necessary.
- Remove duplicate or contradictory instructions.
Phase 4 - Align README (Human-Facing)
- Keep README value-first: problem -> value -> example -> activation.
- Treat as style charter for future AI output quality.
README.md - 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.
Progressive Disclosure Rules
- Keep body compact (target under 500 lines).
SKILL.md - Put advanced or domain-specific detail in .
references/ - Link reference files directly from (avoid deep nested references).
SKILL.md - For long reference files (100+ lines), add a short table of contents.
README Rules
- In this skill, means the skill-level README (for example
README.md), not the repository root README.skills/<skill-name>/README.md - is not required by Agent Skills Specification.
README.md - is recommended for faster human understanding and adoption.
README.md - Keep README focused on outcomes, style expectations, and activation cues.
Anti-Patterns
- Hardcoded local paths as universal defaults.
- Tool lock-in with no fallback path.
- Copying external skill instruction bodies instead of invoking the source skill.
- Workflow summary inside frontmatter .
description - Duplicated schema definitions across files.
- Long narrative prose with no executable instruction.
- Repeating /
MUSTfor non-critical guidance.NEVER - Offering too many equivalent options without a default recommendation.
Done Checklist
- has explicit trigger contract and executable workflow.
SKILL.md - Frontmatter clearly states what + when.
description - defines style expectations for future contributions.
README.md - contains heavy details only when needed.
references/ - No stale terms, duplicated schema ownership, or contradictory rules.
- Validation evidence is recorded (tool-based or manual).
- Example validation command: .
npx --yes skills-ref validate ./skills/<skill-name>