Guides through creating a new OpenCode-compatible agent with interactive interview, permission configuration, and validation. Use when user says "create opencode agent", "new opencode agent", "build agent for opencode", or wants to create an OpenCode agent markdown file.
Guides through creating OpenCode agents via interactive interview with permission 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 agent creation workflow. This process guides the user through an interactive interview to gather requirements, generates a properly formatted agent markdown file with permissions and system prompt, 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 agent guide:
${CLAUDE_PLUGIN_ROOT}/references/platform-overview.md${CLAUDE_PLUGIN_ROOT}/references/agent-guide.mdGather requirements through a structured interview.
Question 1 — Agent Name:
code-reviewer, test-runner)."Question 2 — Purpose:
Question 3 — Mode:
Question 1 — Model Tier:
Question 2 — Temperature:
Question 3 — Steps Limit:
Question 1 — Permission Level:
If "Custom" selected:
Question 2 — File Operations:
Question 3 — Execution:
Question 4 — Web Access:
Question 1 — Prompt Focus:
Question 2 — Constraints:
Question 1 — Location:
Question 2 — Display:
Present a comprehensive summary:
## Agent Summary
- **Name**: {name}
- **Description**: {generated description}
- **Mode**: {primary/subagent/all}
- **Model**: {provider/model-id}
- **Temperature**: {value}
- **Steps**: {value or "default"}
- **Permissions**: {summary}
- **Focus areas**: {list}
- **Constraints**: {list}
- **Location**: {path}
Use AskUserQuestion to confirm:
Spawn the generator agent:
Task:
subagent_type: "agent-alchemy-opencode-tools:oc-generator"
prompt: |
Generate an OpenCode agent with these specifications:
Type: agent
Name: {name}
Description: {description}
Mode: {mode}
Model: {model}
Temperature: {temperature}
Steps: {steps}
Permissions: {permission object}
Color: {color or null}
Hidden: {true/false}
System prompt focus: {focus areas}
Constraints: {constraints}
Target path: {target directory}/agents/{name}.md
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md
Template: ${CLAUDE_PLUGIN_ROOT}/references/templates/agent-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: agent
Path: {path to generated file}
Reference guide: ${CLAUDE_PLUGIN_ROOT}/references/agent-guide.md
If validation fails with errors, fix the issues and re-validate.
Present the generated agent:
@{name} in the TUItask({ prompt: "...", command: "{name}" })opencode.jsonCRITICAL: 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.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
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.