code-map

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Code Map

Code Map

Create an offline canvas for exploring files, functions, relationships, behavioral topics, and review flows.
创建一个离线画布,用于探索文件、函数、关系、行为主题和评审流程。

Use

使用

text
/code-map codebase
/code-map pr https://github.com/owner/repo/pull/123 --draft
/code-map docs auth --files src/auth.ts,src/session.ts
Accept natural language and the harness's native invocation syntax. Interpret PR URLs as
pr
, named branches as
branch
, selected files or pasted code as a named
docs
target, and the whole current repository as
codebase
.
text
/code-map codebase
/code-map pr https://github.com/owner/repo/pull/123 --draft
/code-map docs auth --files src/auth.ts,src/session.ts
接受自然语言和 harness 的原生调用语法。将 PR URL 解释为
pr
,将指定名称的分支解释为
branch
,将选定文件或粘贴的代码解释为名为
docs
的目标,并将整个当前仓库解释为
codebase
。

Generate

生成

  1. Read the bundled source and delivery guide, then capture the target using this installed skill's runtime. Resolve script paths from the skill folder.
  2. Follow the map workflow and content schema. Use verified relationships; a directory relationship does not establish a call. Read direct source when graph tools are missing or incomplete.
  3. Render and inspect navigation, function drill-down, and source links. Return the offline HTML path and a concise account of coverage limitations.
Dependencies are set up automatically. The agent handles scripts and content JSON. PR comments require requested live delivery;
--draft
always stays local.
  1. 阅读随附的源代码与交付指南,然后使用此已安装 skill 的 runtime 捕获目标。从 skill 文件夹解析脚本路径。
  2. 遵循映射工作流和内容 schema。使用经过验证的关系;目录关系并不能证明调用关系。如果图工具缺失或不完整,请直接读取源代码。
  3. 渲染并检查导航、函数下钻和源代码链接。返回离线 HTML 路径,并简要说明覆盖范围的限制。
依赖项会自动设置。Agent 负责处理脚本和内容 JSON。只有在请求实时交付时才会发送 PR 评论;
--draft
始终保留在本地。