لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Tool discovery (portable)

آزاد تازه‌وارد تاییدشده امن

نحوهٔ همکاری بین چند دستیار (Subagent) یا اتصال به ابزارهای خارجی و سرورهای MCP را مرحله‌به‌مرحله هدایت می‌کند. (شامل ۳۵ گام عملی · سازگار با Claude Code و OpenAI Codex).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: tool-discovery
description: Resolve optional AI tooling on the current machine without assuming drive letters or usernames. Use at session start, when a tool path is unknown, or before recommending install.
metadata:
  version: 6.2.0
---

# Tool discovery (portable)

Use the working user `python` on PATH (`UABS_PYTHON` when set). Probe it before
installing anything; a WindowsApps alias may be the working Python install
manager. Reuse this base for venv/uv dependencies with runtime downloads off.
If a package rejects its version, report that compatibility conflict instead
of silently downloading another interpreter. App-owned embedded runtimes stay
with their app and do not become the shared Python.


For browser work, use native tools first; the optional shell fallback is
[Playwright CLI](references/browser-cli.md), installed without an MCP schema
or a second skill-directory writer.

For local image/video workflows, discover ComfyUI first and consult the
optional [ComfyUI CLI](references/comfy-cli.md). It adds no standing MCP schemas.

For Xmake, common compilers and project-local Nx/Turbo/Vite/webpack, read
[shared build tool ownership](references/build-tools.md). Reuse the project lock.

For binary/app analysis or unfamiliar-game reverse engineering, use
[the RE routes](references/reverse-engineering.md): Universal Modder for recon,
the existing Reverse THIS! bench for tools, REA CLI for structured evidence.

For game modding on the owner's bench, use the
[local modding bench map](references/modding-bench.md): which engine route each
installed tool serves, and the rules that keep the game install and the bench
untouched.

Never hardcode a user name, drive letter or personal folder (`C:\Users\<name>`, `<drive>:\<folder>`) as authority. Resolve every root from the order below.

Treat pasted roots as hints. When the user says a path is "just suggestions" and pastes a game folder or a tools root, those are step-5 conversation candidates, not install authority. Resolve via env, `PATH`, and the conversation path. Do not hardcode them as a game or tool root.

<!-- ‹guest · 2026-12-02› -->
## Resolution order (every tool)

1. Environment variable listed for that tool (if set and path exists).
2. Provider skill-local descriptor (`INSTALLATION.json` beside the skill) when present.
3. Well-known defaults under `%USERPROFILE%` and `%LOCALAPPDATA%`.
4. `PATH` / `where.exe` / `Get-Command`.
5. User-supplied absolute path from the current conversation.
6. **If the binary EXISTS but its MCP tools are not callable, stop — this is
   not necessarily an install problem.** Check scope, trust, filters and the
   real handshake first. Most MCP servers here are registered per project, so
   "installed" and "enabled here" are different states. Recommending an install
   here tells the user to install something they already have.
7. Only if the binary is genuinely absent from disk → **install it with the
   pack's installer or the owning repository's installer** (a fake or assumed
   install is still forbidden), then run it. Only when no supported install
   exists, say so plainly.

## Apps and owner forges by name

An installed app that does not answer by its name is not missing. Before
downloading anything, read the `Apps on PATH`, `Apps not on PATH` and `Owner
forge commands` lines of `MACHINE-MAP.md`, then run the name. When a name
fails or starts the wrong program, run the bundle's own tool (its path is the
`Repair a name or PATH` line of the map):

```text
python TOOLS\app_paths.py          what each name starts, and why
python TOOLS\app_paths.py --fix    repair it; the previous user PATH is saved first
```

It finds Blender, FFmpeg, Godot, GIMP, Krita, Inkscape, ImageMagick, 7-Zip,
the Unity CLI, codebase-memory-mcp and MSBuild through the uninstall registry,
every Steam library, the usual install folders and your tool roots, plus the
WolvenKit CLI inside the Reverse THIS kit (`wolvenkit-cli`, and `WOLVENKIT_CLI`
for Cyberpunk Forge). `--fix`
appends the real folder to the user PATH, moves a Hermes profile wrapper that
took a real program's name (`blender.bat` running `hermes -p blender`) to
`hermes-<name>`, and writes one launcher per installed forge (`assetforge`,
`skyrim-forge`, `re-triage`, ...). It never installs or downloads.

<!-- ‹guest · 2026-12-02› -->
Two traps it exists for: a POSIX shell never resolves a `.bat` or `.cmd`, so
`command not found` in Git Bash can sit next to a working name in PowerShell;
and a session keeps the PATH it started with, so after a repair use the full
path from the report until the AI app is restarted.

For Blender, Godot, FFmpeg, ImageMagick and the other creative programs, read
[what each is for and how to get one](references/creative-cli.md). A missing
one is offered to the user, then installed by name with
`python TOOLS\free_game_tools.py --install <id>`; nothing is installed unasked.

