quality-gate
Run the ECC formatter quality gate for a single file and report remediation steps.
от jaswanthsanjay88★ 24 звезды на GitHub
Установить quality-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Quality Gate Command
Operator entry point for the formatter quality gate that normally runs as the
post:quality-gate PostToolUse hook (scripts/hooks/quality-gate.js).
How it actually works
The gate is a single-file formatter check driven by hook input, not CLI flags:
- The script reads the target from the hook's stdin JSON
(
tool_input.file_path); it does not take a path argument. - Behavior toggles are environment variables:
ECC_QUALITY_GATE_FIX=true- apply formatting fixes instead of check-onlyECC_QUALITY_GATE_STRICT=true- log formatter failures as gate failures
- Coverage by file type:
.ts/.tsx/.js/.jsx/.json/.md- Biomecheckor Prettier--check, whichever the project ships (JS/TS under Biome is skipped here becausepost-edit-formatalready runsbiome check --write).go-gofmt.py-ruff format
- Lint and type checks are not part of this gate. Use the
verification-loopskill or the language verification skills for lint/type/test pipelines.
Usage
To run the gate manually against one file, pipe hook-style JSON into the script (set the env toggles first if you want fix or strict behavior):
echo '{"tool_input":{"file_path":"src/example.ts"}}' \
| ECC_QUALITY_GATE_FIX=true node scripts/hooks/quality-gate.js
Then report formatter findings and concrete remediation steps.
Notes
Hook wiring enters through the async PostToolUse dispatcher in
hooks/hooks.json. Its internal registry preserves the post:quality-gate
ID and the standard/strict profiles.
Arguments
$ARGUMENTS:
[path]optional file to check. The script itself takes no CLI arguments - when a path is given, substitute it astool_input.file_pathin the stdin JSON shown above before running the command
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл quality-gate?
Run the ECC formatter quality gate for a single file and report remediation steps.
Как установить скилл quality-gate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл quality-gate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…