Command Palette

Search for a command to run...

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

sk-create-command

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

Scaffold OpenCode slash commands with explicit argument hints, allowed tools, and router/presentation separation.

MichelKerkmeesterот 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-hint and allowed-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, or create-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 $ARGUMENTS parsing or mode routing.
  • Needs user-controlled execution pace such as :auto or :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>.md becomes /<command>.
  • Namespace command: .skilled/commands/<namespace>/<action>.md becomes /<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 .md stem 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Write
Edit
Bash
Grep
Glob

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

README.mdROUTER.mdassets/command-contract.jsonassets/command-contract.schema.jsonassets/command-presentation-template.mdassets/command-router-template.mdassets/command-template.mdchangelog/v1.0.0.0.mdchangelog/v1.0.1.0.mdchangelog/v1.0.1.1.mdchangelog/v1.0.10.0.mdchangelog/v1.0.11.0.mdchangelog/v1.0.12.0.mdchangelog/v1.0.13.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/component-and-path/reference-guidance-stays-a-skill.mdmanual-testing-playbook/component-and-path/repeatable-slash-command.mdmanual-testing-playbook/input-and-modes/complete-auto-and-confirm-modes.mdmanual-testing-playbook/input-and-modes/required-argument-gate.mdmanual-testing-playbook/manual-testing-playbook.mdmanual-testing-playbook/router-contract/direct-dispatch-without-yaml.mdmanual-testing-playbook/router-contract/thin-router-presentation-boundary.mdreferences/README.mdreferences/argument-hints-and-modes.mdreferences/common-pitfalls.mdreferences/router-presentation-split.mdreferences/worked-example.md

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

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

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