Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

ln-020-codegraphln 020 代码图

Agent Skill

ln-020-codegraph 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,958

周安装

80

GitHub Stars

437

下载量

627
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ln-020-codegraph(ln 020 代码图)
来源仓库:https://github.com/levnikolaevich/claude-code-skills
仓库路径:skills/ln-020-codegraph
安装命令:
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-020-codegraph
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-020-codegraph

简介

ln-020-codegraph 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Paths: File paths are relative to skills repo root.

Code Knowledge Graph

Type: Standalone Utility Category: 0XX Dev Environment

Indexes codebase into a layered graph (tree-sitter AST → SQLite) and provides dependency analysis, path tracing, references, implementations, and architecture overview via MCP tools.

Inputs

InputRequiredSourceDescription
project_pathyesargs or CWDProject root to index
commandnoargsSpecific action: index, search, symbol, paths, refs, arch

When to Use

  • Starting work on an unfamiliar codebaseindex + architecture
  • Before refactoring a function/class → find_symbols + inspect_symbol + trace_paths
  • Understanding call flowtrace_paths
  • Finding a symbol quickly → search

MCP Availability

MANDATORY READ: Load shared/references/mcp_tool_preferences.md and shared/references/mcp_integration_patterns.md

Use hex-graph first when the task depends on symbol identity, references, implementations, architecture, dataflow, or edit impact. Use hex-line first for targeted local code reads when available. If MCP is unavailable, unsupported, or not indexed, continue with built-in Glob/Grep/Read/Bash, answer with manual evidence, and explicitly note the degraded confidence instead of blocking the skill.

Workflow

Phase 1: Index

Check if graph exists (.hex-skills/codegraph/index.db in project root).

If NOT exists:

Call: index_project({ path: "{project_path}" })

If exists (re-index on demand):

Call: index_project({ path: "{project_path}" })

Idempotent — skips unchanged files automatically.

If hex-graph is unavailable: build a manual project map with Glob and targeted Grep/Read, then continue to the closest matching query workflow without indexing.

Phase 2: Query

Route based on user intent:

User saysToolParameters
"Show dependencies" / "What uses X?"trace_paths{name: "X", file: "...", path_kind: "mixed", direction: "reverse", path: "{project_path}"}
"Who calls X?" / "What does X call?"trace_paths`{name: "X", file: "...", path_kind: "calls", direction: "reverse"\"forward", path: "{project_path}"}`
"Tell me about X" / "Context of X"inspect_symbol{name: "X", file: "...", path: "{project_path}"}
"Project structure" / "Architecture"analyze_architecture{path: "{project_path}", scope?: "src/"}
"Find symbol X"find_symbols{path: "{project_path}", query: "X"}
"Find app.get(...) / router.use(...) / server.registerTool(...) pattern"grep_search`{path: "{project_path}", pattern: "app\.get\(
"Find duplicate code / hotspots / unused exports"audit_workspace{path: "{project_path}", scope?: "src/", verbosity: "minimal", limit: 5, clone_member_limit: 3}
"Circular dependencies / module coupling"analyze_architecture{path: "{project_path}", verbosity: "full"}
"Implementations / overrides"find_implementations{name: "X", file: "...", path: "{project_path}"}
"Dataflow / propagation"trace_dataflow{source: {symbol: {name: "X", file: "..."}, anchor: {kind: "param", name: "input"}}, sink?: {symbol: {name: "X", file: "..."}, anchor: {kind: "return"}}, path: "{project_path}"}
"Review a diff / worktree"analyze_changes{path: "{project_path}", base_ref: "origin/main"}
"Check what editing this range affects"analyze_edit_region{path: "{project_path}", file: "src/file.ts", line_start: 10, line_end: 40}

Canonical selector rule: Semantic tools accept exactly one selector:

  • symbol_id
  • workspace_qualified_name
  • qualified_name
  • name + file

Preferred flow: use find_symbols only after narrowing path as much as practical, then feed the returned workspace_qualified_name into inspect_symbol, trace_paths, find_references, or find_implementations for exact follow-up queries.

Query boundary rule: find_symbols is name-based discovery only. For code fragments like export function or unresolved member-call patterns like app.get(...), use grep_search instead of treating them as symbols.

Ambiguity rule: if find_symbols returns partial... truncated=1 or shows more total results than returned rows, refine with path, then name + file or workspace_qualified_name instead of widening the graph query.

Path rule: path may be the indexed project root or any file/subdirectory inside that indexed project.

Dataflow anchors: trace_dataflow requires source.anchor and optional sink.anchor. Use:

  • param for function parameters
  • local for local variables
  • return for function returns
  • property with access_path for bounded property flow

Precision controls: inspect_symbol, trace_paths, and find_references support min_confidence (low, inferred, exact, precise) when the caller wants to suppress weaker parser-only facts.

Phase 3: Present Results

  1. Show MCP tool output directly when available; otherwise present manual findings and mark them as fallback reasoning
  2. For code snippets referenced in results, use hex-line read_file with line ranges when available; otherwise use built-in Read
  3. Suggest follow-up queries based on results:
  • After find_symbols with a clean top match → suggest inspect_symbol with workspace_qualified_name
  • After find_symbols with partial... truncated=1 → suggest narrowing path or switching to name + file before any deeper graph tool
  • After inspect_symbol → suggest trace_paths if refactoring
  • After trace_paths → suggest find_references or find_implementations depending on symbol kind
  • After empty trace_paths from a broad or module-level selector → suggest inspect_symbol or analyze_architecture instead of assuming there are no dependencies

Supported Languages

LanguageExtensionsCoverage
JavaScript.js,.mjs,.cjs,.jsxStrongest semantic coverage
TypeScript / TSX.ts,.tsxStrongest semantic coverage
Python.pyWorkspace-aware definitions, calls, imports, unused exports; optional precise overlay when provider is installed
C#.csWorkspace-aware definitions, calls, project/namespace ownership, type relations; optional precise overlay when provider is installed
PHP.phpWorkspace-aware definitions, calls, PSR-4 namespace imports, unused exports; optional precise overlay when provider is installed

MCP Server Setup

Add to .mcp.json:

{
  "mcpServers": {
    "hex-graph": {
      "command": "node",
      "args": ["{skills_repo}/mcp/hex-graph-mcp/server.mjs"]
    }
  }
}

Definition of Done

  • Project indexed or manual fallback map built
  • Query results shown to user
  • Follow-up suggestions provided
  • Fallback path stated when MCP was unavailable

Version: 0.1.0 Last Updated: 2026-03-20

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.92%
按下载量换算238

Claude

29.31%
按下载量换算184

Cursor

18.83%
按下载量换算118

Gemini CLI

9.23%
按下载量换算58

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills