oma-frontend — Claude Code hook for frontend design and debugging
oma-frontend — a hook that wires frontend tooling into Claude Code: UI work, design, review and debugging. It fires on agent session events.
MIT ★ 1,472 updated 2026-10-29
/plugin marketplace add first-fluke/oh-my-agent
/plugin install oma-frontend@oh-my-agentWhat oma-frontend does
oma-frontend ships as a set of hooks inside the oh-my-agent plugin for Claude Code. It targets frontend work: markup, interface design, code review and bug hunting.
It fires on four events: PreToolUse, UserPromptSubmit, SessionStart and Stop. The PreToolUse entry has a Bash matcher, so the hook attaches to shell command runs. Session start calls plugin-bootstrap.sh frontend, other events go through plugin-hook.sh. The hook config lands in .claude/settings.json after install.
Under the hood these are shell scripts invoked by Claude Code. Timeouts differ: 15 seconds for PreToolUse and UserPromptSubmit, 40 for Stop, and SessionStart runs async with a 600-second timeout. The hook also works in Codex.
What it helps with
- build a component from a mockup
- trace a bug in JavaScript code
- review frontend code before commit
- suggest a design for a form
- run frontend tools on session start
Example prompts for the agent
- Build a product card for an online store
- Find the bug in this React component
- Review my CSS before release
How to install oma-frontend
1Plugin marketplace
/plugin marketplace add first-fluke/oh-my-agent/plugin install oma-frontend@oh-my-agent2Manually: put the files in place
.claude/settings.jsonThe hooks block: event (PreToolUse, PostToolUse, Stop…) → command. Personal ones go to ~/.claude/settings.json
Step by step, with commands for each platform: Claude Code hooks: what they are, where to configure them, how to block a risky command
Questions about oma-frontend
How do I install oma-frontend in Claude Code?
First add the marketplace: /plugin marketplace add first-fluke/oh-my-agent. Then install the plugin: /plugin install oma-frontend@oh-my-agent. The hook config goes into .claude/settings.json.
What does oma-frontend do?
It connects frontend tooling to Claude Code events: shell command runs, prompt submission, session start and stop. Useful for markup, design, review and debugging.
Which events does the hook listen to?
PreToolUse with a Bash matcher, UserPromptSubmit, SessionStart and Stop. Session start runs plugin-bootstrap.sh frontend, other events run plugin-hook.sh.
Source text
frontend · MIT
Hooks bundle shipped with the oma-frontend plugin for Claude Code.
Frontend implementation, interface design, review, and debugging
Triggers on: PreToolUse, UserPromptSubmit, SessionStart, Stop.
```json
{"Stop":[{"hooks":[{"type":"command","command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-hook.sh\" Stop","timeout":40}]}],"PreToolUse":[{"hooks":[{"type":"command","command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-hook.sh\" PreToolUse Bash","timeout":15}],"matcher":"Bash"}],"SessionStart":[{"hooks":[{"type":"command","async":true,"command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-bootstrap.sh\" frontend","timeout":600}]}],"UserPromptSubmit":[{"hooks":[{"type":"command","command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-hook.sh\" UserPromptSubmit","timeout":15}]}]}
```
© First Fluke · MIT · first-fluke/oh-my-agent