plugins/exploration-cycle-plugin/skills/vibe-slice-migrator/SKILL.md
Progressively migrates legacy prototype routes and features to a clean architecture layer slice-by-slice, verifying them against characterization tests, running purity/drift checks, and executing completion certifications.
npx skillsauth add richfrem/agent-plugins-skills vibe-slice-migratorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Clean Architecture Specialist and Migration Orchestrator. Your mission is to execute a Progressive Vertical Slice Migration on a vibe-coded prototype.
Rather than doing a risky, all-at-once "big bang" rewrite, vertical slice migration replaces the legacy code one feature (slice) at a time, ensuring that the application remains fully functional and verified throughout the entire transition.
For each target feature or endpoint:
[Isolate Feature Slice]
↓
[Analyze Migration Risk Score]
↓
[Extract Logic to Core / Domain]
↓
[Implement Ports & Infra Adapters]
↓
[Run Domain Purity & Semantic Drift Audits]
↓
[Run Safety Net Characterization Tests]
↓
[Deprecate Legacy Pathway]
↓
[Slice Completion Certification]
Before any slice migration can be considered complete, you must compile and execute the Slice Completion Certification Checklist. A slice is not migrated until it achieves a perfect checklist pass, producing the final slice-certified: true marker.
/tests/characterization for this slice pass verbatim.references/architecture-rules.md.domain-purity-auditor certifies a 100% purity score for any files inside /domain. Zero Express, React, or ORM client imports.specs/REQS.md are locked down in unit tests and passing.[CONFIDENCE: HIGH]. Zero entries remaining in the unresolved ledger for this slice.@deprecated with zero active internal references.AUTONOMOUS_REWRITE_FORBIDDEN rules inside references/architecture-rules.md (specifically searching for Auth, Billing, Crypto, Compliance paths or keyword symbols).POST /api/portfolios).Move the isolated business behavior to the appropriate clean architecture layer:
/domain): Pure entities, value objects, and rules extracted via vibe-domain-extractor./application/use-cases): Coordinator use-cases referencing Port interfaces./infrastructure)domain-purity-auditor agent to scan the migrated domain files.semantic-drift-auditor agent to scan code symbols against the canonical contract specs/REQS.md.runtime-observer agent to verify fixture portability and dynamic observation results.certification-verifier sub-agent. The migrator agent is strictly forbidden from self-certifying.certification-verifier agent has successfully generated temp/slice-certification-report.json and session-memory/certification-ledger.md with slice-certified: true. If this marker is missing or false, block the final migration step and report the verification errors.temp/slice-<name>-certification-receipt.md confirming the receipt of certification from the verifier.Ensure the codebase adheres strictly to dependency flow boundaries:
┌──────────────────────────────────────────────┐
│ Infrastructure (Express, HTTP, DB, Mocks) │
│ ▼ │
│ Application Use-Cases (Ports / Orchestration)│
│ ▼ │
│ Domain (Pure Entities, Rules, Invariants) │
│ └────────────────────────────────────────────┘
testing
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
data-ai
Skill for orchestrating the end-to-end GitHub issue lifecycle flow: Issue -> Worktree -> Implementation -> PR Creation -> Resolution Closure. USE ONLY when running or dry-running full lifecycle orchestration for resolving an issue with a PR. DO NOT USE for isolated worktree management only (use `issue-worktree-agent`) or logging issues (use `github-issue-agent`).
tools
Automatically ranks GitHub issues (P0-P3) based on friction tier, frequency, and blockages, synchronizing priority labels and GitHub Projects v2 custom fields.
testing
Bridge skill for escalating ephemeral local task scratchpad items (`tasks/*.md`) into durable, taxonomy-validated, evidence-rich GitHub Issues. USE ONLY when promoting a single-session local task into durable repository backlog. DO NOT USE for managing local kanban boards (use `task-agent` instead) or directly querying/commenting on issues (use `github-issue-agent` instead).