Token导航 LogoToken导航TokenDH.com
研究检索可写文件github未标认证来源可访问clear审计通过

codemapcodemap 搜索

Agent Skill

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

总安装

2,043

周安装

86

GitHub Stars

528

下载量

716
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

codemap 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词、任务场景或来源线索进行信息定位的研究检索类工作。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 该技能归类为研究检索工具,主要服务于信息查找与筛选场景。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

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