From grace
Выполнение GRACE-плана разработки параллельными волнами под управлением контроллера с выбираемыми профилями безопасности, выдержками из verification-plan, пакетной синхронизацией общих артефактов и локальными ревью.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grace:grace-multiagent-executeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute a GRACE development plan with multiple agents while keeping planning artifacts and shared context consistent.
Execute a GRACE development plan with multiple agents while keeping planning artifacts and shared context consistent.
docs/development-plan.xml must exist with module contracts and implementation orderdocs/knowledge-graph.xml must existdocs/verification-plan.xml should exist with module-local verification commands and gate expectationsdocs/operational-packets.xml exists, use it as the canonical packet and delta reference$grace-plan themselves before dispatching a large wave$grace-verification themselves before dispatching a large waveParallelize module implementation, not architectural truth.
docs/development-plan.xml, docs/knowledge-graph.xml, docs/verification-plan.xml, phase status, and execution queueIf multiple agents edit the same module, the same shared XML file, or the same tightly coupled slice, this is not a multi-agent wave. Use $grace-execute instead.
Default to balanced unless the user asks otherwise.
safebalanced (default)fastEvery module still gets a fresh worker. Do not optimize this workflow by reusing worker sessions across modules.
Read docs/development-plan.xml, docs/knowledge-graph.xml, and docs/verification-plan.xml once per run, then build the controller view of the execution queue.
Parse pending Phase-N and step-N entries
Group steps into parallel-safe waves
A step is parallel-safe only if:
Choose the execution profile: safe, balanced, or fast
For each wave, prepare a compact execution packet for every module containing:
docs/development-plan.xmldocs/knowledge-graph.xmlDEPENDSdocs/verification-plan.xml, including module-local commands, required scenarios, required log markers, and target test filesWhen docs/operational-packets.xml exists, shape packets and delta proposals to the canonical ExecutionPacket, GraphDelta, and VerificationDelta templates.
Present the proposed waves, selected profile, and packet scopes to the user. In safe, wait for approval before each dispatch. In balanced and fast, one up-front approval is enough unless the plan changes.
Before dispatching, define ownership explicitly:
docs/development-plan.xmldocs/knowledge-graph.xmldocs/verification-plan.xmlIf a worker discovers that a missing module or new dependency is required, stop that worker and ask the user to revise the plan before proceeding. Do not allow silent architectural drift.
For each approved wave:
grace(MODULE_ID): <imperative verb phrase describing what was done>
<File|Function|Export> <name>: <what changed and why>
<File|Function|Export> <name>: <what changed and why>
Every commit body must enumerate the concrete files, functions, or exports that changed and explain what was done to each. Generic phrases like "harden X", "add Y evidence", or "enforce Z" are forbidden. Prefer specific descriptions such as "catch ENOENT in loadPivvConfig and throw CONFIG_NOT_FOUND", "add dedup key collision regression for memory-store.reuseRecord", or "guard write-phase transcript against partial flush".
Keep each checkpoint commit focused on a single coherent change so the history reads like a narrative.Shared-artifact rule for workers:
After each worker finishes:
$grace-reviewer audit only when:
After all modules in the wave are approved:
docs/knowledge-graph.xmldocs/verification-plan.xmldocs/development-plan.xml step status once per wave$grace-refresh against the changed modules and touched dependency surfaces$grace-verification themselves before continuingRun verification at the smallest level that still protects correctness.
Do not run full-repository tests and full-repository graph scans after every successful module unless the risk profile requires it.
After each wave, the controller commits only shared artifacts that changed:
docs/knowledge-graph.xml, docs/verification-plan.xml, and docs/development-plan.xml with wave resultsgrace(meta): sync <artifacts updated> after wave N
<module-id>: <what changed in the graph/plan/verification for this module>
<module-id>: <what changed in the graph/plan/verification for this module>
List only the modules whose shared-artifact entries actually changed and describe what was updated (e.g. "M-CONFIG: marked step-1 complete, added public exports to graph"). Omit modules with no delta.Worker implementation commits are already done per module in Step 3. Controller commits are only for shared planning artifacts.
After each wave, report:
=== WAVE COMPLETE ===
Wave: N
Profile: safe / balanced / fast
Modules: M-xxx, M-yyy
Approved: count/count
Graph sync: targeted passed / targeted fixed / escalated to full refresh
Verification: module-local passed / wave checks passed / follow-up required
Remaining waves: count
Before advancing from one wave to the next, the controller measures the completed wave against the thresholds below. The thresholds are explicit because silent "looks good enough" decisions are how multi-agent waves accumulate drift.
| Metric | Advance (green) | Hold (yellow) — investigate before next wave | Rollback (red) |
|---|---|---|---|
Lint pass rate (grace lint) | 100% (exit 0) | warnings only | errors present |
| Module-local tests | 100% pass | ≥1 flaky test | ≥1 hard fail |
| Graph consistency | valid, no orphans | orphan entries or one-sided CrossLinks | cycle introduced OR graph claims imports that do not exist |
| Verification coverage for modules in this wave | ≥80% of wave modules have V-M-xxx entries | 60-79% | <60% |
| Contract drift | none | MODULE_MAP delta without MODULE_CONTRACT update | CONTRACT silently widened beyond packet write scope |
| Worker commits | each module committed with grace(MODULE_ID): message | generic / missing bodies | missing commits or cross-module commits |
Decision model:
$grace-reviewer, open a targeted fix ticket, then re-evaluate$grace-plan or $grace-fix depending on root causeThe threshold table is the only acceptable "are we ready for the next wave?" answer. Do not proceed on vibes.
Before dispatching wave N+1, confirm every box. If any box is unchecked, the next wave is not ready — hold and fix.
$grace-reviewer (scoped-gate at minimum)grace lint --path . exits 0 OR known warnings are triaged and loggeddocs/knowledge-graph.xml valid, includes every module completed in the previous wave, no cyclesdocs/verification-plan.xml has V-M-xxx entries for every new module (≥80% coverage threshold met)docs/development-plan.xml step status updated for every completed stepgrace(MODULE_ID): messagesafe profile: user has explicitly approved the next wave's scopeRecord the checklist status in the wave report so that downstream reviewers can audit the decision.
safe rather than pretending fast is safe| Rationalization | Reality |
|---|---|
| "Waves 1 and 2 went well, skip the threshold check for wave 3" | Threshold check is the only defense against cumulative drift. Never skip. |
| "Verification coverage is only 70%, but the modules are simple" | 70% means three in ten modules ship without a V-M-xxx. Those are the ones that rot in six months. Move to Hold. |
| "Rolling back the wave is too expensive" | Shipping a red wave into the graph is more expensive. Rollback is cheap compared to tracking down ghosts later. |
| "I'll let workers share a shared XML file if they are careful" | They will not. Shared-artifact contention is a controller-only responsibility. |
| "We can reuse a worker across modules to save tokens" | Fresh workers are non-negotiable. Reused sessions leak context and invent architecture. |
| "Skip the pre-wave checklist, we already know it's fine" | If you know it is fine you can tick it in 30 seconds. If you cannot tick it, it is not fine. |
fast profile when module-local verification is missing.$grace-reviewer on wave N.Use $grace-execute for sequential execution when dependency risk is higher than the parallelism gain.
Before marking a wave complete, confirm:
grace lint --path . exit code recorded (verification: 0 or triaged warnings)grace(MODULE_ID): message (verification: git log --oneline shows them)grace(meta): message (verification: last commit on meta branch)npx claudepluginhub baho73/grace-marketplace-2 --plugin graceExecutes GRACE development plans using controller-managed multi-agent parallel waves with selectable safety profiles, verification excerpts, batched artifact sync, and scoped reviews. For parallel module implementation after planning.
Defines a 4-phase execution loop (IMPLEMENT, VALIDATE, ADVERSARIAL REVIEW, COMMIT) for orchestrating complex multi-step work units with written specs and quality gates.
Executes implementation plans by dispatching parallel task-implementer subagents with worktree isolation. Use when running multi-phase plans with independent tasks.