소스 정보
- 저장소
- jmagly/aiwg
- 최근 소스 활동
- 2026년 7월 20일 16:54
- 감지된 SKILL.md 언어
- 영어
- 스타
- 178
- 포크
- 26
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jmagly/aiwg --skill migrate-hook명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| namespace | aiwg |
| name | migrate-hook |
| platforms | ["all"] |
| description | Migrate existing CLAUDE.md full-injection to the AIWG.md hook file architecture |
| commandHint | {"argumentHint":"[--provider <name>] [--all] [--dry-run] [--no-backup] [--force]","allowedTools":"Read, Write, Edit, Bash, Glob","model":"haiku","category":"hook-management","modelRole":"efficiency","modelTier":"economy"} |
You are an AIWG Migration Specialist responsible for safely migrating existing projects from the old full-injection approach to the new AIWG.md hook file architecture.
Detect AIWG injected content in platform context files, extract it to a dedicated hook file, and replace the extracted block with a single directive line. All user/team content is preserved verbatim.
| Flag | Description |
|---|---|
--provider <name> | Migrate only this provider: claude, warp, copilot, cursor, factory, windsurf, opencode, codex |
--all | Migrate all detected providers (default) |
--dry-run | Show exactly what would change without writing any files |
--no-backup | Skip creating .bak files (use in CI environments) |
--force | Skip confirmation prompt |
AIWG injected content is identified by any of these markers (highest → lowest confidence):
<!-- BEGIN AIWG SDLC Framework -->
...488 lines of AIWG content...
<!-- END AIWG SDLC Framework -->
<!-- BEGIN AIWG -->
...content...
<!-- END AIWG -->
Presence of known AIWG-specific section headers:
## AIWG SDLC Framework## Core Platform Orchestrator Role## Natural Language Command Translation$AIWG_ROOT referenceIsolated references like aiwg use sdlc or command listings without structural markers. Flag to user but do not auto-migrate.
Migrates all detected provider files:
| Provider | Context File | Hook File Created |
|---|---|---|
| Claude Code | CLAUDE.md | AIWG.md |
| Warp Terminal | WARP.md | AIWG-warp.md |
| Windsurf | AGENTS.md | AIWG-windsurf.md |
| GitHub Copilot | .github/copilot-instructions.md | AIWG-copilot.md |
| Cursor | .cursorrules | AIWG-cursor.md |
| Factory AI | AGENTS.md | AIWG-factory.md |
| OpenCode | .opencode/context.md | AIWG-opencode.md |
Scan each candidate context file for AIWG injection markers:
# Check for explicit markers
grep -n "BEGIN AIWG" CLAUDE.md
grep -n "AIWG SDLC Framework" CLAUDE.md
# Check for AIWG structural content
grep -n "AIWG_ROOT" CLAUDE.md | head -5
grep -n "Core Platform Orchestrator Role" CLAUDE.md
Report findings:
Detection Results:
CLAUDE.md (522 lines)
✓ AIWG injection detected: lines 34–522
Method: ## AIWG SDLC Framework header + $AIWG_ROOT references
Confidence: HIGH
User content: lines 1–33 (preserved)
WARP.md: not found (skipping)
AGENTS.md: not found (skipping)
Migration Plan for CLAUDE.md:
1. Extract AIWG content (lines 34–522) → AIWG.md
2. Replace extracted content with single @AIWG.md directive
3. Preserve user content (lines 1–33) exactly
4. Create backup: CLAUDE.md.bak
Result:
CLAUDE.md: 522 lines → ~36 lines (user content + @AIWG.md)
AIWG.md: 489 lines (created)
CLAUDE.md.bak: 522 lines (original preserved)
Proceed with migration? [y/N] _
If --force, skip confirmation and proceed.
For each detected file:
--no-backup): copy to {filename}.bak{hookfile}@{hookfile} directiveHook file header prepended to extracted content:
# AIWG Framework Context
<!-- Migrated from CLAUDE.md by aiwg migrate-hook — do not edit manually -->
<!-- Regenerate: aiwg hook-regenerate -->
<!-- Disable: aiwg hook-disable -->
Migration Complete
CLAUDE.md:
Before: 522 lines
After: 36 lines (user content preserved + @AIWG.md directive added)
Backup: CLAUDE.md.bak
AIWG.md: created (489 lines)
Summary:
✓ 1 file migrated
✓ Backups created
✓ User content preserved
To verify the migration:
aiwg hook-status
cat CLAUDE.md
To revert if needed:
cp CLAUDE.md.bak CLAUDE.md
rm AIWG.md
[dry-run] CLAUDE.md migration preview:
Lines to preserve (1–33):
─────────────────────────
# CLAUDE.md
...user content...
Directive to add:
─────────────────────────
@AIWG.md
Lines to extract to AIWG.md (34–522):
─────────────────────────
# AIWG SDLC Framework
...488 lines of AIWG content...
[dry-run] No files written. Remove --dry-run to apply.
If AIWG content detection is ambiguous (medium or low confidence):
Warning: AIWG content in CLAUDE.md could not be reliably detected.
Heuristics found:
Line 45: "aiwg use sdlc"
Line 120: "$AIWG_ROOT" reference
But no clear start/end boundary was identified.
Options:
1. Add explicit markers manually:
<!-- BEGIN AIWG -->
[select AIWG content here]
<!-- END AIWG -->
Then re-run: aiwg migrate-hook
2. Use --full to regenerate from scratch:
aiwg hook-regenerate --provider claude
Then manually edit CLAUDE.md to add @AIWG.md
3. Skip this file: aiwg migrate-hook --provider warp
.bak unless --no-backup--dry-run is safe — shows exactly what would happen without writingdiff CLAUDE.md.bak CLAUDE.md shows exactly what changedAfter running migrate-hook:
aiwg hook-status shows enabled for migrated providerscat CLAUDE.md confirms user content is intact + @AIWG.md addedwc -l AIWG.md shows expected line count.bak files once satisfied: rm CLAUDE.md.bak# Migrate Claude Code (with confirmation prompt)
/migrate-hook --provider claude
# Migrate all detected providers
/migrate-hook --all
# Preview without writing
/migrate-hook --dry-run
# Migrate without backup (CI environments)
/migrate-hook --no-backup --force
# Migrate specific provider, force no prompt
/migrate-hook --provider claude --force
/hook-status — Verify migration succeeded/hook-regenerate — Regenerate AIWG.md from manifests (use instead of migrate-hook for fresh projects)/hook-enable / /hook-disable — Toggle hook on/off