Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sk-create-agent

БесплатноБез исполняемых скриптовНе проверен

Scaffold OpenCode agents with runtime placement, permission frontmatter, authority boundaries, workflow sections, and validation.

MichelKerkmeesterот 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:

  1. Creating a new OpenCode or Claude Code agent file.
  2. Updating an agent's frontmatter, permissions, authority boundary, workflow, verification contract, or anti-patterns.
  3. Converting a durable role description into a runtime persona with explicit authority and tool policy.
  4. Deciding whether the requested component should be an agent, skill, or command.
  5. 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:

  1. The request needs reusable knowledge, standards, templates, or long-form workflow guidance. Use create-skill.
  2. The request needs a slash-command entry point without a new runtime persona. Use create-command.
  3. 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, or create-changelog. A flowchart or any other diagram belongs to the sk-design hub (/design:diagram), which this hub does not register a packet for.
  4. 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:

  1. The filename is kebab-case and ends in .md.
  2. The filename stem matches frontmatter name exactly.
  3. The stem matches ^[a-z0-9]+(?:-[a-z0-9]+)*$; reject underscores, empty segments, and ambiguous normalization instead of rewriting the name silently.
  4. The file lives in the active runtime directory, not under sk-doc.
  5. The body is self-sufficient for the agent's role, boundaries, workflow, limits, and output contract.
  6. 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:`)
``
Полный SKILL.md на GitHub

Установить sk-create-agent в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob

Вложенные файлы

README.mdROUTER.mdassets/agent-template.mdchangelog/v1.0.0.0.mdchangelog/v1.0.1.0.mdchangelog/v1.0.1.1.mdchangelog/v1.0.1.2.mdchangelog/v1.0.10.0.mdchangelog/v1.0.2.0.mdchangelog/v1.0.3.0.mdchangelog/v1.0.4.0.mdchangelog/v1.0.5.0.mdchangelog/v1.0.6.0.mdchangelog/v1.0.7.0.mdchangelog/v1.0.8.0.mdchangelog/v1.0.9.0.mdmanual-testing-playbook/body-validation/leaf-denies-delegation.mdmanual-testing-playbook/body-validation/registry-record-before-roster-check.mdmanual-testing-playbook/body-validation/required-agent-sections.mdmanual-testing-playbook/component-choice/named-runtime-persona.mdmanual-testing-playbook/component-choice/reusable-knowledge-stays-a-skill.mdmanual-testing-playbook/manual-testing-playbook.mdmanual-testing-playbook/runtime-contract/claude-tools-allow-list.mdmanual-testing-playbook/runtime-contract/opencode-permission-object.mdreferences/README.mdreferences/agent-vs-skill-vs-command.mdreferences/common-pitfalls.mdreferences/permission-design.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить sk-create-agent с