graphify : Navigation de code

VérifiéPrudence

Utiliser pour explorer des codebases inconnues, avant de chercher du code, ou après des modifications. Construit un index structurel AST de 12 langages via tree-sitter. Déclencheur : /graphify

Spar Skills Guide Bot
DeveloppementIntermédiaire
2024/07/2026
Claude Code
#code-navigation#ast-index#symbol-query#call-graph#graphify

Recommandé pour

Notre avis

Construit un index structurel AST du code (classes, fonctions, imports, graphe d'appels) pour 12 langages via tree-sitter et permet des requêtes de symboles.

Points forts

  • Indexe la structure du code plutôt que le texte brut
  • Met à jour automatiquement via un hook d'arrêt Claude Code
  • Prend en charge 12 langages de programmation courants

Limites

  • Nécessite l'installation d'un CLI global
  • Ne fonctionne qu'avec les langages supportés par tree-sitter
  • Peut être excessif pour des projets très petits
Quand l'utiliser

Utilisez-le pour explorer une base de code inconnue ou pour localiser rapidement des symboles avant d'utiliser grep.

Quand l'éviter

Évitez-le lorsque vous avez besoin d'une recherche textuelle simple ou si vous ne souhaitez pas installer d'outil supplémentaire.

Analyse de sécurité

Prudence
Score qualité88/100

The skill uses Bash to install an external CLI tool globally and modifies Claude Code configuration. While the commands themselves are not overtly destructive, they rely on an unvetted npm package that could be compromised, and the hook installation alters the user's environment in a way that could be abused. No direct exfiltration or destruction is instructed.

Points d'attention
  • Instructs global npm install of third-party package graphify-ts, introducing supply-chain risk
  • Writes to ~/.claude/settings.json to install a Stop hook, which could modify Claude Code behavior

Exemples

Build index
/graphify build .
Query symbol
/graphify query graph.json MyFunction

name: graphify description: "Use when exploring unfamiliar codebases, before searching for code, or after editing files. Builds a structural AST index (classes, functions, imports, call graph) from 12 languages via tree-sitter. Trigger: /graphify" allowed-tools: Bash(graphify:*)

Note: This is a reference copy. The production skill is at Howell5/willhong-skills.

graphify — Code Navigation Layer

Structural index of the codebase. Know what exists, where, and how it connects — before you grep.

Requires CLI: npm i -g graphify-ts

Auto-update recommended: Run graphify hook install once. After that, the graph updates automatically at the end of every Claude Code session via a Stop hook.

First-time setup

npm i -g graphify-ts    # install CLI
graphify hook install   # install Stop hook for auto-update

Then per project:

graphify build .

Commands

/graphify build — Build index (first time only)

graphify build .

/graphify query <name> — Search for symbols

graphify query graphify-out/graph.json <name>

/graphify update <files...> — Manual incremental update

Usually not needed — the Stop hook handles updates automatically.

/graphify hook install | uninstall | status

Manage the Claude Code Stop hook. Writes to ~/.claude/settings.json.

When to Use

Before searching code: Query the graph before Glob or Grep.

You do NOT need to manually update after editing. The Stop hook handles it.

Supported Languages

Python, JavaScript, TypeScript (JSX/TSX), Go, Rust, Java, C, C++, Ruby, C#, Kotlin, Scala, PHP

Skills similaires