원클릭으로
refacil-update
Detect and apply pending migrations of the SDD-AI methodology to the current project
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Detect and apply pending migrations of the SDD-AI methodology to the current project
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guided complete flow to investigate and fix bugs — delegates investigation and fix to the refacil-debugger sub-agent in two passes separated by user confirmation
Internal reference — SDD-AI prerequisites shared by all other refacil skills (do not invoke manually)
Validate that the implementation meets the specs — builds a briefing with testCommand and CA/CR criteria, delegates to the refacil-validator sub-agent for the report, and handles corrections with user approval
Implement the tasks of a proposed change — verifies artifacts and working branch, builds a structured briefing, and delegates to the refacil-implementer sub-agent to execute the implementation in isolated context
Archive a completed change — move artifacts to archive and sync specs
Run the SDD implementation cycle autonomously after /refacil:propose was approved by the human — chains apply → test → verify → review → archive → up-code in a single invocation, and notifies the user via WhatsApp through Kapso when finished (success or failure). Use when the user says "autopilot", "ejecuta el resto del flujo", "termina solo", "modo autónomo", or indicates they will step away from the computer.
| name | refacil:update |
| description | Detect and apply pending migrations of the SDD-AI methodology to the current project |
| user-invocable | true |
Detects the current repo state and applies only what is pending. Does not repeat full setup (hooks/skills install, /refacil:setup steps).
The notify-update hook uses the same engine as this command; do not manually re-evaluate the repo to decide if there is work to do.
Run refacil-sdd-ai codegraph status --json and parse the output.
If mode is disabled or null: skip this step entirely.
If mode is enabled or per-repo:
CLI not installed (installed: false): inform the user and ask for confirmation before running anything:
CodeGraph is enabled but the CLI (@colbymchenry/codegraph) is not installed.
Installing it will run: npm install -g @colbymchenry/codegraph (~20 s)
Proceed? (yes / no)
refacil-sdd-ai codegraph setup and show its full output to the user. This command installs the package, then builds the index synchronously — it blocks until .codegraph/ is fully ready. Wait for it to complete before continuing. After it finishes, inform:
CodeGraph: installed and index complete. .codegraph/ is ready.
Future /refacil:explore, /refacil:propose, and /refacil:bug sessions will use it automatically.
npm install -g @colbymchenry/codegraph, then run /refacil:update again."CLI installed but repo not indexed (installed: true, initialized: false): run refacil-sdd-ai codegraph setup and show its full output. This command blocks until the index is fully built — wait for it to finish before continuing. Inform:
CodeGraph: index complete. .codegraph/ is ready.
CLI installed and repo indexed (installed: true, initialized: true): skip — nothing to do.
In the repo root (where AGENTS.md is), run with Bash:
refacil-sdd-ai migration-pending
Optional for stable parsing: refacil-sdd-ai migration-pending --json → object { "pending": bool, "reasons": string[] }.
Do not substitute this step with manual tree inspection unless the command fails (environment error); in that case document the error and ask to retry.
The implementation lives in lib/methodology-migration-pending.js of the package; the table summarizes what it detects:
| # | Condition (summary) | Migration in Step 3 |
|---|---|---|
| 1 | AGENTS.md exists and .agents/ folder does not | Restructure into .agents/ + rewrite as index |
| 2 | CLAUDE.md has more than 5 lines or does not point to AGENTS.md | Replace with minimal index |
| 3 | .cursorrules has more than 5 lines or does not point to AGENTS.md | Replace with minimal index |
| 4 | CodeGraph CLI not installed and mode is enabled/per-repo | Step 0.5: refacil-sdd-ai codegraph setup |
Show the user the same lines printed by migration-pending (or the reasons array from the JSON) and ask for confirmation before applying any changes.
Run only the migrations that correspond to the detected reasons (see reference table above).
.agents/ + indexAGENTS.md..agents/:
compact-guidance block: between <!-- refacil-sdd-ai:compact-guidance:start --> and <!-- refacil-sdd-ai:compact-guidance:end -->testing-policy block in .agents/testing.md: between <!-- refacil-sdd-ai:testing-policy:start --> and <!-- refacil-sdd-ai:testing-policy:end --> (managed by the CLI on SessionStart — do not duplicate that policy prose elsewhere)<!-- refacil-bus:presentation:start --> and <!-- refacil-bus:presentation:end -->## SDD-AI Methodology: table of refacil:* commands — always stays in AGENTS.md. If it exists, overwrite it with the updated table (see Step 6.2 of refacil:setup); if not, create it..agents/ folder..agents/summary.md is always mandatory — project description, mini stack table, essential scripts, critical rules condensed. If the original AGENTS.md does not have a clear summary, synthesize it from the available content..agents/architecture.md — modules, services, main flows, key patterns..agents/stack.md — dependencies, environment variables, databases, integrations..agents/testing.md — testing strategy, commands, conventions, fixtures..agents/commands.md — development commands, aliases, CI/CD scripts..agents/services.md; a simple library may combine testing and stack in one file. Use the same criterion as /refacil:setup.AGENTS.md as a pure index in this order:
.agents/: area name + relative link + when to read it (one sentence).## SDD-AI Methodology with the updated refacil:* command table (see Step 6.2 of refacil:setup for the exact content)..agents/testing.md are re-injected automatically at the next SessionStart (check-update) or on refacil-sdd-ai update / init.Overwrite with exactly this content:
CLAUDE.md:
# CLAUDE.md
Full project context: see `AGENTS.md`.
If it does not exist, run `/refacil:setup`.
.cursorrules:
# Cursor Rules
Full project context: see `AGENTS.md`.
If it does not exist, run `/refacil:setup`.
After migrating, delete the flag in the repo root if it still exists:
rm -f .refacil-pending-update
If there were no changes (Step 1 gave exit 0), the obsolete flag usually clears itself at the next check-update (SessionStart) or when running refacil-sdd-ai migration-pending with exit 0; the manual rm is only needed if you applied migrations manually or there is a leftover.
Report which files were created or modified. Mention that compact-guidance (in AGENTS.md) and the testing-policy block (in .agents/testing.md when .agents/ exists) sync automatically at the next SessionStart or on refacil-sdd-ai update.
refacil-sdd-ai migration-pending (same criterion as check-update / notify-update).refacil-sdd-ai init, package hooks installation, or /refacil:setup-style scaffolding.methodology-migration-pending.js); this skill updates the reference table and application steps when the contract changes.