Token导航 LogoToken导航

Agent Skill · 研究检索

codemap(codemap 搜索)

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

codemap 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为可写文件;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 35,699。

总安装 2,043周安装 86GitHub Stars 528下载 716核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jordancoin/codemap --skill codemap

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

codemap 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词、任务场景或来源线索进行信息定位的研究检索类工作。通过 npx skills add 命令从 GitHub 仓库安装,需结合原始 README 确认具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。该技能归类为研究检索工具,主要服务于信息查找与筛选场景。

来源仓库内路径:skills/codemap

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jordancoin/codemap --skill codemap;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要可写文件,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codemap 怎么安装?

在终端执行 npx skills add https://github.com/jordancoin/codemap --skill codemap。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codemap 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codemap 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

codemap 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

codemap 用的人多吗?

公开数据是累计安装 2,043 次,近一周安装 86 次,下载 716 次,GitHub 528 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codemap 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
codemap

codemap 搜索 · 本页

2,043528可写文件MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Codemap

Codemap gives you instant architectural context about any codebase. It classifies your intent, detects risk, matches relevant skills, and tracks your working set — all automatically via hooks.

Codemap should also keep its own per-project config healthy. On first use in a repo, or when output is obviously noisy, tune .codemap/config.json before doing deeper analysis so future calls stay code-first instead of asset-first.

Commands

codemap .                       # Project structure and top files
codemap --deps                  # Dependency flow (imports/functions/hubs)
codemap --diff                  # Changes vs main branch
codemap --diff --ref <branch>   # Changes vs specific branch
codemap --importers <file>      # Who imports this file? Is it a hub?
codemap handoff .               # Build + save handoff artifact
codemap handoff --latest .      # Read latest saved handoff
codemap handoff --json .        # Machine-readable handoff payload
codemap skill list              # Show available skills with descriptions
codemap skill show <name>       # Get full skill instructions
codemap skill init              # Create custom skill template
codemap config show             # Show current project config
codemap context                 # Universal JSON context envelope
codemap context --for "prompt"  # With pre-classified intent + matched skills
codemap context --compact       # Minimal for token-constrained agents
codemap serve --port 9471       # HTTP API for non-MCP integrations

First-Use Setup

Before deeper Codemap analysis in a repo:

  1. Check .codemap/config.json.
  2. If it is missing, clearly boilerplate, or obviously too noisy for the stack, run codemap skill show config-setup and follow it.
  3. After writing or improving config, rerun codemap. and codemap --deps.

Treat config as repo memory. Once tuned, future Codemap calls should benefit automatically.

Signals that config needs setup or tuning:

  • .codemap/config.json is missing
  • config only contains generic auto-detected only values with no real project shaping
  • large non-code directories dominate the tree output
  • stack-specific noise is overwhelming source structure (.xcassets, screenshots, PDFs, training-data, fixtures, generated files, models, vendor directories)
  • the repo stack is obvious, but the config does not reflect it

When to Use

ALWAYS run codemap. when:

  • Starting any new task or feature
  • User asks "where is X?" or "what files handle Y?"
  • User asks about project structure or organization
  • You need to understand the codebase before making changes

ALWAYS run codemap --deps when:

  • User asks "how does X work?" or "what uses Y?"
  • Refactoring or moving code
  • Need to trace imports or dependencies
  • Finding hub files (most-imported)

ALWAYS run codemap --diff when:

  • User asks "what changed?" or "what did I modify?"
  • Reviewing changes before commit
  • Summarizing work done on a branch

ALWAYS run codemap --importers <file> when:

  • About to edit a file — check if it's a hub
  • Need to know the blast radius of a change
  • Deciding whether to refactor or leave alone

Run codemap skill show <name> when:

  • The prompt-submit hook shows matched skills in <!-- codemap:skills [...] -->
  • You need guidance for a specific task (hub editing, refactoring, testing)
  • Risk level is medium or high

Run codemap skill show config-setup when:

  • The repo has no .codemap/config.json
  • The config looks like a bare bootstrap and not a real project policy
  • Codemap output is cluttered by large non-code directories
  • You want Codemap to make better future decisions for this specific repo

Run codemap context when:

  • Piping codemap intelligence to another tool
  • Need a structured JSON summary of the project state
  • Building automation that consumes code-aware context

Run codemap handoff when:

  • Switching between agents (Claude, Codex, Cursor)
  • Resuming work after a break
  • User asks "what should the next agent know?"

Hook Output

The prompt-submit hook fires on every message and provides:

<!-- codemap:intent {"category":"refactor","risk":"high",...} -->
<!-- codemap:skills [{"name":"hub-safety","score":5},...] -->
Skills matched: hub-safety, refactor — run `codemap skill show <name>` for guidance
  • Intent categories: refactor, bugfix, feature, explore, test, docs
  • Risk levels: low (no hubs), medium (1 hub), high (2+ hubs or 8+ importers)
  • Skills are pull-based: only names are shown, run codemap skill show for full body

Builtin Skills

SkillWhen to Pull
config-setupMissing, boilerplate, or noisy .codemap/config.json
hub-safetyEditing files imported by 3+ others
refactorRestructuring, renaming, moving code
test-firstWriting tests, TDD workflows
exploreUnderstanding how code works
handoffSwitching between AI agents

Output Interpretation

Tree View (codemap.)

  • Stars (⭐) indicate top 5 largest source files
  • Directories flattened when containing single subdirectory

Dependency Flow (codemap --deps)

  • External dependencies grouped by language
  • Internal import chains showing how files connect
  • HUBS section shows most-imported files (3+ importers)

Diff Mode (codemap --diff)

  • (new) = untracked, ✎ = modified, (+N -M) = lines changed
  • Warning icons show hub files (high impact)

Importers (codemap --importers <file>)

  • Shows all files that import this file
  • Flags hub status (3+ importers = high impact)

Context Envelope (codemap context)

  • JSON with project metadata, intent, working set, matched skills, handoff ref
  • --compact strips skills and limits working set for token savings

MCP Tools

If codemap MCP server is configured, these tools are available:

ToolUse For
get_structureProject tree
get_dependenciesDependency flow + hubs
get_diffChanged files with impact
find_fileSearch by filename
get_importersWho imports a file
get_hubsList all hub files
get_file_contextFull context for one file
get_handoffBuild/read handoff artifact
get_working_setFiles edited this session
list_skillsAvailable skills (metadata)
get_skillFull skill instructions
get_activityRecent coding activity
start_watch / stop_watchControl daemon
statusVerify MCP connection
list_projectsDiscover projects

HTTP API

When codemap serve is running:

EndpointReturns
GET /api/context?intent=...Context envelope
GET /api/skillsAll skills metadata
GET /api/skills/<name>Full skill body
GET /api/working-setCurrent working set
GET /api/healthServer health

平台分布

Claude Code

29.43%
按下载量换算211

OpenCode

26.39%
按下载量换算189

Cursor

18.23%
按下载量换算131

Gemini CLI

14.41%
按下载量换算103

trae

7.18%
按下载量换算51

Antigravity

3.28%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills