Skip to content

Instantly share code, notes, and snippets.

@oyilmaztekin
oyilmaztekin / CLAUDE.md
Last active May 25, 2026 15:51
A CLAUDE.md snippet that makes Claude Code mandatory-use graphify (query/path/explain/wiki) for all cross-module exploration before falling back to grep, find, or ripgrep. Includes the "Before Every Task" orientation checklist and the "graphify-first, grep-last" enforcement block with explicit fallback rules and subagent delegation guidance.

Before Every Task

  1. Orient with graphify (graphify-out/GRAPH_REPORT.md, then graphify query / graphify path / graphify explain). For browsing by topic, start at graphify-out/wiki/index.md — each community has its own article linking related nodes.
  2. ....

Exploration: graphify-first, grep-last (MANDATORY)

For any "where is X / what uses Y / how does Z connect" question, you must use graphify before any grep, find, ripgrep, or Glob/Grep tool call. Graphify is ~71x cheaper in tokens and surfaces relationships (node → prompt → output model → state field) that grep cannot.