redpanda-data/ui-harness/extend-harness

Claude Code and agent skill by redpanda-data/ui-harness

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Extend frontend-skills hook harness. Add new rules via skill-manifest.json, pick severity tier (block/warn/nudge/info/block-strict/diagnostic), view analytics via /frontend-skills-stats. Use when adding enforcement, tuning rule severity, or debugging hook that isn't firing.

Install

npx vskill@latest install redpanda-data/ui-harness/extend-harness

SKILL.md

The same SKILL.md was published earlier as redpanda-data/ui-harness/extend-harness.

Extend the Harness

1. Never hand-edit generated configs

.claude/settings.json and hooks/hooks.json generated. Edit skill-manifest.json, regenerate:

bash
bash scripts/generate-hook-configs.sh --apply
bash scripts/generate-hook-configs.sh --check # drift check (lefthook runs this pre-push)

2. Add a new rule (grep-expressible)

  1. Write my-check.sh in .claude/hooks/ -- start from any existing *-check.sh as template.
  2. Add filename to matcher block in skill-manifest.json (usually PostToolUse.Edit|Write).
  3. Regenerate: bash scripts/generate-hook-configs.sh --apply.
  4. Test: feed synthetic edit event on stdin:
bash
echo '{"hook_event_name":"PostToolUse","tool_name":"Edit","tool_input":{"file_path":"/tmp/x.ts"}}' | bash .claude/hooks/my-check.sh

3. Pick the right severity tier

FunctionExitClaude seesLoggedUse when
hook_block2systemMessageJSONLMust fix before continuing
hook_block_strict2[STRICT] prefixJSONLSecurity-critical, no escape hatch
hook_warn0systemMessageJSONLShould fix, but proceed
hook_nudge0[nudge] prefixJSONLPattern suboptimal most cases
hook_info0--JSONLTelemetry only, no UI
hook_emit_diagnostic0 or 2LSP JSON with range + fixJSONLMachine-parseable with auto-fix

Default hook_warn for style, hook_block for correctness, hook_info for observation.

4. When grep isn't enough

Grep can't express nested interactives, exhaustive switches, or useState-object-ref leaks reliably. AST-level patterns: handle in code review for now, or file issue for future Biome custom-rule integration. Don't fake with fragile multi-line regex -- too many false positives.

5. View analytics

/frontend-skills-stats

Reports per-hook P50/P95 latency, blocks/warns/nudges/infos per rule, zero-fire candidates (prune), over-aggressive hooks (soften). Needs >=5 session summaries in ~/.claude/hook-metrics/.

6. Debug a hook that isn't firing

bash
HOOK_DEBUG=1 HOOKS_FAIL_CLOSED=1 claude

Then: tail -f /tmp/hook-session-*/debug.log. Fail-closed turns crash-into-silent-exit into crash-into-visible-block.

7. Verification checklist

  • [ ] skill-manifest.json lists script under correct event+matcher
  • [ ] bash scripts/generate-hook-configs.sh --check exits 0
  • [ ] Script executable (chmod +x)
  • [ ] Sources _hook-lib.sh, parses input, filters extension, handles escape hatch
  • [ ] Test fixture added to evals/ if non-trivial
  • [ ] bash evals/run.sh passes

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
32
Repository forks
2
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/redpanda-data/ui-harness/extend-harness/badge)](https://verified-skill.com/skills/redpanda-data/ui-harness/extend-harness)

Something wrong with this skill or its page? Tell us.