I want my codebase scanned for convention violations
A full architecture pass that discovers the conventions in your repo and flags where the code breaks them.
A full architecture pass that discovers the conventions already in your repo and flags every place the code breaks them.
The prompt
What the Algorithm does
The Algorithm chains two Sentinel workflows back to back. Scan reads the repo once, infers conventions with a Sonnet pass, and writes them to the MemPalace knowledge graph. Guard then checks the current working tree against the freshly-discovered rules.
What you get back
Two artifacts. First, a convention report: the rules Sentinel inferred from your actual code, grouped by domain. Second, a violation list: specific file:line callouts that break those rules, each with a one-line fix suggestion. The conventions stay in MemPalace so every future DOS session starts already knowing them.
Variations
- Scan the repo but only guard files I'm about to commit
- Review the entire current branch, not just staged changes
- Show me the top 5 conventions and stop there
- Evolve the conventions, I just changed our naming style
Was this page helpful?