## Host capability inventory

Before declaring nothing fits, check in this order: currently callable tools and
proactive capabilities; installed but inactive profiles and MCP servers; the
verified machine inventory; PATH and `Get-Command`/`where.exe`; package managers
(`winget list`, pip, npm, cargo, dotnet); project-local environments; then vetted
catalogs and upstream documentation.

Record what you find once, in the machine inventory: path, version, provenance,
installed/available/enabled/verified, operations, credentials/cost, and the last
successful smoke test. Refresh it when the environment changes; do not rescan a
drive for every question. Bounded discovery only — never recursive whole-drive
scans, and never read credentials.

Documentation is not evidence. A tool counts as usable only after its own
`--version`/`--help` or a real call succeeds on this host.

## CLI Hub (CLI-Anything)

`cli-hub` is an optional companion, not a bundle dependency. Detect it with
`Get-Command cli-hub`; its 0.4.x interface is `list`, `search`, `can "<task>"`,
`info`, `install`, `launch`, `matrix`. Use `cli-hub can` to answer "is there a
harness for this app?" before hand-writing a wrapper, then smoke-test the harness
on the real application. Adopt a single harness and pin it; do not vendor the
upstream repository or install its meta-skill globally. If `cli-hub` is absent,
the native API/CLI still wins — note the option and continue.

## Reported states

`scripts/discover_tools.ps1` reports a precise `state` next to the legacy
<!-- ‹guest · 2026-12-02› -->
`status`: `VERIFIED` (the tool's own version/help answered), `CALLABLE` (MCP
configured and enabled), `INSTALLED` (binary or config present, probe failed),
`DISCOVERED` (source checkout only), `MISSING`. `status` keeps FOUND/MISSING for
old consumers.

Flags: `-Json`, `-Inventory` (bounded registry/package-manager inventory,
cached 24 h), `-Refresh`, `-NoCache`, `-SearchDir`/`-Isolated` (fixtures),
`-ToolRoots`, `-HermesConfig` (JSON MCP state). It never installs and never
scans a whole drive.

## Two different failures, two different answers

| What you see | State | Response template |
|---|---|---|
| MCP tool search returns 0 results; binary present on disk | installed, **not enabled for this project** | NOT ENABLED (below) |
| Binary absent from every path in the resolution order | not installed | TOOL MISSING (below) |

### NOT ENABLED response template

```text
TOOL PRESENT BUT NOT ENABLED HERE: <name>
WHY:   task MCP servers stay out of every chat until a task needs one
NOW:   toolbox `find` "<what you need>" (project: "<project>") -> `describe` -> `call`
       It starts the server in THIS chat. Nothing for the user to type or restart.
ELSE:  only when no toolbox is connected, run it yourself:
       TOOLS\Set-McpProfile.ps1 -Auto -Path "<project>"   (or -Enable <profile>; -Detect shows what applies)
       Native wiring reaches the next chat in that project: a running session does
       not pick up a new MCP server, so say the AI app needs a restart only then.
```

Profiles worth naming: `code-intel` (codebase-memory + serena), `web`
(Chrome DevTools/shadcn when relevant; Playwright CLI is separate), and the
game/engine profiles (`game-*`, `engine-*`) that activate a game's own Forge or
editor MCP only inside a matching project. `-List` marks each server
`REGISTERED for the project above` or `ready, but NOT registered`; the second
one is always one command away, on providers with project scope. Kimi needs
explicit global opt-in; Hermes uses native named profiles. See
`capability-profiles` for supported activation.

### Missing-tool response template
<!-- ‹guest · 2026-12-02› -->

```text
TOOL MISSING: <name>
WHY NEEDED: <one sentence>
INSTALL: <official URL, pack section, or the owning repository>
VERIFY: <one command that must succeed>
OPTIONAL: continue without it using <fallback>
```

Only recommend tools that help the active task. Do not nag about every optional tool every turn.

## Game-specific tools are not bundled

Game and specialist toolchains live in the owner's forges and install themselves. The registry (repository,
start command, environment variable) is in `ai-tooling-stack`; the bundle only activates an installed forge per
project (`game-*` profiles, parked-server rules). Check the forge's own variable first (`SKYRIM_FORGE_ROOT`,
`HOUSECARL_MCP`, `ROBLOX_FORGE_ROOT`, `ROR2_FORGE_ROOT`), then `UABS_TOOL_ROOTS` and its skill-local
`INSTALLATION.json`. When it is absent, use the TOOL MISSING template with the owning repository.

## Environment variables (optional, user-set)

| Variable | Tool |
|---|---|
| `CODEBASE_MEMORY_MCP` | Full path to `codebase-memory-mcp.exe` |
| `HEADROOM_CMD` | `headroom` executable or `python -m headroom` entry |
| `UABS_TOOLBOX_CMD` | `uabs-toolbox` executable |
| `UABS_PYTHON` | The shared user Python the bundle reuses |
| `UABS_TOOL_ROOTS` | `;`-separated extra folders where the user keeps tool checkouts |

