Quality check
quality_check
Quality-check hook for protocol pre-hook injection.
Injects a ready-to-read markdown summary of failed audit checks so the
dev-ticket verify phase can act without re-running audit. The hook
reuses the text field each rule already populates (one formatted
line per violation with file:line and code), grouped by rule.
QualityCheckHook
Run audit categories and emit a text-only summary of failures.
Source code in packages/axm-audit/src/axm_audit/hooks/quality_check.py
execute(context, **params)
Run audit on a project directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
dict[str, object]
|
Hook context with |
required |
**params
|
object
|
Optional |
{}
|
Returns:
| Type | Description |
|---|---|
HookResult
|
HookResult with |
HookResult
|
plus a markdown |
HookResult
|
with its pre-formatted per-violation lines (file:line, code, |
HookResult
|
message) ready for direct LLM consumption. |