Feature: /sync-standards - detect drift between your standards and codebase #329
shah-siddd
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem & Motivation
Standards drift. You document how your API handles errors, how tests are structured, how naming works - and then the codebase evolves. Someone introduces error classes instead of error code strings. Tests move from Jest to Vitest. A pattern gets deprecated quietly.
Today,
/discover-standardscreates standards from scratch and/inject-standardspushes them into context. But nothing checks whether existing standards still reflect reality. You don't find out they're stale until an agent follows an outdated standard and produces wrong code.There's no feedback loop. Discover writes, inject reads, but nothing validates.
Proposed Change & Alternatives
Proposed: a
/sync-standardscommand that reviews existing standards against the actual codebase, surfaces what's drifted, and helps you reconcile.The flow:
index.ymlindex.ymland report a final summarySupports scoping:
/sync-standards(all),/sync-standards api(folder),/sync-standards api/response-format(single file).Alternatives considered:
/inject-standards- Too slow. Injection should be fast; drift detection requires reading many files. Coupling them would make inject unusable for quick context loading.User Experience Impact
/sync-standards- no changes to existing commandsUpdating & Compatibility Considerations
/discover-standards,/inject-standards, and/index-standardscontinue to work exactly as they do todayindex.ymluse the same structure. Updated standards follow the same concise markdown formatproject-install.sh(same mechanism as all other commands, no script changes needed)index.ymland the standards directory, it works immediately with any project that already has standards set upBeta Was this translation helpful? Give feedback.
All reactions