ワンクリックで
bootstrap
Use when .hxsk/.bootstrap-version is missing (fresh install) or exists (verify/update) to initialize HExoskeleton.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when .hxsk/.bootstrap-version is missing (fresh install) or exists (verify/update) to initialize HExoskeleton.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when Ground Truth alignment finds memory contamination and the user explicitly requests scoped cleanup with /cleanse.
Use when registering, reviewing, merging, or rebuilding HXSK glossary term definitions after glossary-detect suggests a candidate or the user invokes /define.
Use when staged changes exist requiring qlty checks, logical split detection, or HXSK phase-scoped conventional commit creation.
Use when validating code for circular imports, layer violations, or design doc logic errors before merging architecture-level changes.
Use when shell scripts need linting/formatting before execution or commit to ensure code quality.
Use when analyzing an existing codebase to generate ARCHITECTURE.md and STACK.md, or when mapping project structure, dependencies, patterns, integrations, and technical debt before planning.
| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob"] |
| description | Use when .hxsk/.bootstrap-version is missing (fresh install) or exists (verify/update) to initialize HExoskeleton. |
| name | bootstrap |
| trigger | 프로젝트 초기화, 프로젝트 셋업, 처음 설정, 업데이트, 갱신, project setup, initialize project, after cloning, update, refresh, bootstrap 실행, bootstrap.sh, 환경 설정, 시스템 요구사항 확인, prerequisite check, fresh install, verify mode, update mode, 멱등성 실행, idempotent setup, .env 생성, 메모리 초기화, memory init, 프로젝트 준비, project ready, converge, 상태 감지, 상태 확인, 설치 모드 감지, bootstrap 실패, bootstrap fail, exit code 1, system prerequisite missing, 필수 요구사항 누락, codebase mapper 실행, codebase analysis, .hxsk 구조 확인, .hxsk directory check, 메모리 디렉토리 생성, memory directory create, 상태 보고서 확인, status report, result passed, project ready 확인, fresh mode 실행, verify mode 실행, update mode 실행, idempotent convergence, 수렴 엔진 실행, 환경 변수 복사, env example copy, 메모리 저장 실패, memory store fail, 경고 처리, warn handling, 에러 보고, error reporting, 초기 설치 모드, 초기화 모드, 프로젝트 컨텍스트 초기화, project context init, 스택 분석, stack analysis, 아키텍처 분석, architecture analysis |
| version | 5.1.0 |
bash .hxsk/scripts/bootstrap.sh로 시작 (모드 자동 감지)[FAIL] 또는 exit code 1 발생 시RESULT: PASSED 확인 시 프로젝트 READY.hxsk/.bootstrap-version 파일 생성 여부로 상태 검증test -f .hxsk/.bootstrap-version && echo "EXISTS" || echo "FRESH"
bash .hxsk/scripts/bootstrap.sh 실행. 스크립트가 자동으로 verify/update 판별.
[OK] → 완료[NEW]/[UPDATED] 있음 → Step 6 (메모리 저장) + Step 7 (보고) 실행Run the idempotent convergence engine:
bash .hxsk/scripts/bootstrap.sh
bootstrap.sh v5.1.0 출력 태그:
[NEW] — 새로 생성된 컴포넌트 (↳ 관련: 2-hop 컨텍스트)[UPDATED] — 변경 감지된 컴포넌트 (↳ 관련: 2-hop 컨텍스트)[OK] — 변경 없음, 정상[PASS] — 시스템 요구사항 충족[FAIL] — 필수 요구사항 미충족[WARN] — 선택 요구사항 미충족[SKIP] — 해당 없음If exit code 1: STOP. Display the failing checks and provide installation instructions.
If exit code 0: Continue. .hxsk/.bootstrap-version 자동 생성/갱신됨.
Copy .env.example to .env if .env does not already exist:
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env from .env.example"
else
echo ".env already exists"
fi
bootstrap.sh가 이미 이 작업을 수행합니다. Step 1에서
[NEW] .env가 출력되었으면 건너뛰세요.
Verify .hxsk/memories/ 디렉토리 구조:
ls .hxsk/memories/ | wc -l # 14 directories + _schema expected
If missing: Create directories:
mkdir -p .hxsk/memories/{architecture-decision,root-cause,debug-eliminated,debug-blocked,health-event,session-handoff,execution-summary,deviation,pattern-discovery,bootstrap,session-summary,session-snapshot,security-finding,general,_schema}
bootstrap.sh가 이미 이 작업을 수행합니다. Step 1에서
[NEW] .hxsk/memories/가 출력되었으면 건너뛰세요.
Verify context management structure:
.hxsk/
├── reports/ # Analysis reports (REPORT-*.md)
├── research/ # Research documents (RESEARCH-*.md)
├── archive/ # Monthly archives
├── issues/archive/ # Completed issue archive
├── PATTERNS.md # Core patterns (2KB limit)
└── context-config.yaml # Cleanup rules
bootstrap.sh가 자동 생성합니다.
Delegate to the codebase-mapper skill to analyze the project:
.hxsk/ARCHITECTURE.md.hxsk/STACK.mdIf codebase-mapper fails: Mark FAIL. Continue to Step 6.
Store the bootstrap record:
bash .hxsk/hooks/md-store-memory.sh \
"Project Bootstrap" \
"Bootstrap completed. System prerequisites verified. Memory initialized." \
"bootstrap,init,setup" \
"bootstrap" \
"bootstrap,init,setup,project" \
"Initial project bootstrap completed successfully"
If memory store fails: Mark WARN. Continue to Step 7.
bootstrap.sh가 이미 구조화된 보고서를 출력합니다:
================================================================
BOOTSTRAP v5.1.0
MODE: fresh | verify | update (vX.X.X → v5.1.0)
================================================================
...
MODE: {mode} | PASS: N FAIL: N WARN: N SKIP: N NEW: N UPDATED: N
RESULT: ALL REQUIRED CHECKS PASSED / FAILED
================================================================
RESULT = PASSED → 프로젝트 READY. RESULT = FAILED → NEEDS ATTENTION.
| Error | Action |
|---|---|
| System prerequisite missing | STOP at Step 1. Print install commands |
| Memory directory missing | Auto-create (bootstrap.sh handles) |
| Schema files missing | Copy from templates or create minimal versions |
| codebase-mapper fails | FAIL the step, continue |
| Memory store fails | WARN the step, continue |
.hxsk/scripts/bootstrap.sh: Idempotent convergence engine (fresh/verify/update 3-mode).hxsk/scripts/detect-language.sh: Language, package manager detection functions (optional)