From d01eef586166cc175ca44096b94cf079369d20dd Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sun, 4 Oct 2026 13:30:01 -0500 Subject: [PATCH] feat(agent): configure graphify rule and workflow for Antigravity - Add graphify always-on agent rule for query-first codebase inspection. - Add graphify workflow definition for navigable knowledge graph generation. --- .agents/rules/graphify.md | 14 ++++++++++++++ .agents/workflows/graphify.md | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .agents/rules/graphify.md create mode 100644 .agents/workflows/graphify.md diff --git a/.agents/rules/graphify.md b/.agents/rules/graphify.md new file mode 100644 index 0000000..0fc7864 --- /dev/null +++ b/.agents/rules/graphify.md @@ -0,0 +1,14 @@ +--- +trigger: always_on +description: Consult the graphify knowledge graph at graphify-out/ for codebase and architecture questions. +--- + +## graphify + +This project has a graphify knowledge graph at graphify-out/. + +Rules: +- For codebase or architecture questions, when `graphify-out/graph.json` exists, first run `graphify query ""` (CLI) or `query_graph` (MCP). Use `graphify path "" ""` / `shortest_path` for relationships and `graphify explain ""` / `get_node` for focused concepts. These return a scoped subgraph, usually much smaller than `GRAPH_REPORT.md` or raw grep output. +- If graphify-out/wiki/index.md exists, navigate it instead of reading raw files +- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context +- After modifying code files in this session, run `graphify update .` to keep the graph current (AST-only, no API cost) diff --git a/.agents/workflows/graphify.md b/.agents/workflows/graphify.md new file mode 100644 index 0000000..6befaed --- /dev/null +++ b/.agents/workflows/graphify.md @@ -0,0 +1,10 @@ +--- +name: graphify +description: Turn any folder of files into a navigable knowledge graph +--- + +# Workflow: graphify + +Follow the graphify skill to run the full pipeline. + +If no path argument is given, use `.` (current directory).