pre-commit-manager
БесплатноЗапускает вложенные скриптыНе проверенManage pre-commit hooks with preference memory and template-based configuration. Use when installing, configuring, enabling/disabling, or checking status of…
от rysweet★ 77 звёзд на GitHubОб этом скилле
Pre-Commit Manager Skill
Manage pre-commit hooks with preference memory and template-based configuration.
Operations
1. Install
Install pre-commit hooks in current repository.
Usage:
Install pre-commit hooks now
What it does:
- Checks if
.pre-commit-config.yamlexists - Verifies pre-commit binary is available
- Runs
pre-commit install - Reports success/failure
2. Configure
Generate .pre-commit-config.yaml from templates.
Usage:
Configure pre-commit with python template
Configure pre-commit with javascript template
Configure pre-commit with generic template
Templates:
python- Python projects (black, ruff, mypy)javascript- JS/TS projects (prettier, eslint)typescript- TypeScript projectsgeneric- Language-agnostic (trailing whitespace, file size, detect-secrets)
3. Enable
Set preference to "always" auto-install.
Usage:
Enable pre-commit auto-install
4. Disable
Set preference to "never" auto-install.
Usage:
Disable pre-commit auto-install
5. Status
Show current pre-commit status.
Usage:
Show pre-commit status
Check pre-commit status
Shows:
- Git repository status
- Config file existence
- Hooks installation status
- Current preference setting
- Pre-commit binary availability
6. Baseline
Generate .secrets.baseline for detect-secrets.
Usage:
Generate secrets baseline
Create detect-secrets baseline
Implementation
This skill interfaces with:
.claude/tools/amplihack/hooks/precommit_prefs.py- Preference management.claude/tools/amplihack/hooks/precommit_installer.py- Hook installation- Templates in
templates/directory
Security
- Path traversal prevention
- Template whitelist validation
- No
shell=Truein subprocess calls - Subprocess timeouts enforced
Reference
Установить pre-commit-manager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pre-commit-manager?
Manage pre-commit hooks with preference memory and template-based configuration. Use when installing, configuring, enabling/disabling, or checking status of pre-commit hooks. Supports templates for python, javascript, typescript, go, rust, and generic projects.
Как установить скилл pre-commit-manager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pre-commit-manager запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic