Graphify Knowledge Graph Harness
Use this skill when you need to index, traverse, or query structural relationships in an academic book project (e.g. Obsidian Vaults, CPMK prerequisite networks, literature sets, or codebase ASTs) without wasting model context tokens.
Agent Contract
Input:
project_dir: Absolute path to the current book project directory (defaults to cwd).action:index,query, orclean.query_type:summary,search,neighbors, orshortest_path.target: Keyword or node ID for targeted queries.
Output:
status:successorerror.isolation_status:100% project-bound(stored under.graphify/).graph_artifacts:graph.json,graph.html, andGRAPH_REPORT.md.query_results: Matching nodes, neighbors, or shortest paths.
Multi-Project Data Isolation Rules
- Project-Bound Storage: Graphify outputs MUST be created inside
<project_dir>/.graphify/. Never mix graphs from different book projects into a shared global folder. - Auto .gitignore Injection: Ensure
.graphify/is added to the project's.gitignorefile automatically. - Local AST Parsing: Indexing runs 100% locally via deterministic AST parsing. No credentials, private text, or API keys are ever sent to external cloud servers.
Helper Script Invocation
Execute the standalone Python harness script via CLI:
# Index current project
python .codex/skills/scripts/graphify_harness.py index --project-dir "/path/to/project"
# Query central concepts or keywords
python .codex/skills/scripts/graphify_harness.py query --project-dir "/path/to/project" --query-type search --target "CPMK-1"
# Query node neighbors for cross-referencing
python .codex/skills/scripts/graphify_harness.py query --project-dir "/path/to/project" --query-type neighbors --target "section:bab1.md#Pendahuluan"
# Clean project graph cache
python .codex/skills/scripts/graphify_harness.py clean --project-dir "/path/to/project"
Collaborating Specialist Agents
book-author-orchestrator: Runs preflight graph indexing on new book projects.academic-source-analyzer&research-synthesis-to-reference-book: Queries graph clusters to group papers/notes into thematic chapters.rps-to-buku-ajar: Traverses CPMK prerequisite chains viashortest_path.academic-chapter-writer: Queriesneighborsfor automated cross-referencing between chapters.citation-integrity-reviewer: Verifies claim provenance from draft text back to evidence snippet nodes.