feat: add /k9-audit skill for causal audit after ship/review#97
Open
liuhaotian2024-prog wants to merge 1 commit intogarrytan:mainfrom
Open
feat: add /k9-audit skill for causal audit after ship/review#97liuhaotian2024-prog wants to merge 1 commit intogarrytan:mainfrom
liuhaotian2024-prog wants to merge 1 commit intogarrytan:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gstack specializes Claude Code into cognitive modes — founder, eng manager, paranoid reviewer, release machine. This PR adds /k9-audit, a complementary audit mode that closes a gap none of the existing skills address: silent deviations that exit 0.
When /ship pushes a branch, CI passes and tests are green — but a staging URL silently in a production config, a missing import that will fail at runtime, or a file written outside declared scope won't be caught. /k9-audit runs K9 Audit's deterministic static analysis on the codebase and surfaces these before they reach production.
What it does:
Detects staging/internal URLs in production configs
Finds hardcoded secrets and API keys
Identifies missing imports that pass CI but raise NameError at runtime
Flags files written outside declared scope
Checks CONSTRAINTS.md intent contract violations
What it doesn't do: It does not use LLM-as-judge. Assessment is deterministic — mathematical fact, not a probability score. Zero tokens consumed.
Install: pip install k9audit-hook — drops into .claude/settings.json, zero code changes.
Related: #38