create-skill
Scaffold a new bundled skill (.koda/skills/<name>/SKILL.md) with correct frontmatter, tool scoping, and a clear when_to_use trigger.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new bundled skill (.koda/skills/<name>/SKILL.md) with correct frontmatter, tool scoping, and a clear when_to_use trigger.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Scaffold a new sub-agent JSON file (.koda/agents/<name>.json) with the correct schema, tool scoping, and trust mode.
Diagnose koda issues — checks provider config, API connectivity, settings, and environment.
Review auto-memory entries and propose promotions, cleanups, and deduplication across all memory layers.
Review changed code for reuse, quality, and efficiency — then fix any issues found.
Senior code review — finds bugs, anti-patterns, and improvements
Security vulnerability scan — finds vulnerabilities before attackers do
| name | create-skill |
| description | Scaffold a new bundled skill (.koda/skills/<name>/SKILL.md) with correct frontmatter, tool scoping, and a clear when_to_use trigger. |
| tags | ["skill","scaffold","create","meta"] |
| when_to_use | Use when the user asks to create a new skill, capture a workflow as a skill, or extend koda with reusable expert instructions. |
| allowed_tools | ["Read","Write","Glob","List","AskUser"] |
You are scaffolding a new koda skill. The goal: produce a working
.koda/skills/<name>/SKILL.md (or ~/.config/koda/skills/<name>/SKILL.md)
that the user can immediately invoke via ActivateSkill or /<name>.
koda-core/skills/code-review/SKILL.md
or koda-core/skills/debug/SKILL.md first to ground yourself in the
canonical structure before generating the file.Grep is).when_to_use is the most important field. It's what the model uses
to decide whether to auto-activate the skill. Include trigger phrases.Write access. A
scaffolding skill should not have Delete. Use allowed_tools to
enforce least privilege.Use AskUser only when genuinely ambiguous. Skip it for obvious requests
like "create a skill that runs the tests." Things worth asking when unclear:
.koda/skills/<name>/,
personal/cross-project = ~/.config/koda/skills/<name>//<name>)? Auto-activated when
the model sees a matching task? Both?Read, Grep,
Glob), or also write (Write, Edit)?| Scope | Path | When |
|---|---|---|
| Project | .koda/skills/<name>/SKILL.md | Workflow specific to this repo. |
| Personal | ~/.config/koda/skills/<name>/SKILL.md | Cross-project workflow that follows the user. |
Note: Personal path is ~/.config/koda/, not ~/.koda/.
The <name> is both the directory name and the slash-command name (e.g.
code-review becomes /code-review). Use kebab-case.
---
name: my-skill
description: One-line purpose (shown in skill listing — keep under 200 chars)
when_to_use: Use when the user asks to <trigger>. Example phrases: "<phrase>", "<phrase>".
tags: [topic-a, topic-b]
allowed_tools: [Read, Grep, Glob, List, Bash]
---
# My Skill
You are <role>. <One-sentence statement of the goal>.
## Principles
- <key behavioral constraint #1>
- <key behavioral constraint #2>
## Process
1. <First concrete step>
2. <Second concrete step>
...
## Anti-patterns
- <thing not to do, with reason>
Required frontmatter:
name — skill identifier; matches the directory name and the
slash-command name (/<name>)description — one-line purpose shown in the skill listing in the
system prompt. Keep it ≤200 chars — the listing is for discovery
only, the model loads full content on activation.Highly recommended:
when_to_use — guidance for the model on when to auto-activate. Start
with "Use when…" and include 1-2 example trigger phrases. This drives
auto-activation accuracy.tags — searchable tags; helps users find the skill via /skillsallowed_tools — security/scoping. Empty = all tools (rare). Most
skills should explicitly list only what they need.Optional:
argument_hint — usage hint for skills that take parameters,
e.g. "<file_path>" or "[issue description]"user_invocable — defaults to true. Set false for model-only
skills (hidden from /skills but still activatable by the model).Mirror the structure of bundled skills:
# Skill Name (markdown H1)Optionally add:
ReadWrite to create the file at <chosen-path>/<name>/SKILL.md.
Note: koda needs the directory to exist; the Write tool will
create parent directories if needed./<name> or via ActivateSkill("<name>")when_to_use. Without it, the model has no signal for
when to auto-activate. The skill becomes user-invoke-only by accident.Write/Edit/Delete unless the skill actually modifies
files. A code-review skill with Write access is a footgun.Grep does. Don't list every git command. Skills add value by
encoding workflow and constraints, not basic knowledge.For a battle-tested example, read koda-core/skills/code-review/SKILL.md
or koda-core/skills/debug/SKILL.md. They demonstrate: tight when_to_use
phrasing, scoped allowed_tools, and concise process sections.