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

codemapcodemap 搜索

Agent Skill

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

总安装

1,406

周安装

58

GitHub Stars

公开资料未说明

下载量

459
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于查找和筛选相关信息,适合基于关键词或任务场景定位内容。

  • 可在 Codex、Claude 等环境中使用,支持快速检索。
  • 安装命令:npx skills add https://github.com/ulpi-io/skills --skill codemap。
  • 建议确认权限和维护状态,避免触发敏感操作。
  • 注意是否涉及外部系统调用或文件读写。

SKILL.md

Non-negotiable rules:

  1. Check codemap --version and codemap status before relying on results.
  2. If the project has no codemap setup, ask before running codemap init.
  3. Prefer the narrowest codemap command that answers the question.
  4. Prefer machine-readable output when you need to interpret structured results.
  5. Do not auto-edit Claude or project settings just to enable codemap.

codemap

Inputs

  • $request: The search or analysis goal

Goal

Use the codemap CLI to answer architecture and discovery questions with better signal than plain-text search when:

  • intent is semantic rather than literal
  • symbol lookup matters
  • dependency direction matters
  • file importance or coupling matters

Step 0: Verify availability and index state

Check:

  • codemap --version
  • codemap status

If codemap is missing, tell the user to install it with npm install -g @ulpi/codemap and stop. Do not install it automatically.

If the repo is not configured:

  • explain that codemap init creates project config
  • ask before running codemap init
  • once configured, run codemap index

If the repo is configured but stale, re-index with codemap index.

Success criteria: There is a working codemap index for the current repository.

Step 1: Choose the right command

Command Reference

CommandWhat It DoesKey Flags
codemap search <query>Hybrid vector+BM25 code search-l N, --json
codemap symbols <query>Find functions, classes, types by name-l N, --json
codemap summary <file>File overview with symbols and size--json
codemap deps <file>Outgoing imports (what this file uses)--json
codemap dependents <file>Incoming imports (what uses this file)--json
codemap rank [file]PageRank importance scores-l N, --json
codemap couplingAfferent/efferent coupling and instability--module <path>, -l N, --json
codemap cyclesDetect circular dependencies--json
codemap graph-statsAggregate dependency graph statistics--json
codemap indexIndex project for search--full
codemap statusShow index stats--json
codemap watchLive index updates on file change--debounce <ms>
codemap read <file>Read full source (or line range)--start, --end
codemap serveStart MCP server over stdio

Quick Routing

What You WantCommand
Find code that does Xcodemap search "X"
Find function/class named Xcodemap symbols "X"
What does this file depend on?codemap deps <file>
What depends on this file?codemap dependents <file>
Most important filescodemap rank
Circular dependencies?codemap cycles
Overview of a filecodemap summary <file>
Architecture healthcodemap coupling
Project statscodemap graph-stats

Prefer --json when you need structured output rather than prose.

Success criteria: The command matches the actual question instead of overfetching.

Step 2: Run the minimal useful codemap query

Start narrow:

  • limited result count
  • specific file or module when known
  • one analysis dimension at a time

Then expand only if the first result set is clearly insufficient.

Rules:

  • do not run every codemap command "just in case"
  • do not use codemap when exact grep is simpler
  • when file contents are needed after discovery, use Read on the concrete file paths returned

Success criteria: The answer uses codemap for discovery and Read only for the specific files that matter.

Step 3: Report results in decision-friendly form

Summarize:

  • what command was used
  • why it was the right command
  • the most relevant results
  • any follow-up files worth opening

When there are no strong results, say that explicitly instead of inventing certainty.

Success criteria: The user can act on the result set without parsing raw codemap output.

MCP Alternative

Codemap can also run as an MCP server, giving AI agents direct tool access without Bash:

claude mcp add codemap codemap serve

This exposes tools like mcp__codemap__search_code, mcp__codemap__search_symbols, etc. The CLI skill (this file) uses Bash commands. MCP gives agents native tool calls. Both work -- use whichever the agent setup prefers.

Guardrails

  • Do not auto-modify settings files to add permissions.
  • Do not run codemap init without the user's approval when it would create new config.
  • Do not treat stale or empty indexes as authoritative.
  • Do not replace simple exact-match tools with codemap when text search is clearly enough.
  • Do not add disable-model-invocation; this is a general discovery skill.

Output Contract

Report:

  1. codemap availability and index state
  2. the command chosen
  3. the most relevant hits or graph results
  4. the next file(s) to open if deeper reading is needed
  5. any limitations such as missing index or weak results

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.56%
按下载量换算154

Claude

31.27%
按下载量换算144

Cursor

18.37%
按下载量换算84

Gemini CLI

9.01%
按下载量换算41

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills