xiaohongshu
xiaohongshu
full-migration-pipeline
Complete Angular migration pipeline that orchestrates all migration skills in sequence. Use when performing end-to-end page migration with analysis, implementation, quality checks, and QA verification.
Full skill instructions
Automated execution of the complete Angular migration workflow, orchestrating all related skills in sequence.
$ARGUMENTS - Format: --from <source_path> --to <target_path> or --page <page_name>
--from: Legacy project path (e.g., /Users/jayden/f2e-networking-jayden/apps/mxsecurity-web/src/app/pages/account)--to: New project path (e.g., libs/mxsecurity/account-page)--page: GitLab page name (e.g., time, account) - When using this parameter, source code is automatically fetched from GitLab┌─────────────────────────────────────────────────────────────────┐
│ FULL MIGRATION PIPELINE │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Phase 1: Analysis │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ 1.1 Execute migrate-page (analysis + document generation)│ │
│ │ 1.2 Execute form-extraction (extract form structure) │ │
│ │ Output: MIGRATION-ANALYSIS.md │ │
│ └─────────────────────────────────────────────────────────┘ │
│ ↓ │
│ Phase 2: Implementation (Manual) │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ 2.1 Create Domain Layer (model, api, store, helper) │ │
│ │ 2.2 Create UI Layer (tables, forms) │ │
│ │ 2.3 Create Features Layer (page, dialogs) │ │
│ │ 2.4 Create Shell Layer (routes) │ │
│ │ [Await user confirmation] │ │
│ └─────────────────────────────────────────────────────────┘ │
│ ↓ │
│ Phase 3: Quality Assurance │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ 3.1 Execute migration-lint (compliance check + auto-fix) │ │
│ │ 3.2 Execute migration-review (migration completeness) │ │
│ │ 3.3 Execute compare-i18n-keys (translation key compare) │ │
│ │ 3.4 Execute check-barrel-files (check redundant barrels) │ │
│ └─────────────────────────────────────────────────────────┘ │
│ ↓ │
│ Phase 4: QA Verification │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ 4.1 Execute generate-qa-test-cases (generate test cases) │ │
│ │ 4.2 Execute verify-legacy-with-qa-testcases (verify old) │ │
│ │ Output: QA-TEST-CASES.md, LEGACY-VERIFICATION-REPORT.md│ │
│ └─────────────────────────────────────────────────────────┘ │
│ ↓ │
│ Phase 5: Final Report │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ Output MIGRATION-SUMMARY.md (consolidate all results) │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
Automated Execution:
Determine Source Type
--page is provided: Use GitLab API to fetch source code--from is provided: Use local filesExecute Migration Analysis
Execute based on source type:
- /migrate-page --from={source} --to={target}
- /migrate-page-gitlab --page={page_name}
Extract Form Structure (Auxiliary Analysis)
Output:
{target}/domain/src/lib/docs/MIGRATION-ANALYSIS.mdUser Prompt:
Phase 1 analysis complete. Proceed to Phase 2 implementation?
Implementation Guidelines:
Display pending implementation checklist (based on MIGRATION-ANALYSIS.md):
## Implementation Checklist
### Domain Layer
- [ ] Create `{feature}.model.ts` - API types, view models
- [ ] Create `{feature}.api.ts` - API service (inline URLs directly, do not use constants)
- [ ] Create `{feature}.store.ts` - SignalStore
- [ ] Create `{feature}.helper.ts` - Pure functions (if needed)
### Features Layer (Implement First)
- [ ] Create Page component
- [ ] Create Dialog components (if applicable)
- [ ] Verify store injection
### UI Layer (Extract from Features)
- [ ] Extract Table components to UI layer
- [ ] Extract Form components to UI layer
- [ ] Verify input()/output() usage, no store injection
### Shell Layer
- [ ] Create routes
- [ ] Register in app.routes.ts
Implementation Order:
Extraction Criteria:
<form> containing <mat-form-field> -> Extract to UIcommon-table pattern (reference libs/mxsecurity/shared/ui/src/lib/common-table)Table Implementation Approach:
CommonTableComponent with MxColumnDef[] for column definitionsExceptions (No Extraction Required):
// DO NOT use TRANSLOCO_SCOPE
providers: [{ provide: TRANSLOCO_SCOPE, useValue: { scope: 'xxx' } }]
// DO NOT use endpoint constants
readonly #ENDPOINTS = { API: '/api/xxx' };
// CORRECT: Inline URLs directly
this.#rest.get('/api/xxx');
Principle: Process from large sections to small units, completing each before proceeding
Page Structure Analysis:
┌─────────────────────────────────────┐
│ Page │
│ ┌─────────────────────────────────┐ │
│ │ mat-tab-group │ │
│ │ ┌───────────┬───────────┐ │ │
│ │ │ Tab 1 │ Tab 2 │ │ │
│ │ ├───────────┴───────────┤ │ │
│ │ │ mat-card / section 1 │ │ │
│ │ ├───────────────────────┤ │ │
│ │ │ mat-card / section 2 │ │ │
│ │ └───────────────────────┘ │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────┘
Step 1: Segment by mat-tab
Step 2: Segment by mat-card / content-wrapper
Step 3: Migrate and Verify Incrementally
/migration-lint after completing each segmentExample Checklist:
## Chunked Migration Progress
### Tab 1: General Settings
- [x] Card 1.1: Basic Info
- [x] Card 1.2: Network Config
- [ ] Card 1.3: Advanced Options
### Tab 2: Security
- [ ] Card 2.1: Authentication
- [ ] Card 2.2: Certificates
Generate Library Structure:
nx g @one-ui/one-plugin:library mxsecurity {page-name} all
Await User Confirmation:
After completing the above implementation, enter "done" or "continue" to proceed to Phase 3. For pattern queries, use /migration-patterns <keyword>
Automated Execution:
Compliance Check + Auto-fix
/migration-lint {target}
Migration Completeness Check
/migration-review --from={source} --to={target}
Translation Key Comparison (For primary HTML files)
/compare-i18n-keys --from={source}/*.html --to={target}/**/*.html
Check Redundant Barrel Files
/check-barrel-files {target}
Output:
User Prompt:
Phase 3 quality assurance complete. X issues auto-fixed, Y issues require manual intervention. Proceed to Phase 4 QA verification?
Automated Execution:
Generate QA Test Cases
/generate-qa-test-cases {target}
Verify Legacy Code
/verify-legacy-with-qa-testcases {source}
Output:
{target}/domain/src/lib/docs/QA-TEST-CASES.md{target}/domain/src/lib/docs/LEGACY-VERIFICATION-REPORT.mdAuto-generate MIGRATION-SUMMARY.md:
# {Feature Name} Migration Summary Report
**Migration Date:** {date}
**Source:** {source_path}
**Target:** {target_path}
## Migration Status
| Phase | Status | Notes |
|-------|--------|-------|
| Phase 1: Analysis | Complete | |
| Phase 2: Implementation | Complete | |
| Phase 3: Quality Assurance | Complete | X items auto-fixed |
| Phase 4: QA Verification | Complete | |
## Generated Documents
- [x] MIGRATION-ANALYSIS.md
- [x] QA-TEST-CASES.md
- [x] LEGACY-VERIFICATION-REPORT.md
- [x] MIGRATION-SUMMARY.md (this document)
## Compliance Report Summary
### Auto-fixed Items
{List of auto-fixed items}
### Items Requiring Manual Intervention
{List of items requiring manual intervention}
## Migration Completeness
| Category | Source | Target | Completeness |
|----------|--------|--------|--------------|
| Form Controls | X | X | 100% |
| Validators | X | X | 100% |
| Translation Keys | X | X | 100% |
| Event Bindings | X | X | 100% |
## Next Steps
1. [ ] Execute comprehensive testing
2. [ ] Code Review
3. [ ] Merge to main branch
Output Location: {target}/domain/src/lib/docs/MIGRATION-SUMMARY.md
/full-migration-pipeline --from=/Users/jayden/f2e-networking-jayden/apps/mxsecurity-web/src/app/pages/account --to=libs/mxsecurity/account-page
/full-migration-pipeline --page=account
If the workflow is interrupted, continue from a specific phase:
# Execute Phase 3 quality assurance only
/migration-lint libs/mxsecurity/account-page
# Execute Phase 4 QA verification only
/generate-qa-test-cases libs/mxsecurity/account-page
/verify-legacy-with-qa-testcases /path/to/legacy
Available for use at any point during pipeline execution:
| Skill | Purpose |
|---|---|
/migration-patterns <keyword> | Query migration patterns |
/icon-replacement <icon> | Find replacement icons |
/ui-layout-guide <query> | UI layout guidelines |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience