# Add to your Claude Code skills
git clone https://github.com/haxsd/toolkit-mapSee how toolkit-map compares with popular alternatives.
toolkit-map is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by haxsd. 让 AI 编程助手复用本机工具并按项目要求选对版本;Windows 工具发现、验证与项目规则接入。. It has 101 GitHub stars.
toolkit-map's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/haxsd/toolkit-map" and add it to your Claude Code skills directory (see the Installation section above). toolkit-map ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
toolkit-map is primarily written in PowerShell. It is open-source under haxsd on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh toolkit-map against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
先根据本 SKILL.md 的实际位置定位 scripts/map.ps1,使用它的绝对路径。不要把 ./scripts/map.ps1 当成用户当前项目下的文件。
安装技能不会自动写入前端的全局规则。希望在各项目持续遵守本流程时,将简短调用规则接入前端支持的全局指令;仅单个项目使用时可运行 setup -Project <目录>。接入位置、可复制模板和生效验收见 agent 接入指南。
Windows 策略禁止直接执行脚本时,用当前 PowerShell 宿主以 -NoProfile -ExecutionPolicy Bypass -File <地图脚本绝对路径> <动作与参数> 单次调用;不修改全局执行策略,遵循组织组策略。
<地图脚本绝对路径> status -Json。没有地图时执行 setup -Project <项目目录>,或只执行 scan;过旧或 PATH 变化时重扫。<地图脚本绝对路径> find <工具> -Project <当前项目目录> -Json。ok、status、requirement、verification。只有成功且已验证的结果默认可以直接使用 path。mise exec -- <命令>。find 在地图没有合适副本时搜索 PATH、仓库和 mise 安装目录。失败只说明本次搜索范围没有合适副本,不代表全盘不存在,也不授权自动安装。
先查地图和现场;只有明确需要时另行执行 install <工具>@<版本>。先用 -WhatIf -Json 查看计划。已有其他版本不代表项目要求的版本已满足。
下载前说明预计下载量、展开后的安装占用、实际目标目录及暂存/缓存位置,检查相关盘的可用空间。仅预计安装占用 ≥1 GB 时询问位置,下载包大小不触发询问;先问用户使用当前位置还是其他绝对目录,等回答再下载。体积未知时先核实估算;Rust、Android SDK 等预计达到门槛的工具即使精确体积未知也先确认。用户已有明确位置偏好且空间足够时复用,不重复询问;用户指定的门槛优先。
-WhatIf 不联网、不估算包体积;大小来自官方资产元数据/说明,未知就报告未知。TOOLCHAIN_ROOT 控制 portable 仓库,TEMP 控制安装暂存;管理器的数据和缓存目录另行配置。临时环境变量只在当前会话生效,持久化位置偏好需用户明确选择,不自动移动已有安装。详见 存储与大工具安装。
portable 工具落在 ~/toolchains/<工具>/<版本>/;-Via winget 由包管理器决定安装位置。已有副本用 add 登记,不搬路径、不改全局 PATH。不安装 venv/site-packages/node_modules 等应用依赖到工具仓库。
| 动作 | 用途 |
|---|---|
setup -Project <目录> [-WhatIf] |
首次建图并接入项目 AGENTS.md;已有文件先备份;-RulesFile 可指定文件 |
doctor -Project <目录> |
只读验证地图、宿主与接入文件;不证明模型行为 |
scan |
完整扫描,保留手工副本、备注和偏好 |
status |
完整扫描年龄、局部更新时间和 PATH 变化 |
find <工具> [-Project <目录>] [-Version <要求>] |
动态选择;不满足时失败,不降级 |
add <工具> -Path <绝对路径> [-Note <文本>] [-Prefer] |
登记已有文件;保存路径偏好 |
update [工具] |
重探条目,不刷新完整扫描时间 |
install <工具>@<版本> [-WhatIf] |
明确安装,可用 -Url / -Sha256 或 -Via winget |
所有动作支持 -Json;stdout 一个对象,协议 schemaVersion: 2。ok:false 时必须处理 status:map_missing、map_corrupt、not_found、no_usable_candidate、version_mismatch、requirement_unsupported、map_busy 等。
项目要求 > 显式偏好 > 已验证副本的默认排序;-Version 可以显式覆盖项目要求。shim 永不作首选,IDE 运行时和 conda env 默认不参选。-AllowUnverified / -AllowIdeHost 只能在用户明确需要时使用,不能为了让查询成功而自行添加。
不执行 shim 探测版本;不把存在等同可用;不把未知要求判成满足。用 source 区分仓库、管理器、系统、手工和宿主副本。地图是索引,仓库是存放位置。
完整地图动作仅限 Windows PowerShell 5.1/7;Unix 目前只有 census.sh 扫描内核。复杂 mise 配置交给管理器,不猜测其含义。
向用户报告时区分:项目要求什么、机器发现哪些副本、当前命令解析到谁。发现范围和验证状态都必须保留。
首次使用见 README;遇到问题见 故障排查,撤销见 卸载指南。不把本机环境告警或 doctor 待处理项误报为安装失败。
让 AI 编程助手优先复用已经安装的工具,并按项目要求选对版本。
适合在 Windows 本机用 Cursor、Codex 或 Claude Code 开发,尤其是有多个工具版本、工具散落在不同目录的机器。接入方式是本地 PowerShell 脚本与 agent 规则,无需安装 mise。macOS / Linux 目前只有扫描内核,尚不支持完整地图流程。
开始使用 · 其他前端与全局接入 · 遇到问题 · 撤销接入
假设 PATH 上是 Node 16,机器另有 Node 22,而项目声明需要 Node 22:
| 场景 | toolkit-map 的结果 | agent 接下来做什么 |
|---|---|---|
| 发现可验证的 Node 16、22 | 选择满足项目要求的 Node 22,返回绝对路径 | 用该路径调用工具 |
| 本次范围只发现 Node 16 | 返回 version_mismatch,不给错误版本的调用路径 |
报告缺口;明确需要安装时再单独处理 |
| 声明无法解释 | 返回 requirement_unsupported |
澄清要求或交给管理器,不猜版本 |
成功查询的关键字段如下(示例路径,不是你本机的清单):
{
"ok": true,
"status": "ok",
"path": "C:\\tools\\node\\22\\node.exe",
"version": "22.23.2",
"verification": "verified",
"requirement": { "version": "22", "scope": "project", "source": "C:\\project\\mise.toml" }
}
node --version 只说明当前 PATH 调用了谁;地图把项目要求、发现的副本与调用路径分开。查询不安装工具;默认不选 shim、未验证文件或 IDE 内置运行时。搜索范围不是全盘穷尽。
推荐先在一个 Cursor 或 Codex 项目中试用,确认成功后再配置跨项目的全局规则。需要 Windows PowerShell 5.1 / PowerShell 7、Git。源码发布 ZIP 约 170 KB,工具仓库与实际工具另行存放。
在你要接入的项目目录打开 PowerShell,在同一个终端按顺序执行。当前目录就是项目路径,无需反复替换盘符。
$project = (Get-Location).Path
$installDir = Join-Path $env:USERPROFILE 'Projects\toolkit-map'
git clone --branch v0.3.0 --depth 1 https://github.com/haxsd/toolkit-map $installDir
if ($LASTEXITCODE -ne 0) { throw '下载未完成。已有安装请按升级指南处理,不要覆盖。' }
$map = Join-Path $installDir 'scripts\map.ps1'
$ps = (Get-Process -Id $PID).Path
已有安装见升级步骤。没有 Git 或希望下载 ZIP 时,改走 ZIP 接入路线,它使用系统 PowerShell 验证地图。
检查下载的源码后,使用当前 PowerShell 宿主单次运行脚本;这不会修改全局执行策略。组织组策略的限制需遵循组织要求。
& $ps -NoProfile -ExecutionPolicy Bypass -File $map setup -Project $project -WhatIf -Json
& $ps -NoProfile -ExecutionPolicy Bypass -File $map setup -Project $project
& $ps -NoProfile -ExecutionPolicy Bypass -File $map doctor -Project $project -Json
& $ps -NoProfile -ExecutionPolicy Bypass -File $map find git -Project $project
预览返回 status: planned;setup 首次建图并将规则写入当前项目的 AGENTS.md,已有内容保留、修改前备份。首次扫描可能需要等待,耗时取决于候选数量与探测情况。它不安装运行时、不改 PATH。
doctor 正常时返回 ok: true、status: ok;Git 查询显示绝对路径、版本和 验证 verified。attention_required 需按 checks 排查,见故障排查。先查 Git 是因为下载前已要求安装它,首次成功无需另外安装 Node。
在同一项目新开 Cursor Agent Chat 或 Codex 会话,发送:
根据本项目的工具发现规则,查询 Git。先不安装、不改环境;报告项目要求、发现的副本、所选绝对路径及验证状态。验证通过后,用这个绝对路径执行
--version。
成功标志是看到 agent 实际调用地图,再调用返回的工具路径。doctor 只检查本机配置,不能证明模型已加载或遵守规则。模型直接调用裸 git 时,按规则未生效的排查步骤处理。
| 能力 | 当前支持 | 边界 |
|---|---|---|
| 发现已有工具 | 已登记路径、PATH、统一仓库、mise 安装目录,以及扫描内核识别的位置 | 非穷尽全盘;其他位置可用 add 登记 |
| 验证与选择 | 运行时与 CLI 的路径、版本、验证状态;按项目要求选择 | 未知工具默认尝试 --version;特殊参数需适配器 |
| 项目声明 | 常见 mise、.tool-versions、Node/Python 版本文件和 Node engines |
轻量读取器,不解释完整 TOML/mise 环境语义 |
| portable 安装 | gh、jadx、rg/ripgrep、fd(Windows x64)、adb;自定义 ZIP | 不自动安装所有能发现的工具;下载版本在最终位置再次验证 |
| 安装器 | 明确使用 -Via winget |
位置由包管理器决定 |
| 平台 | Windows PowerShell 5.1 / 7 支持完整地图 | Unix 目前仅 census.sh 扫描 |
下面假定已设置 $ps、$map、$project。每个动作都支持 -Json,stdout 一个 JSON 对象;检查退出码、ok、status、requirement 和 verification 后再调用工具。
& $ps -NoProfile -ExecutionPolicy Bypass -File $map status -Json
& $ps -NoProfile -ExecutionPolicy Bypass -File $map find node -Project $project -Json
& $ps -NoProfile -ExecutionPolicy Bypass -File $map add node -Path 'C:\existing-node\node.exe' -Json
& $ps -NoProfile -ExecutionPolicy Bypass -File $map install rg@latest -WhatIf -Json
完整命令、结果状态、适配器与声明规则见参考手册。全局规则、Claude Code、Cursor MDC 和可选技能安装见agent 接入指南。
install 是单独的明确操作。bootstrap 是可选环境配置,会修改机器,不在上述接入流程中。~/.toolkit/map.json,新 portable 工具默认在 ~/toolchains。TOOLCHAIN_ROOT 可改仓库位置,TEMP 与管理器缓存需分别考虑。接入规则仅在预计安装占用 ≥1 GB 时询问位置,CLI 本身不估算或弹窗。见存储指南。setup;Cursor 全局 User Rules 重新生成并粘贴;随后新开会话验收。参考手册 · agent 接入 · 平台说明 · 存储指南 · 贡献指南 · 更新记录
源码、协议、通用示例与配方使用 MIT 许可。本机地图、工具、缓存和凭据不进入发布包。