One-click install
npx skills add https://github.com/redpanda-data/ui-harness --skill setup-toolchain-redpanda-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-toolchain
Source: https://github.com/redpanda-data/ui-harness/tree/main/setup-toolchain
Command: npx skills add https://github.com/redpanda-data/ui-harness --skill setup-toolchain-redpanda-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enforces the use of bun + tsgo as the toolchain, blocking incompatible commands like npm and npx, ensuring seamless integration and productivity in development workflows.

Core Features & Use Cases

  • PreToolUse Hooks: Blocks banned CLI commands and suggests alternatives.
  • Destructive Command Guards: Prevents destructive operations like rm -rf (except safe targets).
  • SessionStart Hook: Sets environment variables for LLM-friendly defaults.
  • Project-Level Configuration: Customizes hooks in .claude/settings.json.

Quick Start

To set up toolchain enforcement, copy scripts/enforce-toolchain.sh and scripts/session-env.sh to .claude/hooks/, make them executable, and add them to .claude/settings.json.

Frequently Asked Questions about setup-toolchain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block npm and npx commands in my development environment?

To block npm and npx commands in your development environment, use PreToolUse hooks to intercept banned CLI commands and suggest alternatives, ensuring seamless integration with the bun toolchain.

What is the best way to enforce bun and tsgo toolchain usage across a project?

The best way to enforce bun and tsgo toolchain usage is configuring project-level settings in `.claude/settings.json` to block incompatible commands and set LLM-friendly environment defaults on session start.

Can I prevent destructive commands like rm -rf from running during development?

Yes, you can prevent destructive commands like `rm -rf` from running by applying destructive command guards, which block unsafe operations while allowing safe targets to execute normally.

How do I set environment variables for LLM-friendly defaults when a session starts?

You set environment variables for LLM-friendly defaults using a SessionStart hook, which automatically configures the environment when a development session begins to improve efficiency and reduce manual errors.

Does toolchain enforcement work with both frontend and backend projects?

Yes, toolchain enforcement works with both frontend and backend projects, applying consistent tooling rules to any development environment where compatibility with bun and tsgo is critical.