Граф зависимостей PHP-проекта для быстрого анализа архитектуры

★ 6.9 · code-analysis-tools

Knowledge Graph is a Claude Code skill that reads and refreshes a pre-built dependency graph for the wp-rocket codebase stored at `.claude/graph/dependency-graph.json`, answering architecture questions instantly without re-scanning source files. Reach for it when you need to locate a PHP class file without grep, trace a dependency chain before touching a constructor, find which ServiceProvider wires a given service, or enumerate all Subscribers in a module ahead of an architecture review. The graph is a JSON structure keyed by relative file paths: each PHP node carries its namespace, declared symbols (class/interface/trait/enum with extends/implements), and all use-imports; JS/TS nodes record static and dynamic imports plus require() calls. A `symbol_index` maps every fully-qualified PHP class, interface, trait, or enum directly to its file path for zero-grep lookups. The graph is built by the Node.js script `node bin/build-knowledge-graph.js` (incremental by default, `--full` for a complete rebuild) and records the git SHA it was built from; at session start the skill automatically refreshes if `base_commit` differs from HEAD. This skill is a reader and navigator for PHP project architecture — not a code-quality analyser and not a full-text file search (use grep/glob for that).