Skills Plugins MCP Prompt Model 博客 我的中心

setup-codemap-cli

Guide for setup Codemap CLI for intelligent codebase visualization and navigation

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=neolabhq-context-engineering-kit-plugins-mcp-skills-setup-codemap-cli-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name setup-codemap-cli description Guide for setup Codemap CLI for intelligent codebase visualization and navigation argument-hint Optional - specific configuration preferences or OS type User Input: $ARGUMENTS Guide for setup Codemap CLI 1. Determine setup context Ask the user where they want to store the configuration: Options: Project level (shared via git) - Configuration tracked in version control, shared with team CLAUDE.md updates go to: ./CLAUDE.md Hook settings go to: ./.claude/settings.json Project level (personal preferences) - Configuration stays local, not tracked in git CLAUDE.md updates go to: ./CLAUDE.local.md Hook settings go to: ./.claude/settings.local.json Verify these files are listed in .gitignore , add them if not User level (global) - Configuration applies to all projects for this user CLAUDE.md updates go to: ~/.claude/CLAUDE.md Hook settings go to: ~/.claude/settings.json Store the user's choice and use the appropriate paths in subsequent steps. 2. Check if Codemap is already installed Check whether codemap is installed by running codemap -help . If not installed, proceed with setup. 3. Load Codemap documentation Read the following documentation to understand Codemap's capabilities: Load https://raw.githubusercontent.com/JordanCoin/codemap/refs/heads/main/README.md to understand what Codemap is and its capabilities 4. Guide user through installation macOS/Linux (Homebrew) brew tap JordanCoin/tap && brew install codemap Windows (Scoop) scoop bucket add codemap https://github.com/JordanCoin/scoop-codemap scoop install codemap 5. Verify installation After installation, verify codemap works: codemap . 6. Update CLAUDE.md file Use the path determined in step 1. Once Codemap is successfully installed, update the appropriate CLAUDE.md file with the following content: ## Use Codemap CLI for Codebase Navigation Codemap CLI is available for intelligent codebase visualization and navigation. **Required Usage** - You MUST use `codemap --diff --ref master` to research changes different from default branch, and `git diff` + `git status` to research current working state. ### Quick Start ```bash codemap . # Project tree codemap --only swift . # Just Swift files codemap --exclude .xcassets,Fonts,.png . # Hide assets codemap --depth 2 . # Limit depth codemap --diff # What changed vs main codemap --deps . # Dependency flow Options Flag Description --depth, -d <n> Limit tree depth (0 = unlimited) --only <exts> Only show files with these extensions --exclude <patterns> Exclude files matching patterns --diff Show files changed vs main branch --ref <branch> Branch to compare against (with --diff) --deps Dependency flow mode --importers <file> Check who imports a file --skyline City skyline visualization --json Output JSON Smart pattern matching - no quotes needed: .png - any .png file Fonts - any /Fonts/ directory *Test* - glob pattern Diff Mode See what you're working on: codemap --diff codemap --diff --ref develop if the default branch is not `main`, but instead `master` (or something else) update content accordingly: - use `codemap --diff --ref master` instead of regular `codemap --diff` ## 7. Update .gitignore file Update .gitignore file to include `.codemap/` directory: ```text .codemap/ 8. Test Codemap Run a quick test to verify everything works: codemap . codemap --diff 9. Add hooks to settings file Use the settings path determined in step 1. Create the settings file if it doesn't exist and add the following content: { "hooks" : { "session-start" : "codemap hook session-start && echo 'git diff:' && git diff --stat && echo 'git status:' && git status" } } if default branch is not main , but instead master (or something else) update content accordingly: use codemap hook session-start --ref=master instead of regular codemap hook session-start For rest of commands also add --ref=master flag. Ask user whether he want to add any other hooks and provide list of options with descriptions. Add hooks that he asks for. Available Hooks Command Trigger Description codemap hook session-start SessionStart Full tree, hubs, branch diff, last session context codemap hook pre-edit PreToolUse (Edit|Write) Who imports file + what hubs it imports codemap hook post-edit PostToolUse (Edit|Write) Impact of changes (same as pre-edit) codemap hook prompt-submit UserPromptSubmit Hub context for mentioned files + session progress codemap hook pre-compact PreCompact Saves hub state to .codemap/hubs.txt codemap hook session-stop SessionEnd Edit timeline with line counts and stats Example of file with full hooks configuration { "hooks" : { "SessionStart" : [ { "hooks" : [ { "type" : "command" , "command" : "codemap hook session-start" } ] } ] , "PreToolUse" : [ { "matcher" : "Edit|Write" , "hooks" : [ { "type" : "command" , "command" : "codemap hook pre-edit" } ] } ] , "PostToolUse" : [ { "matcher" : "Edit|Write" , "hooks" : [ { "type" : "command" , "command" : "codemap hook post-edit" } ] } ] , "UserPromptSubmit" : [ { "hooks" : [ { "type" : "command" , "command" : "codemap hook prompt-submit" } ] } ] , "PreCompact" : [ { "hooks" : [ { "type" : "command" , "command" : "codemap hook pre-compact" } ] } ] , "SessionEnd" : [ { "hooks" : [ { "type" : "command" , "command" : "codemap hook session-stop" } ] } ] } }
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。