Opencode Claude Hooks — Development skill for Claude Code
Run Claude Code hooks natively in OpenCode V1 and V2.
How to install Opencode Claude Hooks
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Hamza-Abili/opencode-claude-hooks and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Opencode Claude Hooks does
Run Claude Code hooks natively in OpenCode V1 and V2.
Alternatives in Development
- Ecc Guide — Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su 243.5k ★
- Mempalace Help — Show comprehensive MemPalace help — available skills, MCP tools, CLI commands, hooks, and architecture 58.6k ★
- Claude Code Hooks Mastery — A resource for mastering Claude Code hooks 3.4k ★
README
opencode-claude-hooks
[](https://github.com/Hamza-Abili/opencode-claude-hooks/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@hamzaabili/opencode-claude-hooks) [](https://www.npmjs.com/package/@hamzaabili/opencode-claude-hooks) [](https://github.com/Hamza-Abili/opencode-claude-hooks/stargazers) [](LICENSE)
**Run your Claude Code hooks natively in OpenCode V1 and V2.**
`opencode-claude-hooks` reads the Claude Code configuration you already have (`.claude/settings.json`, `settings.local.json`, `~/.claude/settings.json`, enabled plugin hooks, skill and subagent frontmatter) and executes it at the matching OpenCode lifecycle point. No wrapper binary, no generated files, no daemon, zero runtime dependencies.
Claude Code settings ─┐
Claude plugin hooks ─┼─▶ discovery ─▶ trust ─▶ execute ─▶ decision
Skill/agent frontmatter┘ │
OpenCode hooks
Why
Claude Code hooks are small, useful, and already written: block `rm -rf`, run a formatter after edits, inject project context at session start, validate a prompt, stop a turn until tests pass. Moving to OpenCode should not mean rewriting them.
The existing bridge ecosystem covers commands, agents and skills, or provider auth, but not the hook runtime. This plugin is the missing layer, with the safety rails a hook runner needs: explicit trust, timeouts, output limits, environment minimisation, and an honest compatibility report.
Install
OpenCode V2
{
"$schema": "https://opencode.ai/config
Related Skills
Opencode Hooks
OpenCode plugin (V1+V2) that runs your existing Claude Code hooks natively: settings, plugin, skill and subage
All Agent Shared Memory
Zero-dependency cross-agent memory + session bridge for Claude Code, Codex, opencode and ZCode: one auditable
Dsh Movein
Migrate Claude Code setup into DeepSeek Harness. Import skills, commands, agents, hooks, permission rules, and
Opencode Hooks Plugin
Use claude code hooks definition in opencode.
Megapowers
Skills, plugins, and hooks that change how coding agents work — Claude Code, Codex, OpenCode, Antigravity. Mea
Agenthooks
Author coding-agent hooks once in Go — Claude Code, Cursor, Codex, Gemini CLI, OpenCode, Kimi Code
Related Agents
Backlog MCP Validator
Validate the backlog FastMCP server against the CLI. Calls MCP tools natively via the agent-scoped backlog ser
Design Mastery
Lead design intelligence. Coordinates ui-ux-architect (audit) and super-designer (build) as sub-agents, owns t
Fusion Motion Builder
Premium DaVinci Resolve Fusion motion-design builder. Designs and builds client-grade motion graphics (SaaS/ap