sk-create-command
БесплатноБез исполняемых скриптовНе проверенScaffold OpenCode slash commands with explicit argument hints, allowed tools, and router/presentation separation.
от MichelKerkmeester★ 40 звёзд на GitHubОб этом скилле
Create Command
create-command is the command-authoring workflow packet of the sk-doc parent hub. It creates and improves OpenCode slash commands under .skilled/commands/ with executable workflows, precise frontmatter, required input gates, least-privilege tools, and router/presentation separation when needed.
This SKILL.md contains the core creation workflow. Use the references/ route map (references/README.md), assets/command-template.md, assets/command-router-template.md, assets/command-presentation-template.md, and ../shared/ only for exhaustive examples, edge cases, and validator implementation detail.
This packet is lean and self-contained. The advisor identity lives at the sk-doc hub root: do not add packet-local graph-metadata.json.
1. WHEN TO USE
Activation Triggers
Use this packet when the request involves:
- Creating a new OpenCode slash command.
- Refactoring a command into a thin router plus owned presentation asset.
- Adding or fixing command frontmatter, especially
argument-hintandallowed-tools. - Designing command argument handling with
$ARGUMENTS. - Authoring a namespace command such as
/namespace:action. - Separating visible prompts, dashboards, result templates, or next-step wording into a presentation contract.
- Checking whether a workflow should be a command instead of a skill, agent, or one-off task.
Keyword triggers: create command, /create:command, slash command, OpenCode command, argument-hint, allowed-tools, command template, router presentation split, thin router, presentation contract, paired /create, $ARGUMENTS.
When NOT to Use
Use another sk-doc packet when:
- The request is to create a skill or parent hub. Use
create-skill. - The request is to create an agent. Use
create-agent. - The task is a README, feature catalog, manual testing playbook, benchmark package, flowchart, or changelog. Use
create-readme,create-feature-catalog,create-manual-testing-playbook,create-benchmark,create-flowchart, orcreate-changelog. - The task audits, validates, scores, or optimizes an existing command document. Use
create-quality-control. - The task is one-time work that does not need a reusable slash command.
- The command already exists and the user only wants runtime debugging.
- The requested workflow is destructive or externally privileged but lacks confirmation and rollback requirements.
2. SMART ROUTING
The sk-doc hub routes command-authoring work here: a request to create, refactor or repair an OpenCode slash command, and the hub's sk-create-command signal selects this packet.
Execution-mode suffixes such as :auto and :confirm are command syntax, not packet-selection triggers.
references/README.md is the route map, and the fallback when the command purpose or component surface is unclear.
A resolved request loads this packet's flat references and its command templates under assets/ first.
Read ROUTER.md before selecting skill-local resources; open only the matched files.
3. HOW IT WORKS: CREATION WORKFLOW
Follow these steps in order.
Step 1: Decide Whether A Command Is Correct
Create a command only when the workflow is repeatable and has defined steps.
Use a command when the workflow:
- Automates a multi-step process.
- Needs repeatable execution across sessions.
- Needs
$ARGUMENTSparsing or mode routing. - Needs user-controlled execution pace such as
:autoor:confirm. - Needs confirmation gates for destructive or privileged actions.
- Benefits from explicit tool restrictions.
Use a skill instead when the content is reusable reference knowledge, domain guidance, standards, or patterns shared by multiple workflows. Do not create a command for one-off work.
Step 2: Resolve Invocation And Path
Determine the command invocation before writing:
- Root command:
.skilled/commands/<command>.mdbecomes/<command>. - Namespace command:
.skilled/commands/<namespace>/<action>.mdbecomes/<namespace>:<action>. - Namespace and action names use lowercase hyphen-case.
- Each command, namespace and action segment matches
^[a-z0-9]+(?:-[a-z0-9]+)*$. Reject underscores, empty segments and ambiguous normalization. The emitted.mdstem must equal the validated action name.
For grouped related actions, prefer a namespace directory:
.skilled/commands/
└── <namespace>/
├── <action1>.md
├── <action2>.md
└── <action3>.md
Step 3: Read Existing Files First
Before editing an existing command or owned asset, read it completely enough to understand current behavior. Preserve behavior unless the user explicitly asks to change it.
For new commands, inspect nearby commands in the same namespace when available so structure and vocabulary match the command family.
Step 4: Classify The Command Type
Choose the smallest command type that fits:
| Type | Use When | Typical Shape |
|---|
Установить sk-create-command в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл sk-create-command?
Scaffold OpenCode slash commands with explicit argument hints, allowed tools, and router/presentation separation.
Как установить скилл sk-create-command?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sk-create-command запускает скрипты?
Нет, скилл состоит только из инструкций (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