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) │
│ └────────────────────────────────────────────┘
data-ai
Task management agent. Auto-invoked for task creation, status tracking, and kanban board operations using Markdown files across lane directories. V2 enforces Kanban Sovereignty constraints preventing manual task file edits.
development
Create, audit, repair, and document cross-platform symlinks that work correctly on both Windows and macOS/Linux. Use this skill whenever the user mentions symlinks, symbolic links, junction points, .gitconfig symlinks, broken links after git pull, cross-platform path issues, or needs help with ln -s equivalents on Windows. Also trigger when the user reports that files are missing or wrong after switching between Mac and Windows machines using Git. This skill solves the common problem where symlinks committed on macOS show up as plain text files on Windows (and vice versa) because of Git's core.symlinks setting or missing Developer Mode / elevated permissions. **IMPORTANT FOR WINDOWS USERS:** Developer Mode must be enabled before creating symlinks. Without it, Git will check out symlinks as plain-text files or hardlinks, breaking cross-platform workflows.
development
Interactively prepares a targeted Red Team Review package. It conducts a brief discovery interview to determine the threat model, generates a strict security auditor prompt, compiles a manifest of relevant project files, and bundles them into a single Markdown artifact or ZIP archive ready for an external LLM (like Grok, ChatGPT, or Gemini) or a human reviewer.
tools
Reduces AI agent context bloat across three dimensions: (1) duplicate skill deduplication — clears stale agent directory copies since the IDE already reads from plugins/ directly; (2) instruction file optimization — rewrites CLAUDE.md, GEMINI.md, or .github/copilot-instructions.md to under ~80 lines, keeping only rules that directly change agent behaviour; (3) session token efficiency — guidance on cheap subagent delegation, context compounding across turns, and session hygiene. Trigger with "optimize context", "reduce context bloat", "deduplicate skills", "trim CLAUDE.md", "trim GEMINI.md", "fix my context usage", "why are my skills loading twice", "how do I reduce token usage", or "clean up agent directories".