From supervibe
Use WHEN stack changed (new modules, renamed files, removed files, new major dependencies) to sync skill bundles, rules, host instructions, and project artifacts with new state. Triggers: "sync проектные навыки", "подтяни upstream", "обнови Supervibe под новый стек", 'adapt'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/supervibe:adaptThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Adapt owns the adapt workflow for the exec phase. It reads the triggering request, source artifacts, local runtime state, and required command or receipt proof, then emits `agent-output` with a concrete decision and handoff. Use it to turn adapt input into a bounded action; return BLOCKED when the source artifact, owner approval, validator output, or runtime receipt is missing.
Adapt owns the adapt workflow for the exec phase. It reads the triggering request, source artifacts, local runtime state, and required command or receipt proof, then emits agent-output with a concrete decision and handoff. Use it to turn adapt input into a bounded action; return BLOCKED when the source artifact, owner approval, validator output, or runtime receipt is missing.
src/modules/ or src/commands//supervibe-adaptLifecycle: scan -> real-dry-run -> agent-plan -> review -> approved -> applied -> artifact/app/deploy verification. Persist state in .supervibe/memory/adapt/state.json before every lifecycle transition. State must use layered fields: artifactVerified, agentRuntimeVerified, appVerified, and deployVerified.
Lifecycle gates are split by phase: --dry-run is read-only and may run
without host-agent telemetry; --apply requires explicit user approval for
writes and zero-conflict approved artifact sync does not require host-agent
telemetry; optional --verify-agents is an advanced runtime smoke diagnostic
and is not part of Adapt completion.
Every interactive step asks one question at a time using Step N/M or Step N/M. Each question lists the recommended/default option first, gives a one-line tradeoff summary for every option, allows a free-form answer, and names the stop condition.
Default behavior: produce a dry-run adaptation plan and do not edit artifacts until approval. Free-form path: the user can name exact agents, rules, skills, paths, or stack changes to include or exclude.
After every material delivery, ask one explicit next-step question about the adaptation plan. Use buildPostDeliveryQuestion({ intent: "adaptation_delivery" }, { locale }) when tooling is available. Visible labels must be language-matched and domain-specific; keep internal action ids only in saved state. Never show both English and Russian in the same visible option.
English visible labels:
Russian visible labels are supplied by
<resolved-supervibe-plugin-root>/scripts/lib/supervibe-dialogue-contract.mjs to keep this skill contract
ASCII-safe for validators. The ru locale must map to the same
adaptation-specific actions above and must not fall back to generic
apply/revise wording.
Follow <resolved-supervibe-plugin-root>/docs/references/skill-expert-operating-standard.md: start from source of truth, preserve context evidence, apply scope safety, use real producers with runtime evidence for durable delegated outputs, verify before completion claims, and keep confidence below gate when evidence is partial.
Non-trivial durable work is swarm-first by default. The user does not need to request agents: select the smallest relevant skill-bound workers, reviewers, producers, validators, verifiers, or specialists by default. Manager/supervisor control owns graph authority, dependency order, bounded fan-out, synthesis, termination, close sweep, and hard-stop behavior. Dispatch only ready bounded work with selected skill identity, host invocation proof, runtime receipts, receipt proof, and scoped verification evidence. If work remains local because it is trivial/read-only or host dispatch is unavailable, record the exception and do not claim independent proof.
Follow <resolved-supervibe-plugin-root>/docs/references/swarm-first-skill-contract.md. Named durable worker, reviewer, producer, validator, verifier, or specialist work requires real specialist dispatch through the host/runtime path with selected skill ids, resolved SKILL.md paths, runtime receipts or receipt-ready host invocation evidence, and scoped verification evidence. Inline or controller-authored work is diagnostic or trivial-only; it cannot satisfy durable proof, reviewer proof, producer proof, validator proof, verification proof, task closure, or graph task closure.
registry.yaml for current stategit diff <verified-against>..HEAD --stat to find changes. If .git
is absent, do not fail: compare against
.supervibe/memory/adapt/file-manifest.json; after approved apply, write a
fresh snapshot there.node <resolved-supervibe-plugin-root>/scripts/supervibe-status.mjs --capabilities so proposed agent, rule and skill updates are grounded in the capability registry..supervibe/ wins over nested app host files, then workspace manifest/root .git. Resolve the active host adapter before reading or planning writes; use the same precedence as genesis: explicit override -> active runtime/current chat -> filesystem markers..supervibe/memory/genesis/state.json when present. Genesis
decisions such as appGenerated, appVerified, appChoice=next-app, and
ignoredStackTags=["vite"] are source-of-truth for Adapt stack drift./supervibe-adapt, run node <resolved-supervibe-plugin-root>/scripts/supervibe-adapt.mjs --dry-run --summary-json --changed-only before <resolved-supervibe-plugin-root>/scripts/command-agent-plan.mjs, then pass the actual counts with --dry-run, --adds, --updates, --project-only, --conflicts, and --memory-writes.Stack drift is only tooling or a minor dependency inside the selected app
-> Update affected context references and verification notes.
Stack drift indicates a new app, framework, service, or runtime boundary
-> Suggest supervibe:genesis or a component plan before changing agents broadly.
Host instruction file or managed block changed
-> Use the context migrator and preserve user-owned sections.
Deleted or renamed files are referenced by agents, skills, rules, or commands
-> Update the artifact or flag the stale reference with grep evidence.
Adapt apply would write project artifacts
-> Require dry-run evidence and explicit approval before mutation.
Provider runtime config drift is detected
-> Modify only the selected user provider home with add-missing-only semantics; project runtime config files are detection-only and must not be created, modified, or deleted.
| Scenario | Evidence | Action | Stop condition |
|---|---|---|---|
| Plugin or managed artifact drift | supervibe-adapt --dry-run --summary-json --changed-only counts | Propose add/update/defer plan | Conflicts or missing approval |
| Host instruction drift | context migrator dry-run plus managed-block diff | Preserve user-owned sections and update managed block only | User-owned content would be overwritten |
| Stack or deploy drift | manifests, Genesis state, capability registry | Update context or route to Genesis/component plan | Service evidence is missing or unsupported |
Operational runbook before any mutation:
Read registry, host adapter state, genesis state, capability registry, and the dry-run summary for the exact project root.
Run stale-reference and stack-drift checks; record changed files, add/update/remove counts, conflicts, project-only writes, and memory-write candidates.
Write only the approved adapt plan or approved artifact updates. If
approval is missing, emit BLOCKED with the dry-run evidence path and stop.
Verify with the same scoped dry-run/check command after every repair.
If verification fails, repair the smallest changed slice, rerun the command,
and keep applied=false until the rerun passes.
Diff analysis — what changed since last verified-against commit
Stale references — grep deleted/renamed paths in artifacts; update or flag
New modules — determine which agent should cover; update Project Context
New deps:
supervibe:genesis for new componentDeleted files — remove references from artifacts
Host context migration — if the active host instruction file, AGENTS.md, GEMINI.md, .cursor/rules or opencode.json changes, use <resolved-supervibe-plugin-root>/scripts/lib/supervibe-context-migrator.mjs dry-run planning and never overwrite user-owned sections.
Capability registry — propose affected agents, rules and skills together, including registry evidence and confidence for each linked artifact.
Related-rule closure - when installed rules reference upstream related-rules that are missing from the selected profile, surface them as explicit ADD candidates with mandatory: true/false instead of leaving validator-only failures.
Version marker — after approved writes, update .supervibe/memory/.supervibe-version so future sessions know the project artifacts match the plugin version.
User-requested project fit - when the user asks to adapt rules or agents to the project, compare stack tags, selected install profile, existing host artifacts, and capability registry links; then produce an add/keep/defer plan with reasons.
Bump versions + update last-verified + verified-against
Run supervibe:audit to verify clean state
For deploy scope, keep add-ons separate from base scaffold. --scope deploy --target docker|dokploy may create compose/Docker/env/docs artifacts, but must not auto-migrate or claim deployVerified without a real deploy health check.
Additional drift policy:
vite inside an existing Genesis next-app is an ambiguity, not an
automatic stack switch. Classify it as accidental, tooling-only, or a
separate Vite SPA.next inside an existing vite-spa is migration/new-app evidence and needs
a Genesis/component plan.npm audit fix --force when it downgrades a
framework major/minor line. Compatible nested dependency repair must surface
overrides/resolutions, remediation reason, and the rerun sequence:
npm install, npm audit, lint, build, and dependency-health.next-only, laravel-postgres, or laravel-next-postgres. Generate
service-local Dockerfiles only for detected supported services. Never create a
Laravel/backend service, Postgres, queue, scheduler, or php artisan command
without Laravel evidence; never create a Next/frontend service without Next.js
evidence. Unsupported services must be listed as unsupported and require a
new stack pack or explicit user approval before Dockerfiles are generated./supervibe-adapt reports adds=0 updates=3 conflicts=0 projectOnly=0; emit an approved plan naming the three managed artifacts, apply only after approval, rerun the same dry-run, and keep deployVerified=false until a real deploy health check exists.next and vite; do not rewrite agents as a Next migration until Genesis state or user input proves whether this is a separate Vite app, accidental dependency, or intentional migration.agent-output before durable work starts.agent-output while status, evidence, confidence, or nextAction is absent; rerun the skill and repair the output contract.Return a parseable adaptReport:
{
"status": "PASS | PARTIAL | BLOCKED | ADVISORY",
"dryRun": {"adds": 0, "updates": 0, "projectOnly": 0, "conflicts": 0, "memoryWrites": 0},
"updatedArtifacts": ["path or empty"],
"recommendations": [{"artifact": "path", "action": "add | update | keep | defer", "evidence": "command or source path"}],
"genesisNeeded": [{"reason": "major component or unsupported service", "evidence": "manifest or state path"}],
"verification": {"command": "exact command", "exitCode": 0, "rerun": "exact rerun command"},
"blockers": ["missing approval, conflict, unsupported service, or empty"],
"confidence": 0,
"nextAction": "apply | repair | rerun-dry-run | route-genesis | stop"
}
.supervibe/memory/index.json during dry-run unless the user requested --refresh-memory-index.git as fatal; use the Adapt file-manifest snapshot fallback.frontend/ and backend/; service
discovery must support multiple service directories and must block unknown
technologies instead of guessing.node <resolved-supervibe-plugin-root>/scripts/supervibe-adapt.mjs --dry-run --summary-json --changed-only and record exit code plus counts.references/practice-pack.md - Load when adapt needs deeper load rules, local evidence anchors, gotchas, or the final checklist.
scripts/self-check.mjs - Run with --check before claiming the adapt resource tree is complete; add --json when machine-readable evidence is needed.
evals/regression.json - Use when tuning the adapt trigger boundary or checking should-trigger and should-not-trigger prompts.
examples/workflow.md - Load when a concrete Adapt execution example or anti-example would clarify the next action.
templates/output-contract.md - Use when emitting agent-output so status, evidence, blockers, confidence, and nextAction stay consistent.
<resolved-supervibe-plugin-root>/scripts/supervibe-adapt.mjs - deterministic dry-run/apply runner.
<resolved-supervibe-plugin-root>/scripts/lib/supervibe-adapt.mjs - adapt planning helper used by the CLI.
<resolved-supervibe-plugin-root>/tests/supervibe-adapt.test.mjs - regression eval coverage for adapt behavior.
<resolved-supervibe-plugin-root>/docs/references/skill-expert-operating-standard.md - freshness, evidence, and confidence practice pack.
Worked example and anti-example in this SKILL.md are the local examples pack.
supervibe:audit — pre + post checksupervibe:genesis — invoked for new major componentsnpx claudepluginhub vtrka/supervibe --plugin supervibeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.