redpanda-data/ui-harness · Archived

setup-toolchain

Enforce bun + tsgo as toolchain via PreToolUse hooks. Blocks npm, npx, tsc, global installs. Use when setting up toolchain enforcement or banning npm.

First seen May 20, 2026

Installation

$ npx skills add redpanda-data/ui-harness --skill setup-toolchain

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from redpanda-data/ui-harness · top by installs.

npx skills add redpanda-data/ui-harness

Browse all from redpanda-data/ui-harness

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 34
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,525 B
  • docs SUMMARY.md 173 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Setup Toolchain Enforcement

What This Sets Up

  • PreToolUse hooks block banned CLI commands, give actionable suggestions
  • Destructive command guards prevent rm -rf (except safe targets like node_modules/.next/dist/build), git push --force, git reset --hard, git checkout . / git restore .
  • SessionStart hook set env vars for LLM-friendly defaults
  • Hooks in .claude/settings.json (project-level, committed to git)

Steps

1. Create hook scripts

Copy [scripts/enforce-toolchain.sh](scripts/enforce-toolchain.sh) and [scripts/session-env.sh](scripts/session-env.sh) to .claude/hooks/. Make executable: chmod +x .claude/hooks/*.sh

2. Configure hooks in .claude/settings.json

Add to hooks config (merge existing):

  • PreToolUse (matcher: Bash): .claude/hooks/enforce-toolchain.sh
  • SessionStart: .claude/hooks/session-env.sh

3. Verify

  • .claude/hooks/enforce-toolchain.sh exists, executable
  • .claude/hooks/session-env.sh exists, executable
  • .claude/settings.json has both hook entries
  • Test: run npm install in Claude -- should block
  • Test: run bun add lodash in Claude -- should block (missing --yarn)

4. Commit

Stage .claude/hooks/ and .claude/settings.json. Commit: Add toolchain enforcement hooks (bun + tsgo)