description: Create or update OpenCode skills via one unified command with operation routing. :auto/:confirm. argument-hint: "<skill-name> [operation] [type] [--path <dir>] [--chained] [:auto|:confirm] (:auto supports PRE-BOUND SETUP ANSWERS: prompt-body block for non-interactive setup)" allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TodoWrite, mcp__mk_spec_memory__memory_index_scan, mcp__mk_spec_memory__memory_save
/create:skill Router
This command is a thin router. It separates execution routing from user-facing presentation.
1. ROUTER CONTRACT
Route /create:skill to its presentation contract and workflow YAML for creating or updating OpenCode skills through the unified skill command.
- Do not split behavior across legacy command definitions.
- Do not edit workflow YAML while executing this command.
2. OWNED ASSETS
| Purpose | Asset |
|---------|-------|
| Presentation contract | .opencode/commands/create/assets/create-skill-presentation.txt |
| Auto workflow | .opencode/commands/create/assets/create-skill-auto.yaml |
| Confirm workflow | .opencode/commands/create/assets/create-skill-confirm.yaml |
3. MODE ROUTING
- If any referenced asset is missing, stop and report the missing path.
- The YAML owns workflow behavior; the presentation Markdown owns user-visible wording and layout.
- Read
.opencode/commands/create/assets/create-skill-presentation.txt. - Run the presentation contract's Phase 0 verification and setup resolution.
- Resolve operation from setup:
full-create,full-update,reference-only, orasset-only. - Resolve execution mode from
$ARGUMENTSor the setup answer::autoor:confirm. - Load the workflow YAML bound to the resolved mode from the EXECUTION TARGETS table below.
- Execute the selected YAML step by step and route to the resolved operation branch.
- Use the presentation contract, not this router, for user prompts, setup/status dashboards, and final result display.
4. EXECUTION TARGETS
| Mode | Target |
|------|--------|
| :auto | .opencode/commands/create/assets/create-skill-auto.yaml |
| :confirm or omitted mode | .opencode/commands/create/assets/create-skill-confirm.yaml |
5. PRESENTATION BOUNDARY
The following content lives only in .opencode/commands/create/assets/create-skill-presentation.txt:
- Startup questions, Phase 0 verification, setup dashboard, operation display, status display, completion template, and next-step text.
The router must not invent visible wording for those surfaces; it only resolves operation, execution mode, and workflow selection.
6. WORKFLOW SUMMARY
The bound workflow YAML (create-skill-auto.yaml for :auto, create-skill-confirm.yaml for :confirm or an omitted mode) runs the unified skill workflow step by step after Phase 0 verification and setup resolution, then routes to the resolved full-create, full-update, reference-only, or asset-only operation branch to create or update OpenCode skills. :auto executes autonomously; :confirm runs the same steps as an interactive checkpointed workflow. All user-facing prompts, setup/status dashboards, and result display come from the presentation contract, not this router.
User request: $ARGUMENTS
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.