Add graphify references for various export and processing steps
- Create exports.md for additional export options and benchmarks in graphify. - Add extraction-spec.md detailing the extraction subagent prompt and rules. - Introduce github-and-merge.md for instructions on cloning GitHub repositories and merging graphs. - Implement hooks.md for setting up commit hooks and CLAUDE.md integration. - Develop query.md for querying the graph, including pathfinding and explanation features. - Add transcribe.md for transcribing video and audio files into text. - Create update.md for incremental updates and handling cluster-only operations. - Add resolve-comments.md snippet for resolving comments in code changes.
This commit is contained in:
33
opencode-config/skill/graphify/references/hooks.md
Normal file
33
opencode-config/skill/graphify/references/hooks.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# graphify reference: commit hook and native CLAUDE.md integration
|
||||
|
||||
Load this when the user asked to install the post-commit hook or wire graphify into a project's CLAUDE.md.
|
||||
|
||||
## For git commit hook
|
||||
|
||||
Install a post-commit hook that auto-rebuilds the graph after every commit. No background process needed - triggers once per commit, works with any editor.
|
||||
|
||||
```bash
|
||||
graphify hook install # install
|
||||
graphify hook uninstall # remove
|
||||
graphify hook status # check
|
||||
```
|
||||
|
||||
After every `git commit`, the hook detects which code files changed (via `git diff HEAD~1`), re-runs AST extraction on those files, and rebuilds `graph.json` and `GRAPH_REPORT.md`. Doc/image changes are ignored by the hook - run `/graphify --update` manually for those.
|
||||
|
||||
If a post-commit hook already exists, graphify appends to it rather than replacing it.
|
||||
|
||||
---
|
||||
|
||||
## For native CLAUDE.md integration
|
||||
|
||||
Run once per project to make graphify always-on in Claude Code sessions:
|
||||
|
||||
```bash
|
||||
graphify claude install
|
||||
```
|
||||
|
||||
This writes a `## graphify` section to the local `CLAUDE.md` that instructs Claude to check the graph before answering codebase questions and rebuild it after code changes. No manual `/graphify` needed in future sessions.
|
||||
|
||||
```bash
|
||||
graphify claude uninstall # remove the section
|
||||
```
|
||||
Reference in New Issue
Block a user