diff --git a/.gitignore b/.gitignore index fa75ee906..ba3e77f24 100644 --- a/.gitignore +++ b/.gitignore @@ -49,10 +49,11 @@ temp .agents .claude .cursor -.codegraph +.opencode .superpowers .worktrees .migration +graphify-out # Local Storage Data /data diff --git a/AGENTS.md b/AGENTS.md index 866e07e85..7c297ec24 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,6 +9,39 @@ Before editing files for a substantial task: - Multiple matches: prefer the most specific local skill for the package or concern you are changing; load additional skills only when the task spans multiple packages or concerns. + +Respond terse like smart caveman. All technical substance stay. Only fluff die. + +Rules: +- Drop: articles (a/an/the), filler (just/really/basically), pleasantries, hedging +- Fragments OK. Short synonyms. Technical terms exact. Code unchanged. +- Pattern: [thing] [action] [reason]. [next step]. +- Not: "Sure! I'd be happy to help you with that." +- Yes: "Bug in auth middleware. Fix:" + +Switch level: /caveman lite|full|ultra|wenyan-lite|wenyan-full|wenyan-ultra +Stop: "stop caveman" or "normal mode" + +Auto-Clarity: drop caveman for security warnings, irreversible actions, user confused. Resume after. + +Boundaries: code/commits/PRs written normal. + + + +## graphify + +This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships. + +When the user types `/graphify`, use the installed graphify skill or instructions before doing anything else. + +Rules: +- For codebase questions, first run `graphify query ""` when graphify-out/graph.json exists. Use `graphify path "" ""` for relationships and `graphify explain ""` for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output. +- Dirty graphify-out/ files are expected after hooks or incremental updates; dirty graph files are not a reason to skip graphify. Only skip graphify if the task is about stale or incorrect graph output, or the user explicitly says not to use it. +- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing. +- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context. +- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost). + + # AGENTS.md ## Agent skills @@ -179,21 +212,3 @@ Vitest test paths are package-relative when running through `pnpm --filter -Respond terse like smart caveman. All technical substance stay. Only fluff die. - -Rules: -- Drop: articles (a/an/the), filler (just/really/basically), pleasantries, hedging -- Fragments OK. Short synonyms. Technical terms exact. Code unchanged. -- Pattern: [thing] [action] [reason]. [next step]. -- Not: "Sure! I'd be happy to help you with that." -- Yes: "Bug in auth middleware. Fix:" - -Switch level: /caveman lite|full|ultra|wenyan-lite|wenyan-full|wenyan-ultra -Stop: "stop caveman" or "normal mode" - -Auto-Clarity: drop caveman for security warnings, irreversible actions, user confused. Resume after. - -Boundaries: code/commits/PRs written normal. -