← 返回
未分类 中文

CodeGraph

Build and query AST summaries + call graphs for codebases. Use when exploring a project's structure, finding function definitions, tracing call chains, under...
构建并查询代码库的 AST 摘要和调用图。适用于探索项目结构、查找函数定义、追踪调用链等场景。
sg345662365-oss sg345662365-oss 来源
未分类 clawhub v1.0.0 1 版本 99137.9 Key: 无需
★ 0
Stars
📥 115
下载
💾 2
安装
1
版本
#latest

概述

Code Graph

Analyze project structure via AST parsing instead of reading every file.

Quick Start

Build cache (first time or after changes)

python3 skills/code-graph/scripts/analyze.py <project_dir>

Creates .code-graph.json in the project root. Takes seconds for most projects.

Query the cache

python3 skills/code-graph/scripts/analyze.py <project_dir> --query <command> [args]

Available Queries

QueryDescription
------
statsProject overview: file counts, lines, functions, classes
functionsList all functions with file + line number
classesList all classes with bases, methods, file + line
calls What does func call? (outgoing edges)
callers Who calls func? (incoming edges)
file Full summary of one file (functions, classes, imports, calls)
importsImport graph: file → modules imported
search Find functions/classes matching pattern

Workflow

  1. First encounter with a project: run the build to create cache
  2. Before reading files: query stats then search to find what you need
  3. Before modifying code: query callers to check impact
  4. After modifying code: rebuild cache with a fresh run (no --query)

Cache Location

  • Default: /.code-graph.json
  • Override: --output

Rebuild

Re-run without --query to rebuild. The cache includes a fingerprint for staleness detection.

Exclude Directories

python3 skills/code-graph/scripts/analyze.py <project_dir> --exclude vendor --exclude tmp

Default excludes: node_modules, .git, __pycache__, .venv, dist, build, .next, coverage

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-09 19:09

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

Portfolio Health Monitor

sg345662365-oss
全投资组合监控,覆盖加密货币、美国股票和A股,实时损益跟踪、回撤警报、再平衡信号,支持OKX、Yahoo Finance、Sina。
★ 0 📥 104

Publish Skill

sg345662365-oss
实时 BTC/ETH/SOL 信号扫描器(RSI、EMA、MACD + 仓位管理),多周期融合引擎,支持合约交易,适配 OKX 交易所。
★ 0 📥 99

Publish Vetter

sg345662365-oss
交易前安全检查:仓位大小限制、杠杆验证、连续亏损锁定、波动率闸口、交易所余额验证。即插即用风险防护...
★ 0 📥 98