/quality-gate
Run the ECC formatter quality gate for a single file and report remediation steps.
> /plugin marketplace add affaan-m/ECC > /plugin install ecc@ecc
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/quality-gate
Context preview
What this command does when you run it.
Run the ECC formatter quality gate for a single file and report remediation steps.
Command definition
quality-gate.mddescription: Run the ECC formatter quality gate for a single file and report remediation steps.
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-only
- `ECC_QUALITY_GATE_STRICT=true` - log formatter failures as gate failures
- Coverage by file type:
- `.ts/.tsx/.js/.jsx/.json/.md` - Biome `check` or Prettier `--check`,
whichever the project ships (JS/TS under Biome is skipped here because `post-edit-format` already runs `biome check --write`)
- `.go` - `gofmt`
- `.py` - `ruff format`
- Lint and type checks are not part of this gate. Use the `verification-loop`
skill 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.jsThen 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 as `tool_input.file_path` in the stdin JSON shown above before running the command
Read more
description: Run the ECC formatter quality gate for a single file and report remediation steps.
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-only
- `ECC_QUALITY_GATE_STRICT=true` - log formatter failures as gate failures
- Coverage by file type:
- `.ts/.tsx/.js/.jsx/.json/.md` - Biome `check` or Prettier `--check`,
whichever the project ships (JS/TS under Biome is skipped here because `post-edit-format` already runs `biome check --write`)
- `.go` - `gofmt`
- `.py` - `ruff format`
- Lint and type checks are not part of this gate. Use the `verification-loop`
skill 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.jsThen 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 as `tool_input.file_path` in the stdin JSON shown above before running the command
Your agent can write code, but ECC gives it a coordinated engineering system and toolbox: it plans before it builds, verifies changes with tests, reviews its own work from a fresh context, remembers what matters, and turns repeated wins into reusable skills
Repo: affaan-m/ECC
Other commands on ecc.
- /add-language-rules
Workflow command scaffold for add-language-rules in everything-claude-code.
Open command - /database-migration
Workflow command scaffold for database-migration in everything-claude-code.
Open command - /feature-development
Workflow command scaffold for feature-development in everything-claude-code.
Open command - /aside
Answer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.
Open command - /auto-update
Pull the latest ECC repo changes and reinstall the current managed targets.
Open command - /build-fix
Detect the project build system and incrementally fix build/type errors with minimal safe changes.
Open command

