---
name: docxology/template-audit
source: https://app.decimal.ai/s/docxology-template-audit@1/SKILL.md
source_sha256: f259e09705aa
---

# template-audit

Audit and quality-gate scripts in `scripts/audit/`.

## When to use

Load this skill when you need to:
- Run documentation or filepath audits
- Check for template drift in exemplar projects
- Enforce confidentiality (no private project commits)
- Verify prohibited mock-framework syntax is absent and inventory semantic stand-ins

## Key scripts

| Script | Exit 0 means |
|--------|-------------|
| `lint_docs.py` | All doc lints pass |
| `check_tracked_projects.py` | No private projects staged/committed |
| `check_template_drift.py` | Exemplars are up-to-date |
| `verify_no_mocks.py` | No prohibited mock-framework imports/calls detected |

## Bootstrap note

All scripts use `parents[2]` from `scripts/audit/` — three levels to repo root.

## Pitfalls

- `check_tracked_all.py` runs in pre-push and composes every resource-pool guard;
  keep each constituent check fast.
- `audit_documentation.py` is advisory; non-zero exit is a warning, not a gate.
- `copy_exemplar.py` modifies tracked files — review diff before committing.
- `verify_no_mocks.py --inventory --max-dependency-replacements 0` is blocking
  in CI. The default lexical pass and the semantic zero-debt gate are distinct
  contracts; environment isolation remains separately classified.