claude/opencode-tools/skills/oc-create-skill/SKILL.md
Guides through creating a new OpenCode-compatible skill with interactive interview, best-practice enforcement, and validation. Use when user says "create opencode skill", "new opencode skill", "build skill for opencode", or wants to create an OpenCode SKILL.md file.
npx skillsauth add sequenzia/agent-alchemy oc-create-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are initiating the OpenCode skill creation workflow. This process guides the user through an interactive interview to gather requirements, generates a properly formatted SKILL.md file, and validates the result.
IMPORTANT: You MUST use the AskUserQuestion tool for ALL questions to the user. Never ask questions through regular text output.
Text output should only be used for summaries, explanations, and presenting information.
Read the OpenCode platform overview and skill guide:
${CLAUDE_PLUGIN_ROOT}/references/platform-overview.md${CLAUDE_PLUGIN_ROOT}/references/skill-guide.mdStore the reference content internally for use throughout the workflow.
Gather requirements through a structured interview using AskUserQuestion.
Ask these questions using AskUserQuestion (max 4 per call):
Question 1 — Skill Name:
code-review, deploy-check)."Question 2 — Purpose:
Question 3 — User-Invocable:
/skill-name)?"Question 1 — Target Audience:
Question 2 — Variables:
Question 3 — Complexity:
If the user selected multi-phase or complex:
Question 1 — Phases:
Question 2 — Tools:
Question 1 — Location:
Question 2 — Additional metadata:
After completing the interview rounds, present a summary of the gathered requirements:
## Skill Summary
- **Name**: {name}
- **Description**: {generated from purpose + details}
- **User-invocable**: {yes/no}
- **Variables**: {list or "none"}
- **Phases**: {count and brief description}
- **Tools**: {tool set}
- **Location**: {path}
Use AskUserQuestion to confirm:
If "Make changes", ask what to change and update accordingly.
Spawn the generator agent to create the skill file:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-generator"
prompt: |
Generate an OpenCode skill with these specifications:
Type: skill
Name: {name}
Description: {description}
User-invocable: {true/false}
Variables: {list of $VARIABLE placeholders}
Phases: {phase descriptions}
Tool guidance: {which tools to use/avoid}
Target path: {target directory}/skills/{name}/SKILL.md
IMPORTANT: The `name` field is REQUIRED in frontmatter. Set it to "{name}" (must match the directory name).
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/skill-guide.md
Template: ${CLAUDE_PLUGIN_ROOT}/references/templates/skill-template.md
Interview notes:
{all gathered requirements}
Spawn the validator agent to check the generated file:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-validator"
prompt: |
Validate the following OpenCode artifact:
Type: skill
Path: {path to generated file}
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/skill-guide.md
If validation fails with errors, fix the issues and re-validate.
Present the generated skill to the user:
/{name} in the OpenCode TUICRITICAL: Complete ALL 5 phases before finishing.
development
Systematic, hypothesis-driven debugging workflow with triage-based track routing. Use when asked to "fix this bug", "debug this", "why is this failing", "this is broken", "investigate this error", "track down this issue", or any debugging situation. Supports --deep flag to force full investigation.
development
Executes diagnostic investigation tasks to test debugging hypotheses. Runs tests, traces execution, checks git history, and reports evidence. (converted from agent)
content-media
Provides architectural pattern knowledge for designing feature implementations including MVC, event-driven, microservices, and CQRS patterns. Use when designing system architecture or choosing implementation patterns.
documentation
Provides Mermaid diagram syntax, best practices, and styling rules for technical visualizations. Use when creating diagrams, flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, architecture diagrams, C4 diagrams, or any visual documentation in markdown.