Skill v1.0.0
LLM-judged scan90/100version: "1.0.0" name: tool-bootstrapping description: 'Use when analysing project stack for MCP or skill recommendations. Triggers: tool bootstrapping, MCP installation, skill discovery, project onboarding tools, package.json deps changed, .ai-factory/tool-decisions.md, AIF /aif, tool detection, инструменты, бутстраппинг, MCP серверы, скиллы, зависимости, онбординг, подбор инструментов, предложение инструментов, подтверждение установки, tool proposal confirmation, incremental tool re-evaluation, rejected tools memory, memory persistence for tools.'
<!-- @harness-posture: portable — prose + npx skills CLI; the deps-hash UserPromptSubmit hook is companion infrastructure, not this skill's runtime dependency -->
Tool Bootstrapping — project-aware MCP/skill proposal discipline
Authoritative for: §13.25 tool-bootstrapping discipline (6 rules) for consumer projects that install this skill viainstall.sh. Consumer-facing shipped version; project-internal cross-links omitted.NOT authoritative for: authoring-repo goal — see authoring repoREADME.md#why-this-exists. Project-internal version with repo-specific cross-links — see.claude/skills/tool-bootstrapping/SKILL.mdafter install.
When this skill is relevant
In your project, after running install.sh, this skill auto-triggers when:
- Starting work on a new project for the first time (onboarding moment)
- User asks which MCPs or skills to install
package.jsondependencies change since last tool-bootstrap.ai-factory/tool-decisions.mdis missing or stale- A consumer who separately runs AIF invokes
/aifand wants the decisions persisted (AIF is optional — see §2)
The 6 rules
Rule 1 — Analyse stack
Read package.json, .mcp.json, and framework config files to enumerate explicit deps, external services, and existing MCP config — those files always exist, so this rule always runs. Reuse the project's stack detector when one is available (AIF /aif maps language/framework/database to matching skills and MCP servers via its skills.sh registry); with no detector present, derive the stack from the same config files you just read.
Rule 2 — Propose tool set
Based on detected stack, surface relevant MCPs and skills. The proposal vocabulary is adopted from AIF's skills.sh (search → install --agent claude → security-scan → generate-if-missing → learn-from-docs) because aligning names avoids cross-tool drift; the concrete npx skills … commands only run where that registry is actually installed, so treat the vocabulary as the shape of your proposal, not as commands to issue blindly. Cap proposals at ≤5 per block; each must carry a load-bearing rationale (which specific dep or service requires this tool?). Prefer context7 for documentation lookup over library-specific MCPs — one meta-MCP subsumes many.
Rule 3 — Confirm bulk
Show the full proposed list in one block with per-item rationale, single Y/n confirmation (matching AIF /aif baseline). Hard rule: never install any MCP or skill without explicit user confirmation. No env/config bypass.
Rule 4 — Token-economy gate
Two-question filter: (a) is the capability codifiable as a skill? if yes → propose skill, not MCP; (b) does loading this MCP at all sessions cost more tokens than usage frequency saves? if negative → drop from proposal. The two questions above ARE the heuristic — they are stated here in full and need no external tool; AIF /aif applies the same classification, so a consumer running it will get consistent answers.
Rule 5 — Incrementality
At each session start, a UserPromptSubmit hook — registered in .claude/settings.json by ./setup, or wired by the getff plugin's own hooks.json when you installed that way — compares sha256(package.json deps section) with the deps-hash: field in .ai-factory/tool-decisions.md. Mismatch → inject one-line WARN: ⚠ package.json deps changed since last tool-bootstrap — run /tool-bootstrapping to re-evaluate.
Rule 6 — Persistence
Accepted and rejected decisions are recorded in .ai-factory/tool-decisions.md (committed, team-shared). Schema → see references/decision-format.md. Never re-propose a rejected tool unless the rejection entry carries an explicit re-evaluation trigger that has since fired. A starter template is provided in templates/tool-decisions.md.template.
§2 Build-vs-reuse note
Rules 1-4 are designed to reuse an external stack detector rather than rebuild one, and AIF /aif is the detector they were aligned against. AIF is NOT bundled by `install.sh` and is not a dependency of anything here — the same statement getff/SKILL.md makes about the tool. It is in fact _less_ wired than context7: the installer never touches AIF at all, whereas on the --full path setup.d/05-mcp.sh does write a context7 entry into your .mcp.json. So §3's «recommended, not auto-installed» is the WEAKER claim of the two — do not read this paragraph as merely repeating it. Where a consumer already runs AIF, rules 1-4 reuse its detection and proposal output; where they do not, rules 1-4 run on the files the installer guarantees are present (package.json, .mcp.json, framework configs) and lose nothing but convenience. Rules 5-6 are ours outright: the deps-hash hook and the .ai-factory/tool-decisions.md persistence file.
§3 context7 — strongly recommended, not auto-installed
context7 MCP is the preferred documentation-lookup tool for rule 2 (researching available MCPs). The installer does not install or guarantee it — there is no hard dependency (consumers may be on any OS / harness / license; see build-first-reuse-default discipline). Instead the bootstrap insists on it: rule 2 surfaces context7 as its first recommended MCP with a load-bearing rationale, and the loop degrades gracefully when it is absent — fall back to WebSearch / DeepWiki for the doc-research step while continuing to recommend installing context7. There is no bootstrap paradox: the recommendation is data the loop emits, not a runtime precondition it requires.
§4 §13.18 cascade note
If AIF deep-alignment closes negative in a future phase of the authoring framework, the optional-reuse seam in rules 1-4 may need re-implementation. Because the seam is optional rather than a dependency, the detector-absent path (§2) is already the fallback; full rewrite cost is bounded by the references/decision-format.md schema stability. Consumer projects are unaffected unless the authoring framework ships a breaking update.
See also
- references/decision-format.md —
.ai-factory/tool-decisions.mdschema - templates/tool-decisions.md.template — starter template to copy to your project