本文へ移動
cccskills
無料GitHub で公開

bootstrap-agents

Utility — fill the surface stack map in tech-stack.md and provision skills using intelligent resolution. Called by pipeline commands when tech stack info changes.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md10.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Bootstrap Agents

This is a utility command, not an entry point. It gets called by other pipeline commands (like /create-prd, /write-be-spec, /write-fe-spec, /implement-slice) whenever they make tech stack decisions or introduce new dependencies.

Bootstrap does two things:

  1. Fill the surface stack map in .claude/instructions/tech-stack.md with stack decisions
  2. Provision skills from skill-library/ using the 4-tier resolution chain

Input: Surface-keyed stack values + optional global values Output: Filled map cells + newly installed skills in .claude/skills/


1. Receive values

The calling command provides values in two categories:

Surface-Keyed Values (fill the Per-Surface Skills table)

Each value is tagged with a surface. Format: SURFACE=<surface> KEY=<value>

Example invocation from /create-prd-stack:

SURFACE=shared  LANGUAGES=typescript  BE_FRAMEWORKS=hono  DATABASES=supabase,surrealdb  ORMS=drizzle
SURFACE=web     LANGUAGES=typescript  FE_FRAMEWORKS=astro  FE_DESIGN=tailwind,vanilla-css  STATE_MGMT=nanostores  DATABASES=supabase,surrealdb  UNIT_TESTS=vitest  E2E_TESTS=playwright
SURFACE=desktop LANGUAGES=typescript,rust  FE_FRAMEWORKS=—  BE_FRAMEWORKS=tauri  DATABASES=supabase,surrealdb,pglite,surrealdb-embedded  UNIT_TESTS=vitest,cargo-test

Per-surface column keys:

Column KeyMap ColumnExample
LANGUAGESLanguagestypescript, rust
BE_FRAMEWORKSBE Frameworkshono, tauri
FE_FRAMEWORKSFE Frameworksastro, react-native
FE_DESIGNFE Designtailwind, vanilla-css
ORMSORMsdrizzle
STATE_MGMTState Mgmtnanostores, zustand
DATABASESDatabasessupabase, surrealdb, pglite
UNIT_TESTSUnit Testsvitest, cargo-test
E2E_TESTSE2E Testsplaywright, detox
TEST_CMDTest Cmdnpm test
VALIDATION_CMDValidation Cmdnpm run validate
LINT_CMDLint Cmdnpm run lint
BUILD_CMDBuild Cmdnpm run build
DEV_CMDDev Cmdnpm run dev
PACKAGE_MGRPackage Mgrnpm

Cross-Cutting Values (fill the Cross-Cutting Skills table)

These are project-wide, not per-surface:

KeyMap CategoryExample
AUTHAuthclerk, supabase-auth
CI_CDCI/CDgithub-actions
HOSTINGHostingvercel, tauri-updater
SECURITYSecurityowasp-web, desktop-sandboxing
API_DESIGNAPI Designapi-design-principles
ACCESSIBILITYAccessibilityaccessibility
CONTRACT_LIBRARYContract Libraryzod

Global Values (fill Global Settings in tech-stack.md + root configs)

KeyExample
PROJECT_NAMERepairYour.Tech
DESCRIPTIONOne-line description
TECH_STACK_SUMMARYSupabase + SurrealDB + Astro + Tauri
SURFACESweb, desktop, mobile
ARCHITECTURE_DOC.memory/wiki/specs/2026-03-13-architecture-design.md

Structural Values (fill instruction templates — unchanged from v2)

KeyExample
FRAMEWORK_PATTERNSFramework-specific patterns block
PROJECT_STRUCTUREDirectory layout block
ARCHITECTURE_TABLEConcern/Location/Runtime table rows

Infrastructure Values (fill instruction templates — unchanged from v2)

KeyExample
SSH_HOSTmy-vps
DB_PORT19000
CREDENTIAL_TOOLagent-auth ssh-add
SECRET_MANAGEMENTwrangler secret
DEPLOY_COMMANDwrangler deploy

If any values are missing, leave those cells empty — they'll be filled on a future invocation.


2. Fill the surface stack map

Open .claude/instructions/tech-stack.md and update:

2a. Per-Surface Skills table

