用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joesobo/CodeGraphyV4 --skill codegraphy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | codegraphy |
| description | Understand and operate the CodeGraphy CLI for workspace source, symbol, and relationship exploration. |
CodeGraphy represents a workspace as a Relationship Graph. Nodes identify Files, Folders, Packages, AST Symbols, and plugin-defined concepts. Directed Edges identify relationships such as imports, reexports, calls, references, inheritance, and containment. Edge direction and type explain why two Nodes are connected.
The graph is navigation evidence. Static relationships can identify ownership and possible change surfaces, but they do not prove runtime behavior. Source, tests, generated behavior, dynamic dispatch, and unsupported language semantics can add facts that are absent from the graph.
codegraphy index discovers eligible workspace files, runs built-in and enabled Plugin analysis, and creates or incrementally updates .codegraphy/graph.sqlite. The Graph Cache stores complete indexed facts before Graph Scope and path Filters shape query results.
codegraphy watch performs that synchronization and remains in the foreground with the workspace engine resident in memory. Workspace events are debounced into serialized incremental updates, while file creation, deletion, renaming, Git ignore changes, and workspace settings changes can trigger rediscovery. Cache artifacts and active Filter matches are skipped. Changes that arrive during an update remain pending for another batch, simultaneous Graph Cache writers are coordinated, and interrupting the watcher persists its pending batch before shutdown. This is a CLI lifecycle: the VS Code Extension changes cached source facts only after an explicit Index or Re-index Workspace action.
codegraphy filter changes persisted path exclusions. Adding an active Filter narrows queries immediately; removing or disabling one can expose files that were not indexed and therefore requires another Index. codegraphy scope changes which Node Types and Edge Types appear in the shaped graph. codegraphy settings exposes workspace discovery, indexing, filter, scope, Plugin, and interface settings; settings mutations report whether another Index is required. codegraphy plugins controls installed Plugin registration and activation.
Query with any read-only graph command after a Graph Cache exists. A graph_cache_not_found result means that no indexed snapshot is available. codegraphy status reports supported missing, stale, and fresh cache conditions. codegraphy doctor checks runtime, settings, cache, and Plugin health and includes recovery information for unhealthy checks.
Most Symbols and Relationships are cached. Search also reads current source text from eligible indexed File Nodes. A single response can therefore contain freshness: "live" source matches and cached Symbol matches whose cacheState is fresh or stale. Indexing and live updates are what make changed AST and Relationship facts current; the watcher does not change the already-live source-text behavior.
| Command | Information returned |
|---|---|
search <pattern> | One ranked result set merging live source locations, cached AST Symbols, and indexed Nodes. |
map <task> | A compact task-personalized File map with matched terms, selected declarations, and typed connecting Relationships. |
query <node> | A bounded overview of one exact File or Symbol Node, with prioritized declarations and incoming and outgoing Relationships. |
nodes | A paginated Node inventory from the shaped graph. |
edges | A paginated Relationship inventory from the shaped graph. |
dependencies <node> | Outgoing Relationships from a File path or exact Node ID. |
dependents <node> | Incoming Relationships to a File path or exact Node ID. |
path <from> <to> | A bounded Relationship route between two File paths or exact Node IDs. |
Inventory reports reflect persisted Graph Scope. Search, Map, exact Target Query, Path, and targeted relationship selectors use complete cached Node and Edge Types unless an invocation explicitly projects a dimension with --node-type or --edge-type. Path Filters still apply.
--filter, --node-type, and --edge-type are one-off query projections and do not modify .codegraphy/settings.json. Persisted Filter and Scope changes affect later commands without deleting the complete cached facts.
Search literal matching is case-insensitive. * is a line-local wildcard over source, names, and paths. A whitespace-containing phrase with sparse literal matches can also produce deterministic File candidates whose paths or source contain all query terms. Search is lexical rather than a semantic-answer engine.
Source matches include File path, line, column, excerpt, and live freshness. Symbol matches include an exact Symbol ID and source location. Node matches include exact Node identity. An exact File path or Symbol ID from these results can address Target Query and relationship commands; a display label is not necessarily a Node ID.
Search, inventories, overviews, and relationship reports are bounded. Pagination uses page metadata recording offset, limit, returned count, total count, and nextOffset when another page exists. Target Query reports independent declaration and relationship bounds. Path reports include traversal limits and a complete boolean; complete: false means the configured search bound was reached before the entire search space was exhausted.
Normal command results are JSON envelopes. Commands write successful data to stdout. Operational and invalid-invocation failures use structured error envelopes on stderr and nonzero exit statuses. --verbose adds lifecycle diagnostics to stderr without changing the data envelope.
The foreground watcher streams JSON Lines envelopes for readiness, updating, updated, recoverable error, and stopped events. Event batches report bounded file paths, totals, completeness, update duration, and full-versus-incremental Indexing metrics.
Common error codes distinguish invalid arguments, missing or stale workspace state, an exact target that is absent, malformed settings, and operational failures. Error details and actions carry command-specific recovery context when available.
Current command syntax, options, and examples are available from codegraphy --help and codegraphy <command> --help.