pre-audit-setup
Installation
SKILL.md
/pre-audit-setup
Idempotent preparation that every audit in the architect-playbook expects to have been run at least once in the target project. Run this immediately after installing the skills.
Usage
/pre-audit-setup # do everything that has not been done yet
/pre-audit-setup --force # rebuild the knowledge graph and rewrite the hook even if both already exist
/pre-audit-setup --dry-run # describe what would change without modifying anything
What this skill does
- Verifies graphify is installed at
~/.claude/skills/graphify. This skill does not install graphify. If it is missing, stop and tell the user where to install it (see https://graphify.net/graphify-claude-code-integration.html). Do not invent a clone URL. - Builds the project knowledge graph by invoking
/graphify .from the current working directory. Subsequent audits readgraphify-out/graph.jsonandgraphify-out/GRAPH_REPORT.mdas their map of the codebase. - Merges the graphify-aware PreToolUse hook into the project-local
.claude/settings.json(creating the file if needed). The hook attaches a hint to every Glob and Grep call: when the knowledge graph exists, Claude is reminded to read the report before searching raw files. - Creates the
.architect-audits/directory that downstream audits will write findings into. Adds a single.gitkeepso it survivesgit clean. - Prints a checklist describing what was done, what was already in place, and what the user should verify before launching audits.