Skip to content

feat(loop-audit): add --auto-fix command to self-heal repository structures#358

Merged
cobusgreyling merged 1 commit into
cobusgreyling:mainfrom
THRISHAL12345:loop-audit-autofix
Jul 23, 2026
Merged

feat(loop-audit): add --auto-fix command to self-heal repository structures#358
cobusgreyling merged 1 commit into
cobusgreyling:mainfrom
THRISHAL12345:loop-audit-autofix

Conversation

@THRISHAL12345

Copy link
Copy Markdown
Contributor

Summary

Adds an --auto-fix flag to loop-audit that automatically self-heals a repository by securely generating missing governance and structure files (like STATE.md, LOOP.md, budgets, and constraints) to boost its Loop Readiness score.

Changes

  • New pattern or starter (followed templates/pattern-template.md + updated registry.yaml)
  • Doc / example improvement
  • Tool change (loop-audit)
  • Story (includes real failure or surprise + lesson)

Checklist (from CONTRIBUTING)

  • All required sections present for patterns
  • Links work from README, patterns/README, starters/README, docs/index
  • No secrets, tokens, internal company URLs
  • STATE.md* examples use .example suffix
  • Safety-related content references docs/safety.md
  • Ran node tools/loop-audit/dist/cli.js . (or on the starter) and addressed findings

Testing / Dogfood

  • loop-audit passes on affected starters or this repo
  • Manual review of generated state / skill output

Screenshots / Examples (if UI or command output)

Before: Running on a blank project returns a score of 10/100 (L0).

Running the auto-fixer:

$ npx @cobusgreyling/loop-audit . --auto-fix

=== Auto-Fixing Repository ===

✅ Generated STATE.md (Base state tracking)
✅ Generated LOOP.md (Loop configuration)
✅ Generated loop-budget.md (Cost caps)
✅ Generated loop-run-log.md (Run history)
✅ Generated loop-constraints.md (Agent rules)
✅ Generated docs/safety.md (Safety policy)
✅ Generated AGENTS.md (Project conventions)

✨ Applied 7 automatic fixes. Run loop-audit again to see your new score!

@cobusgreyling
cobusgreyling merged commit 71de5bc into cobusgreyling:main Jul 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants