balaji-dutt/dotfiles/plugin-developer
Claude Code and agent skill by balaji-dutt/dotfiles
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Build plugins for OpenCode or Claude Code with agents, hooks,
Install
npx vskill@latest install balaji-dutt/dotfiles/plugin-developerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
plugin-developer
Develop plugins that extend AI coding assistants with custom agents, lifecycle hooks, and tools. Supports both OpenCode (TypeScript plugins) and Claude Code (YAML/markdown plugins) platforms with automatic detection.
Use this skill when
- Building a new plugin for OpenCode or Claude Code.
- Adding agents, hooks, or custom tools to an existing plugin.
- Enforcing agentic workflows through plugin hooks.
- Converting a multi-agent workflow design into a plugin implementation.
Do not use this skill when
- You are creating a standalone skill without hooks/tools (use
skill-creator). - You are writing an agent prompt without plugin packaging (use
prompt-engineer).
Platform detection
Before starting, determine the target platform:
- OpenCode: Check for
.opencode/opencode.jsoncin the repo root. - Claude Code: Check for
.claude/directory orCLAUDE.mdin the repo. - Both: If both are present, ask the user which platform to target.
Plugin architectures
OpenCode plugins
See references/opencode-plugins.md for detailed reference.
Structure:
Key concepts:
- Plugin is a TypeScript function returning a config object.
- Config can define: agents, hooks, tools, permissions.
- Agent modes:
primary(full agent) orsubagent(delegated tasks). - Hooks:
event,tool.execute.before,tool.execute.after,
chat.message, experimental.session.compacting.
- Custom tools: defined with Zod schemas for input validation.
- Distribution: npm packages.
Constraints:
- Only one default export per plugin (the Plugin function).
- Subagents cannot spawn other subagents.
task()calls block explore-type agents; avoid in explore context.
Claude Code plugins
See references/claude-plugins.md for detailed reference.
Structure:
Key concepts:
- Agents and skills are markdown files with YAML frontmatter.
- Hooks enforce quality gates (e.g., run validation before completion).
claude plugin validatevalidates structure.- Marketplace integration via marketplace.json.
Plugin development workflow
Step 1: Define scope
Answer:
- What agents does this plugin provide?
- What hooks are needed (quality gates, workflow enforcement)?
- What custom tools are required?
- What permissions does the plugin need?
Step 2: Create structure
Create the directory layout for the target platform. Include all required configuration files.
Step 3: Implement agents
For each agent:
- Define its mode (primary/subagent).
- Write its prompt (use
prompt-engineerskill). - Configure model, thinking, and tool permissions.
- Set permissions and constraints.
Step 4: Implement hooks (if needed)
For workflow enforcement:
- Identify trigger points (before/after tool execution, on message, etc.).
- Write hook logic (validation, gating, transformation).
- Define failure behavior (block, warn, log).
Step 5: Implement custom tools (if needed)
For each tool:
- Define the Zod schema for inputs.
- Implement the tool function.
- Write a clear description for the agent to understand when to use it.
Step 6: Validate
- OpenCode: Build and test the plugin locally.
- Claude Code: Run
claude plugin validate . - Both: Test all agents, hooks, and tools end-to-end.
Step 7: Document
Write a README.md covering:
- What the plugin does.
- How to install it.
- How to use each agent/hook/tool.
- Configuration options.
Output
Deliver the complete plugin directory ready for installation or publishing. Include all source files, configuration, and documentation.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprivate_dot_config/opencode/skills/plugin-developer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/balaji-dutt/dotfiles/plugin-developer)