Hamza-Abili

Opencode Claude Hooks — Development skill for Claude Code

Development community

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

[![CI](https://github.com/Hamza-Abili/opencode-claude-hooks/actions/workflows/ci.yml/badge.svg)](https://github.com/Hamza-Abili/opencode-claude-hooks/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/%40hamzaabili%2Fopencode-claude-hooks)](https://www.npmjs.com/package/@hamzaabili/opencode-claude-hooks) [![npm downloads](https://img.shields.io/npm/dt/%40hamzaabili%2Fopencode-claude-hooks)](https://www.npmjs.com/package/@hamzaabili/opencode-claude-hooks) [![GitHub stars](https://img.shields.io/github/stars/Hamza-Abili/opencode-claude-hooks?style=social)](https://github.com/Hamza-Abili/opencode-claude-hooks/stargazers) [![license](https://img.shields.io/badge/license-MIT-blue)](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