setup-toolchain

Installation
SKILL.md

Setup Toolchain Enforcement

Repo/code changes: run /deslop before commit, push, PR, or merge.

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 and scripts/session-env.sh to .claude/hooks/. Make executable: chmod +x .claude/hooks/*.sh

2. Configure hooks in .claude/settings.json

Installs
10
GitHub Stars
3
First Seen
Mar 25, 2026
setup-toolchain — malinskibeniamin/skills