Design reusable AI agent skills in SKILL.md format — activation rules, constraints, workflow, output requirements, failure handling, and YAML frontmatter. Use when the user wants to create, improve, or standardize another skill for an AI agent.
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
A meta-skill for designing other skills. Part 1 — quality principles. Part 2 — a step-by-step process for creating and improving.
A skill is an SOP, not an instruction to a chatbot. A good skill describes:
| # | Pattern | Bad | Good |
|---|---|---|---|
| 1 | Role + constraints separated | "You're a K8s expert" | ROLE + CONSTRAINTS |
| 2 | A "don't know" branch | "Answer the question" | If there's no data — stop, list what's missing |
| 3 | Positive instructions | "Don't be verbose" | "Use 3–7 sentences" |
| 4 | Few-shot examples | Instructions only | INPUT / GOOD OUTPUT / BAD OUTPUT |
| 5 | Explicit hierarchy | 20 rules | PRIORITY 1 > 2 > 3 |
| 6 | Tools separated | "Use search if needed" | SEARCH TOOL: when, when not, what after |
First, determine the mode: CREATE (a new skill) or IMPROVE (an existing one).
Don't start generating the final SKILL.md until all the critical fields are determined.
Critical (without them — STOP, ask the user):
Secondary (if missing — generate with explicit assumptions):
If even one critical field is missing — don't write the final file, ask questions.
If the user didn't specify the skill type — determine it before starting work on the brief.
| Type | Characteristic pattern | What it affects |
|---|---|---|
| Analytical | Checking, finding problems, comparing | PROCESS: edge cases, branching on the data |
| Generative | Creating text, code, documentation | OUTPUT REQUIREMENTS: the exact structure of the result |
| Diagnostic | Finding the cause, investigating failures | FAILURE HANDLING: 3+ failure scenarios |
| Review | Evaluation, classification, verdict | DECISION RULES: a clear severity scale |
| Utility | Transformation, running, migration | TOOL USAGE: exact commands, flags |
If the type is still unclear — pick the most likely one, record it in the brief, and mark it as inferred.
Fill in the brief. The fields have a strict format, not free-form text.
brief:
purpose: '<verb + what it does. One phrase.>'
activation: ['<trigger 1>', '<trigger 2>'] # 2-4 items
do_not_use: ['<condition 1>', '<condition 2>'] # 2+ items
required_inputs: ['<field 1>', '<field 2>'] # required + optional
tools: ['<tool>: <when>'] # or empty []
output_format: '<the result structure. One paragraph.>'
failure_handling: ['<scenario 1>: <action>', '<scenario 2>: <action>'] # 2+
examples: # 1-2 items
- input: '<input>'
good: '<correct answer>'
bad: '<incorrect answer>'Until the brief is filled in completely — don't move on to rendering.
---
name: <kebab-case>
description: <verb + object>. Use when <trigger>.
---Description formula:
active-voice verb + what it does + ". Use when / Use for" + trigger
Rules:
help with, assist, support without a concrete action are forbiddenTestability test: read only the description. Is it immediately clear when the skill is needed and when not? If not — rewrite it.
Forbidden:
description: Helps with code stuff. Use when needed.Correct:
description: Review code changes for bugs, security issues, and convention violations. Use when reviewing a PR or diff before merge.Each brief field maps to a section. The order is fixed. This is the only template.
| Brief field | → | Section | Content format |
|---|---|---|---|
purpose | → | ## PURPOSE | One paragraph |
activation | → | ## ACTIVATION | A bulleted list of triggers |
do_not_use | → | ## DO NOT USE WHEN | A bulleted list of conditions |
required_inputs | → | ## INPUTS | A bulleted list of fields |
| (derived) | → | ## PROCESS | A numbered list of concrete actions (not "analyze", but "gather data" → "check constraints" → "choose an option"), at least 3 steps |
| (derived) | → | ## DECISION RULES | A bulleted list of priorities. At least one prioritization rule (PRIORITY 1 / 2 / 3) |
tools | → | ## TOOL USAGE | A description or "(not applicable)" |
output_format | → | ## OUTPUT REQUIREMENTS | One paragraph or a list |
failure_handling | → | ## FAILURE HANDLING | A bulleted list of scenarios |
examples | → | ## EXAMPLES | INPUT / GOOD OUTPUT / BAD OUTPUT |
Section requirements:
| Section | Always substantive | May be "(not applicable)" |
|---|---|---|
| PURPOSE | yes | no |
| ACTIVATION | yes | no |
| DO NOT USE WHEN | yes | no |
| INPUTS | yes | no |
| PROCESS | yes (>=3 steps) | no |
| DECISION RULES | yes | no |
| TOOL USAGE | no | yes |
| OUTPUT REQUIREMENTS | yes | no |
| FAILURE HANDLING | yes (>=2 scenarios) | no |
| EXAMPLES | no (but >=1 if present) | yes |
General minimums:
Additionally, by skill type:
| Type | Priority | Special attention |
|---|---|---|
| Analytical | Conflict detection | PROCESS covers edge cases (no data, broken data) |
| Generative | Output format | OUTPUT REQUIREMENTS contains the exact result structure |
| Diagnostic | Failure handling | FAILURE HANDLING covers 3+ scenarios |
| Review | Severity classification | DECISION RULES clearly divides findings by severity |
| Utility | Tool usage | TOOL USAGE contains exact commands, flags, examples |
If even one fails — go back to Step 3.
| Case | Check |
|---|---|
| Simple | Ideal data → correct result with no extra actions |
| Incomplete | Not enough data → FAILURE HANDLING: request specific data, no guessing |
| Out of scope | Request outside DO NOT USE → refusal or delegation, no execution |
Check that the skill fires when it should and stays silent when it shouldn't.
Generate:
Check:
If the test fails — rewrite the description and the ACTIVATION triggers.
Before changing anything, record the problem spots. Don't start fixing until a full defect list is compiled.
| Category | Defects | Action |
|---|---|---|
| Missing | No section, examples, YAML | Add |
| Shallow | A stub section, abstract examples | Fill in from context |
| Conflict | PROCESS duplicates DECISION RULES | Rewrite, set PRIORITY |
| Vague | "where possible", "be careful" | Replace with concrete conditions |
| Bloated | Lots of repetition, large examples, references inside | Trim: examples → process → explanations; extract into a reference |
| Wrong platform | YAML/format not for the platform | Rewrite for the target platform |
For each defect — one action from the table. Don't change what works.
Run it through steps 4–9 of the CREATE mode.
For any response, output exactly this set of blocks:
## Assumptions
<assumptions made in the process>
## Brief / Analysis
<for CREATE: the brief from Step 1>
<for IMPROVE: the audit from Step 1>
## Final SKILL.md
<the finished file in full, including the YAML>
## Validation
<check results: conflicts, modularity, quality (Step 6), the 3 tests (Step 7) — passed/failed>
## Open Questions
<questions, if any remain>If the user asks for only a fragment — provide it with a note "this is an incomplete output".
This meta-skill designs skills. By default, the skill body is considered platform-independent.
Universal rules (always):
Platform → format:
| Platform | File format | Specifics |
|---|---|---|
| universal (default) | SKILL.md | name + description, minimal fields |
| opencode-only | SKILL.md | description as concise as possible |
| claude-code-only | CLAUDE.md / AGENTS.md | Additional platform fields possible |
Rules:
---
name: code-reviewer
description: Review code changes for bugs, security issues, and convention violations. Use when reviewing a PR, diff, or changed files before merge.
---
## PURPOSE
Catch regressions, security holes, and style violations before code reaches production.
## ACTIVATION
- User asks to review a PR, diff, or changed files
- User says «review this code» / «check my changes»
## DO NOT USE WHEN
- Code is a generated artifact (protobuf, GraphQL schema)
- User explicitly asks for formatting only (use linter)
- File is lockfile, binary, or vendored dependency
## INPUTS
- git diff or list of changed files (or inline code snippet)
- (optional) severity threshold — skip INFO if asked
## PROCESS
1. Scan diff for security red flags: eval, exec, SQL injection, hardcoded secrets.
2. Check for logic bugs: off-by-one, null dereference, missing await.
3. Check code quality: dead code, excessive complexity, copy-paste.
4. Verify consistency with surrounding code (naming, patterns, imports).
5. Report findings grouped by severity.
6. For each finding: file:line, problem, suggested fix.
## DECISION RULES
- BLOCKER = security or data loss → always report
- CRITICAL = logic bug → breaks in production
- WARNING = maintainability concern
- INFO = style nit — skip if user said «quick review»
## TOOL USAGE
(not applicable — pure analysis)
## OUTPUT REQUIREMENTS
- Grouped: BLOCKER > CRITICAL > WARNING > INFO
- Each finding: location, problem, fix
- Summary line: X BLOCKER + Y CRITICAL + Z WARNING
- If zero findings: «No issues found — lgtm»
## FAILURE HANDLING
- No diff provided → ask for it, don't proceed
- File binary or >500 lines → warn, ask to narrow scope
- Language not recognised → generic review (logic + security only)
## EXAMPLES
INPUT: diff with `eval(userInput)` in express handler
GOOD OUTPUT: [BLOCKER] src/handler.ts:42 — eval() on user input allows arbitrary code execution. Fix: use safe JSON.parse or whitelist-based approach.
BAD OUTPUT: «This is potentially unsafe» — no explanation, no fix.Before delivering the result:
Most bad skills get better after removing 20–40% of the text. Don't add anything the skill would work just as well without.
uxname/kodu
db733be
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.