orchestrating-greenfield-migration
Skill416 starsChanged 31 days agoApache-2.0View on GitHub
Manages the end-to-end modernization of legacy Express monoliths into Next.js architectures. Orchestrates subagents for auditing, scaffolding, and verification. Use when starting or managing a greenfield rewrite project.
In this repository83 other files it gives its agents.
- agents/charm-persona-quiz-for-agents/AGENTS.mdAGENTS.md
- agents/newsroom-harness/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- codelabs/bwg002-devrel-2/AGENTS.mdAGENTS.md
- agents/charm-persona-quiz-for-agents/llms.txtllms.txt
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- compare-subagent-mcp-visibilitySkill
- batch-executing-test-suitesSkill
- circuit-breaker-reporterSkill
- generating-mock-imagesSkill
- making-forms-demoSkill
- multi-step-workflow-reporterSkill
- auditing-inventorySkill
- newsroom-harnessSkill
- verify-sourcesSkill
- write-bulletinSkill
- repo-walkthroughSkill
- go-project-setupSkill
- latest-software-versionSkill
- video-descriptionSkill
- adk-memory-bank-initializerSkill
- agent-containerizerSkill
- cloud-run-agent-architectSkill
- gcp-agent-eval-engine-runnerSkill
- gcp-agent-eval-metric-configuratorSkill
- gcp-agent-golden-dataset-builderSkill
- gcp-agent-model-armor-shieldSkill
- gcp-agent-safety-gatekeeperSkill
- gcp-agent-sdp-template-factorySkill
- gcp-agent-shadow-deployerSkill
- gcp-agent-tool-trajectory-evaluatorSkill
- gcp-production-secret-handlerSkill
- mcp-connector-generatorSkill
- go-architectSkill
- go-backend-devSkill
- go-reviewerSkill
- go-test-expertSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- lab-helperSkill
- start-frontendSkill
- brand-guidelinesSkill
- brand-guidelinesSkill
- kubernetes-1-37-manifestsSkill
- knowledge_catalog_governanceSkill
- banana-breadSkill
- cheese-breadSkill
- drawingsSkill
- paintingsSkill
- photographySkill
- ticket-triageSkill
- adding-easter-eggSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
Checkpointing: Wait for each phase's artifacts (in docs/) to be completed before starting the implementation phase.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Greenfield Migration Orchestrator
This skill manages the transition from legacy Node.js monoliths (Express/Pug/Mongoose) to modern Next.js architectures using a Greenfield Rewrite strategy.
Modernization Hub Structure
The preferred workspace layout is a "Modernization Hub" monorepo:
/workspace-root/
├── .agents/ # This Skills Pack
├── docs/ # Centralized Audit & Verification Specs
├── legacy-app/ # The Source (Read-Only)
└── modern-app/ # The Target (The Greenfield Repo)The Workflow
Phase 1: The AI Audit (Reverse Engineering)
Dispatch subagents to produce specifications while identifying project-specific test scenarios for the Verification_Plan.md.
- Establish Database Strategy: Decide whether to use the Existing Legacy DB or a Seeded Greenfield DB. (Default: Legacy Direct).
- Expose Legacy DB to Host: If using the legacy DB via Docker, modify
legacy-app/docker-compose.ymlto includeports: ["27017:27017"]and restart the service. - Initialize
docs/verification/Verification_Plan.md: Create the baseline template usingresources/verification-strategy.md. - Run
auditing-data-models-> Append Data Integrity Stress-Tests. - Run
auditing-api-contracts-> Append API Parity & Edge Case Probes. - Run
auditing-business-logic-> Append Logic & Authorization Stress-Tests. - Run
auditing-ui-archeology-> Append Interaction & Layout Verification Targets.
Phase 2: The Greenfield Foundation & TDD
- Run
scaffolding-nextjs-foundationto generate the base App. - Run
scaffolding-test-foundationto configure Vitest. - Run
generating-api-teststo convertAPI_Contracts.mdinto failing integration tests.
Phase 3: The Greenfield Scaffold (Make Tests Pass)
- Run
scaffolding-data-layerto translate models into Native MongoDB/Zod types. - Run
scaffolding-api-routesto implement Route Handlers until tests pass. - Skip or Run
generating-database-seederbased on the Strategy decision.
Phase 4: The UI & Pages Scaffold
- Run
scaffolding-ui-and-pagesto translateUI_Component_Inventory.mdinto ShadCN components AND complete Next.js pages. - Strict Checkpoint: Verify that every route identified in the "Route & Page Topology" section of the inventory has an associated
page.tsximplementation.
Phase 5: Verification & Adversarial Audit
- Run
auditing-parityto perform a side-by-side runtime check. - Run
adversarial-verificationto probe for security and logic flaws. - Finalize
Parity_Adversarial_Report.md.
Instructions for Orchestration
- Validate Paths: Confirm the relative paths to the
legacy-appandmodern-app. - Dispatch Subagents: Explicitly tell subagents where the source code and documentation folders are located.
- Checkpointing: Wait for each phase's artifacts (in
docs/) to be completed before starting the implementation phase.
Resources
resources/verification-strategy.md: The master methodology for side-by-side verification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

