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.
от redpanda-data★ 34 звезды на GitHubОб этом скилле
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 and 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.shexists, executable -
.claude/hooks/session-env.shexists, executable -
.claude/settings.jsonhas both hook entries - Test: run
npm installin Claude -- should block - Test: run
bun add lodashin Claude -- should block (missing --yarn)
4. Commit
Stage .claude/hooks/ and .claude/settings.json. Commit: Add toolchain enforcement hooks (bun + tsgo)
Установить setup-toolchain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл setup-toolchain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup-toolchain запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic