一键导入
legacy-migration-workflow
Use when running ASPX to WebApi plus Angular migrations with mandatory soft gates between planning, build, and validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when running ASPX to WebApi plus Angular migrations with mandatory soft gates between planning, build, and validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | legacy-migration-workflow |
| description | Use when running ASPX to WebApi plus Angular migrations with mandatory soft gates between planning, build, and validation. |
Use this workflow for migration tasks in this repository.
Enforce the ordered migration workflow with repository-level agents:
migration-orchestrator (autonomous coordinator)migration-scope (evidence-first reconnaissance)migration-plannerbuild (initial implementation)migration-validator (full validation)migration-validator-focused (post-remediation focused validation)build (remediation loop, when needed)No phase can be skipped.
docs/migrations/plans/<legacy-page-slug>.md with status: planned.planned means the plan is directly executable by migration-build; there is no approval gate.AWAITING_INPUT with targeted questions and must not write or update the plan until the answers make the scope executable.planned, then sets status: implemented after attaching implementation/test/build evidence to the plan.implemented or remediation-needed.status: remediation-needed and hands off to remediation.remediation-needed.status: validated.migration-validate.blocked is reserved for missing human decisions, not for missing code that can be added to the plan.If a gate is not met, return:
BLOCKED: <reason and expected next command>
migration-plan <legacy-page>migration-build <legacy-page>migration-validate <legacy-page>migration-remediate <legacy-page>migration-run <legacy-page>migration-scope <legacy-page>migration-validate-focused <legacy-page>migration-plan owns discovery, user clarification, and final scope definition.AWAITING_INPUT for targeted questions.migration-build.WebMethod, RegisterJsonVariable, Page_Load branches, hidden branches, default values, validation, side effects).isSuper parity.Shared / foundation dependencies as required migration work with stable F### IDs.ID, Legacy element, Legacy source, Modern API/DTO, Modern UI, Test/evidence, and Status.Yoizen.Legacy/migration-progress-tracker.md update required in same change set.Validation must fail if any of these is missing or inconsistent:
### Overall Progress counters/percentages mismatch page status totals.### By Module Progress counters/percentages mismatch module totals.*Last Updated:* not refreshed after tracker modification.docs/migrations/plans/<legacy-page-slug>.mdYoizen.Legacy/migration-progress-tracker.mdmigration-approve was removed from the happy path; migration-plan now produces a directly buildable plan.Use migration-run <legacy-page> when the user wants the full workflow to continue without manually running each phase command.
migration-run coordinates the existing phases only. It must not collapse their responsibilities:
AWAITING_INPUTbuildmigration-validatorbuildstatus: validatedAutonomous flow:
missing plan -> plan
planned -> build -> validate
implemented -> validate
remediation-needed -> remediate -> validate
validated -> stop completed
blocked/AWAITING_INPUT -> stop for user input
migration-run must be durable and resumable. It must decide the next phase by reading the current plan, tracker, findings, remediation tasks, resolution log, evidence log, and worktree state. It must not rely on chat memory or a previous subtask result.
Recommended plan frontmatter metadata:
workflow:
runId: MR-20260601-01
phase: validating
validationRound: 2
maxValidationRounds: 5
lastStartedAt: 2026-06-01T00:00:00Z
lastCompletedAt: null
lastFindingFingerprint: V001|V003|V004
Loop guards:
5LOOP_GUARD when the same open finding fingerprint appears after remediationLOOP_GUARD when remediation produces no evidence, resolution log update, finding/task state change, or relevant source/test diffMAX_ROUNDS_REACHED when the validation round limit is reachedInterruption behavior:
planned artifact existsConcrete page names in examples are illustrative only. Agents must not infer dependencies from examples or prior conversations. Dependencies must be supported by evidence in the requested legacy source, related scripts, handlers, existing plans, or modern source references.
Before creating an executable plan, classify the requested legacy surface:
smallmediumlarge-cohesivehuge-split-requiredambiguous-needs-inputAutomatic split is sequencing only and does not require user approval when parity is unchanged. Deferral is reduced parity and requires explicit user approval.
Automatic split indicators:
>= 30>= 4>= 3>= 3>= 4missing, partial, or requires-extensionHuge surfaces use a Migration Work Graph in the parent plan. Graph nodes may be:
parentfoundationpeer-foundationparent-compositionWork graph rules:
validatedGRAPH_CONFLICTAllowed dependency states:
validatedimplemented-needs-validationremediation-neededplannedmissingpartialblockedexplicitly-deferredMark a dependency validated only when specific evidence exists:
Never mark a dependency ready from matching names, existing files, tracker status alone, generic build evidence, or examples in this skill.
Use full validation for:
status: validatedUse focused validation after remediation when affected findings, rows, and files are bounded.
Focused validation may return:
FOCUSED_APPROVEDFOCUSED_REJECTEDESCALATE_FULL_VALIDATIONEVIDENCE_GAPFocused validation cannot set a parent plan to validated; it can only hand off to final full validation when no open findings remain.
Plans should include these token-saving sections:
Workflow StateScope Sizing GateLegacy Discovery DigestMigration Work Graph for huge/parent plansPhase HandoffAgents should read those sections first. If missing or inconsistent, fall back to the full plan.
Evidence belongs inside the migration plan artifact. Do not create standalone Markdown files for validation rounds, remediation rounds, findings, evidence logs, handoffs, or command output unless the user explicitly requests a separate artifact.
Allowed plan artifacts:
Do not create one-off files like evidence-v001.md, validation-round-1.md, remediation-v003.md, or handoff-remediation.md by default.
Validated migration plans must not be deleted automatically. They are retained as the parity contract, validation record, and audit trail. If the user wants less clutter, ask before adopting an archive strategy such as moving validated plans to an archive folder.
Yoizen UI design system standards. Trigger: Yoizen UI components, styling, colors, typography, visual polish or correction of any Yoizen Angular frontend.
Test-driven development loop — drive features through tests one vertical slice at a time (red → green → refactor). Use when the user asks for test-first development, mentions TDD or red-green-refactor, wants to build a feature through tests, or the orchestrator runs the TDD flow.
Trigger: Azure DevOps PRs, work items, profiles; review/vote/comment a PR; list/create/update work items. Drive Azure DevOps via the `ado` CLI instead of plugin tools.
Author and harden Dockerfiles for NestJS/Node, .NET, and Angular/nginx services on AKS. Use when creating a Dockerfile, reviewing/auditing/hardening one, shrinking image size or attack surface, or fixing container findings — root user, leaked secret, writable code, vuln scan. Reaches the .dockerignore, compose, and the entrypoints/configs baked into the image.
Teach the user a new skill or concept, within this workspace.
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.