From agent-alchemy-opencode-tools
Guides interactive creation of new OpenCode commands via structured interview for name, purpose, description, variables, model overrides, and validation.
npx claudepluginhub sequenzia/agent-alchemy --plugin agent-alchemy-opencode-toolsThis skill is limited to using the following tools:
You are initiating the OpenCode command creation workflow. This process guides the user through an interactive interview to gather requirements, generates a properly formatted command markdown file, and validates the result.
Creates custom Claude Code slash commands with Markdown structure, YAML frontmatter for args/tools, and best practices for project/user scopes.
Orchestrates creation or updates of OpenCode tools (skills, agents, commands) via triage interview, dependency detection, and delegation to type-specific skills. Use for 'create opencode tool' requests.
Guides creation of Claude Code slash commands for reusable workflows, with patterns, examples, best practices, and structured workflow including location detection.
Share bugs, ideas, or general feedback.
You are initiating the OpenCode command creation workflow. This process guides the user through an interactive interview to gather requirements, generates a properly formatted command markdown 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.
Read the OpenCode platform overview and command guide:
${CLAUDE_PLUGIN_ROOT}/references/platform-overview.md${CLAUDE_PLUGIN_ROOT}/references/command-guide.mdGather requirements through a structured interview.
Question 1 — Command Name:
/{name}. Use kebab-case."Question 2 — Purpose:
Question 3 — Description:
Question 1 — Variables:
If "Yes":
Question 2 — Variable Names:
Question 3 — Model Override:
Question 4 — Agent Routing:
Question 1 — Location:
Present a summary:
## Command Summary
- **Name**: {name} (invoked as /{name})
- **Description**: {description}
- **Variables**: {list of $VARIABLE names or "none"}
- **Model override**: {model or "none"}
- **Agent**: {agent name or "none"}
- **Location**: {path}
Use AskUserQuestion to confirm:
Spawn the generator agent:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-generator"
prompt: |
Generate an OpenCode command with these specifications:
Type: command
Name: {name}
Description: {description}
Variables: {list of $VARIABLE names}
Model override: {model or "none"}
Agent: {agent name or "none"}
Subtask: {true/false}
Purpose: {detailed purpose from interview}
Target path: {target directory}/commands/{name}.md
NOTE: Commands support `agent` (which agent executes) and `subtask` (force subagent execution) frontmatter fields in addition to `model` and `description`.
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/command-guide.md
Template: ${CLAUDE_PLUGIN_ROOT}/references/templates/command-template.md
Interview notes:
{all gathered requirements}
Spawn the validator agent:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-validator"
prompt: |
Validate the following OpenCode artifact:
Type: command
Path: {path to generated file}
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/command-guide.md
If validation fails with errors, fix and re-validate.
Present the generated command:
/{name} in the OpenCode TUICRITICAL: Complete ALL 5 phases before finishing.