Conventions for humans and loops maintaining this repository.
# Loop readiness audit CLI
cd tools/loop-audit && npm ci && npm run build
node dist/cli.js ../.. # audit repo root
node dist/cli.js ../.. --suggest # show copy commands for gaps
# Before/after demo (scores an empty dir → starter → L2)
bash scripts/before-after-demo.shCI runs validate-patterns and audit on every push/PR (see .github/workflows/).
- Patterns and starters must stay tool-agnostic in intent; tool-specific paths live under
examples/and per-tool starters. - Never auto-merge changes to
docs/primitives*.md,tools/loop-audit/src/, or showcase assets without human review. - Failure stories in
stories/should include token cost, root cause, and remediation — not just wins. - New patterns require an entry in
patterns/registry.yaml.
- Daily triage:
loop-triageskill →STATE.md(report-only, L1). - Fixes: only via PR with human review;
minimal-fix+loop-verifierfor assisted changes (L2). - Isolation: use git worktrees for any unattended code-change experiments (see
LOOP.md).
This repo has no application test suite. Quality gates:
cd tools/loop-audit && npm run build && node dist/cli.js ../../
bash scripts/before-after-demo.sh