For each SURFACE=<name> received:

  1. If a row for <name> exists → update the cells for the provided column keys only (don't overwrite cells that already have values unless explicitly re-provided)
  2. If no row exists → add a new row with the provided values, — for unprovided columns

2b. Cross-Cutting Skills table

For each cross-cutting key received, update the corresponding category row. If the value is additive (e.g., adding a second database), append to the comma-separated list rather than overwriting. If the value is already present, skip (idempotent).

2c. Global Settings

Fill the Global Settings table with any provided global values.


3. Fill root agent config files

Replace in both AGENTS.md and GEMINI.md:

  • {{PROJECT_NAME}}
  • {{DESCRIPTION}}
  • {{TECH_STACK_SUMMARY}}
  • {{VALIDATION_COMMAND}} — use the primary surface's validation command from the map (first non-shared row, or shared if only shared exists)
  • {{ARCHITECTURE_DOC}}
  • {{CONTRACT_LIBRARY}}
  • {{INSTALLED_SKILLS}} (if provided; otherwise leave for step 8)

Note: Both files serve as root agent config. Both must be kept in sync — any value filled in one must be filled in the other.


4. Fill instruction templates

.claude/instructions/commands.md

Write per-surface command sections. For each surface in the map, create a section with its commands (Test Cmd, Validation Cmd, Lint Cmd, Build Cmd, Dev Cmd, Package Mgr).

.claude/instructions/workflow.md

Fill {{VALIDATION_COMMAND}} with the primary surface's validation command.

.claude/instructions/patterns.md

Replace {{FRAMEWORK_PATTERNS}} if provided.

.claude/instructions/structure.md

Replace {{PROJECT_STRUCTURE}}, {{ARCHITECTURE_TABLE}} if provided.


5. Fill operational skill and rule templates

Scan .claude/skills/*/SKILL.md and .claude/rules/*.md for {{PLACEHOLDER}} values and fill any that match the provided values. Currently applicable:

  • {{VALIDATION_COMMAND}} — in fix-bug, main-workflow, deploy, refactor
  • {{PACKAGE_MANAGER}} — in refactor, security-audit
  • {{CONTRACT_LIBRARY}} — in tdd-contract-first.md
  • Other command/infra placeholders as documented in v2

6. Read skill library manifest

Read skill-library/MANIFEST.md to load the trigger tables.

If skill-library/MANIFEST.md does not exist, skip steps 7-8 and go to step 9.


7. Provision skills — 4-Tier Resolution Chain

For each skill name referenced in ANY cell of the surface stack map, resolve it using this chain:

Tier 1: Exact Match

Check .claude/skill-library/{name}/ (or .claude/skills/{name}/ if already installed).

  • Found in library AND not yet installed → copy to .claude/skills/{name}/, fill any {{PLACEHOLDER}}s in the copied SKILL.md
  • Already installed → skip (idempotent)
  • Not found → proceed to Tier 2

Tier 2: Partial Match + Adequacy Check

Search .claude/skill-library/ and .claude/skills/ for skills whose name contains the base term. E.g., for surrealdb-embedded, check if surrealdb exists.

  • Partial match found → Read its SKILL.md. Assess: does it cover the needed variant? Check for keywords related to the specific need (e.g., "embedded", "WASM", "Rust-native" for surrealdb-embedded).
    • Adequate — the existing skill covers the variant → use it. Note in the report: "{name}" resolved by existing "{partial}" skill (covers {variant}).
    • Falls short — the skill doesn't address the specific variant → proceed to Tier 3
  • No partial match → proceed to Tier 3

Tier 3: External Discovery

Read .claude/skills/find-skills/SKILL.md and invoke its discovery methodology to search for the skill externally.

  • Found → install → fill map cell with resolved name
  • Not found → proceed to Tier 4

Tier 4: Human Escalation

Mark the map cell with ⚠️ {name} [not found]. Include in the report:

"Skill {name} was not found in the skill library, via partial match, or externally. Options:

  1. Create it with /skill-creator
  2. Provide an alternative skill name
  3. Mark as not needed (change cell to —)"

Resolution reporting

After resolving all skills, report:

  • Which skills were installed (Tier 1)
  • Which skills were resolved by adequacy check (Tier 2) — include justification
  • Which skills were discovered externally (Tier 3)
  • Which skills need human attention (Tier 4) — include the ⚠️ cells

8. Update installed skills list

After provisioning, build a markdown list of all installed skills and update {{INSTALLED_SKILLS}} in tech-stack.md:

### Default Skills
- fix-bug — TDD bug fix workflow
- refactor — Safe refactoring with test verification
- ...

### Stack Skills (Per-Surface)
- [skill-name] — [description] (surface: [surface], column: [column])
- ...

### Stack Skills (Cross-Cutting)
- [skill-name] — [description] (category: [category])
- ...

### Surface Skills
- [skill-name] — [description] (installed for [surface] surface)
- ...

9. Report results

Present the results to the calling command (not directly to the user — the calling command handles user communication):

  • Which map cells were filled (and their values)
  • Which map cells remain empty
  • Skill resolution report (from step 7)
  • Which skills were already installed and skipped
  • Any ⚠️ cells requiring user attention
  • Any errors (missing files, missing library paths)

Idempotency

Bootstrap is safe to call multiple times:

  • Already-filled map cells: Cells with values are NOT overwritten unless the calling command explicitly re-provides a value for that surface + column
  • Already-installed skills: Skills that already exist in .claude/skills/ are not re-copied from the library
  • New surface rows: New surfaces trigger new row creation without affecting existing rows
  • Appending values: Cross-cutting skills and accumulated columns append to existing comma-separated lists without duplicating
  • Partial invocation: Bootstrap can be called with just one surface or one key — it only fills what's provided

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

RepairYourTech のスキルをすべて見る

このスキルの問題を報告する