## Discovery script

Run the bundled script when available:

```text
tool-discovery\scripts\discover_tools.ps1
tool-discovery\scripts\discover_tools.ps1 -Json
```

It prints FOUND / MISSING for each general tool and never modifies the system.

<!-- ‹guest · 2026-12-02› -->
## Per-tool checks (Windows)

### codebase-memory-mcp

- Env: `CODEBASE_MEMORY_MCP`
- Default search:  
  `%LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe`
- Verify: `codebase-memory-mcp.exe --version`
- Install: https://github.com/DeusData/codebase-memory-mcp  
  PowerShell installer from upstream `install.ps1` (optionally `--ui`)
- Provider wiring: MCP server entry must point at the **exe** with adequate startup timeout (Grok often needs 90s+)
- Grok repair helper ships in pack: `TOOLS\Fix-Grok-Codebase-Memory-Direct.ps1` (resolves the exe itself; `-ExePath` overrides)
- Fallback: ripgrep / codebase explore without graph

### Headroom

- Env: `HEADROOM_CMD`
- Verify: `headroom --help` or `python -m headroom --help`
- Install: https://github.com/headroomlabs-ai/headroom  
  `pip install "headroom-ai[mcp]"` or `"headroom-ai[proxy]"` then `headroom mcp install` where supported
- Tools (when MCP up): compress / retrieve / session stats
- Fallback: work without compression; warn on large contexts

### Superpowers

- Process skills under provider skills or Claude plugin cache
- Install: https://github.com/obra/superpowers
- If missing: follow pack-bundled copies of the skill markdown; recommend plugin install for hooks/automation

### Ponytail

- Skills: `ponytail`, `ponytail-review`, `ponytail-audit`, …
- Install: https://github.com/DietrichGebert/ponytail
- If missing: use bundled skill text; recommend plugin for native `/ponytail` UX

### CodeBurn

- Verify: `npx codeburn --help` or `codeburn --help`
- Install: https://github.com/getagentseal/codeburn — `npx codeburn` or `npm i -g codeburn` (Node 22.13+)
- Purpose: local AI token/cost dashboards and waste scans — not a build tool
<!-- ‹guest · 2026-12-02› -->
- Fallback: skip cost analytics

## Provider MCP config pointers

| App | Typical config |
|---|---|
| Claude Code | Plugin / `.mcp.json` / Claude settings |
| Codex | `%CODEX_HOME%\config.toml` or Codex MCP UI |
| Grok Build | `%USERPROFILE%\.grok\config.toml` → `[mcp_servers.<name>]` |
| Cursor | MCP settings JSON |
| Others | Follow that app's MCP docs |

After editing MCP config: **fully restart** the AI application.

## Beyond the catalog

The catalog is this pack's default set, not the limit of what you may use.
Tooling moves. If you know a better app, plugin, CLI or MCP for the task, use
it when it is the right tool.

1. Prefer a tool that is already installed.
2. Then one this pack ships (`Ensure-Tools.ps1`, the catalog, or the owning installer).
3. Anything else: before you download it, check the official source, the license,
   and what the installer executes. Append one line to
   `%USERPROFILE%\.uabs\profile\SAFE-TOOLS.md`:

```text
name | source URL | version | safe or reject | why
```

Create that file with a one-line header if it is missing. It stays on this
machine and is not sent with every request. Reuse a line whose verdict is
`safe` or starts with `safe` (for example `safe-reference`). Recheck only
when the source, version or publisher changed.

Bundle-level reviews (vendor it, or leave it out) live in
`docs/TOOL-EVALUATIONS.md`. Do not repeat a review recorded there unless the
upstream release changed. Do not add the tool to the global MCP profile or
vendor it into the pack unless the task is pack maintenance.

<!-- ‹guest · 2026-12-02› -->
## Safety

- Discovery is read-only.
- Never copy another user's absolute paths into a shareable release.
- Never write to a game's live `Data`, mod-manager overwrite, or saves while "just checking tools".

---

## AIO installer (pack)

New users and missing-tool recovery:

```powershell
# Pack root
.\INSTALL-AIO.ps1
.\INSTALL-AIO.ps1 -Mode OnlineLatest
.\TOOLS\Ensure-Tools.ps1
.\TOOLS\Update-From-GitHub.ps1
```

Offline snapshots live in `BUNDLED-TOOLS\offline\`. Component registry: `BUNDLED-TOOLS\CATALOG.json`.
After MCP changes the user must **fully restart** the AI application.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Diagnosing Superpowers

«Diagnosing Superpowers» دستورالعمل دقیقی برای «مدیریت هوشمند حافظه و کانتکست» در اختیار دستیار هوش مصنوعی می‌گذارد تا …

⚡ /diagnosing-superpowers SKILL.md
Claude / Claude Code
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