Guides through creating a new OpenCode command with interactive interview, $VARIABLE configuration, and validation. Use when user says "create opencode command", "new opencode command", "build command for opencode", or wants to create an OpenCode command markdown file.
Guides through creating new OpenCode commands via interactive interview with variable configuration and validation.
/plugin marketplace add sequenzia/agent-alchemy/plugin install agent-alchemy-opencode-tools@agent-alchemyThis 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.
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.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.