sk-create-agent
БесплатноБез исполняемых скриптовНе проверенScaffold OpenCode agents with runtime placement, permission frontmatter, authority boundaries, workflow sections, and validation.
от MichelKerkmeester★ 40 звёзд на GitHubОб этом скилле
Create Agent - Runtime Persona Authoring
create-agent is the sk-doc workflow packet for creating or updating one runtime agent markdown file. The executable contract lives here: decide whether an agent is the right component, place it in the active runtime directory, author current frontmatter and authority boundaries, then validate before delivery.
Use references/README.md (the overflow route map) and assets/agent-template.md only for deeper examples, exhaustive variants, and long-form reference detail. Do not make those files the primary workflow contract.
1. WHEN TO USE
Activation Triggers
Use this workflow when the request involves:
- Creating a new OpenCode or Claude Code agent file.
- Updating an agent's frontmatter, permissions, authority boundary, workflow, verification contract, or anti-patterns.
- Converting a durable role description into a runtime persona with explicit authority and tool policy.
- Deciding whether the requested component should be an agent, skill, or command.
- Running or supporting
/create:agent.
Keyword triggers: create agent, /create:agent, OpenCode agent, Claude Code agent, agent file, new agent, agent persona, agent frontmatter, permission object, authority boundary, agent template, agent and paired, agent registry.
Create an agent only when the system needs a stable named persona with explicit tool permissions, denied capabilities, behavioral constraints, orchestration authority, or reusable execution posture.
When NOT to Use
Use another sk-doc packet when:
- The request needs reusable knowledge, standards, templates, or long-form workflow guidance. Use
create-skill. - The request needs a slash-command entry point without a new runtime persona. Use
create-command. - The request needs a README, feature catalog, manual testing playbook, benchmark package, or changelog. Use
create-readme,create-feature-catalog,create-manual-testing-playbook,create-benchmark, orcreate-changelog. A flowchart or any other diagram belongs to thesk-designhub (/design:diagram), which this hub does not register a packet for. - The request audits, validates, scores, or optimizes an existing agent document. Use
create-quality-control.
2. SMART ROUTING
The sk-doc hub routes runtime-persona work here: a request to create or update one agent file.
The hub's sk-create-agent signal selects this packet.
Stay in this packet only when the artifact is a concrete runtime agent file whose authority boundary no existing agent already covers.
A skill, a command or an existing agent answers the rest.
references/README.md is the route map.
It is also the fallback when the component or runtime is unclear.
A resolved request loads this packet's flat references and assets first, with assets/agent-template.md as the scaffold.
Read ROUTER.md before selecting skill-local resources.
Open only the matched files.
3. HOW IT WORKS
Component Choice
Choose the component type before authoring: an agent answers who should do the work, a skill answers how the work should be done, and a command answers how a user should trigger the workflow. Healthy systems often pair all three: the agent provides persona and boundaries, the skill provides detailed domain knowledge, and the command provides the ergonomic entry point.
Output Package
Create or update one markdown file in the active runtime agent directory.
| Runtime profile | Agent directory |
|---|---|
| OpenCode | .opencode/agents/ |
| Claude Code | .claude/agents/ |
| Copilot/default OpenCode profile | .opencode/agents/ |
The output file contract:
- The filename is kebab-case and ends in
.md. - The filename stem matches frontmatter
nameexactly. - The stem matches
^[a-z0-9]+(?:-[a-z0-9]+)*$; reject underscores, empty segments, and ambiguous normalization instead of rewriting the name silently. - The file lives in the active runtime directory, not under
sk-doc. - The body is self-sufficient for the agent's role, boundaries, workflow, limits, and output contract.
- Reusable or deep domain guidance stays in skills or references and is linked, not pasted into the agent.
Canonical Frontmatter
Frontmatter schema is runtime-specific — never emit the same schema for both runtime directories:
| Runtime directory | Canonical schema | Rationale |
|---|---|---|
.opencode/agents/ |
permission: object |
OpenCode enforces the permission: object; it ignores a standalone tools: key. |
.claude/agents/ |
tools: allow-list |
Claude Code enforces only tools: (a comma-separated allow-list); it silently ignores permission:. Omitting tools: makes the agent inherit the parent session's full, unrestricted tool set. |
Decision rule:
Authoring for .skilled/agents/? -> emit `permission:` (never bare `tools:`)
Authoring for .claude/agents/? -> emit `tools:` (never `permission:`)
``
Установить sk-create-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл sk-create-agent?
Scaffold OpenCode agents with runtime placement, permission frontmatter, authority boundaries, workflow sections, and validation.
Как установить скилл sk-create-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sk-create-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic