Back to skills
SKILL.md
Teamventure Architecture Migration
ASecurityUse when refactoring TeamVenture domains/architecture; enforces migration order (Planning→Authorization→Identity→Infrastructure) and preferred steps (split classes before moving packages).
- 3 stars
- 0 votes
- 0 copies
- 3 views
- Added May 28, 2026
Works with
Security analysis
100/100npx -y skills add muzhicaomingwang/ai-ideas --skill teamventure-architecture-migration --agent claude-codeAre you the author of Teamventure Architecture Migration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/muzhicaomingwang-teamventure-architecture-migration)---
name: teamventure-architecture-migration
description: Use when refactoring TeamVenture domains/architecture; enforces migration order (Planning→Authorization→Identity→Infrastructure) and preferred steps (split classes before moving packages).
---
# TeamVenture Architecture Migration (Order + Guardrails)
## Migration order (domain/context)
1. **Planning (core)**: Plans + review collaboration (memberships, itinerary revisions, itinerary suggestions)
2. **Authorization (supporting)**: Policy/permission checks (no ownership of business fact tables)
3. **Identity (supporting)**: Auth/login/session/user profile
4. **Infrastructure (supporting)**: Read/write routing, cache/MQ wiring, monitoring hardening
## Refactor order inside a domain
1. **Split classes first** (semantic/CQRS refactor), keep packages stable
- Example: `*Service` → `*QueryService` + `*CommandService`
2. **Move packages second** (mechanical refactor)
- Move in small batches; keep public API/HTTP routes stable
## CQRS + read/write split rule
- Query methods must be annotated with `@Transactional(readOnly = true)` to route to **slave**
- Command methods must use default or explicit `@Transactional` to route to **master**
- Permission checks that must be immediately consistent should read from **master** (or cache with strict invalidation)
## Execution checklist (per step)
- Make change in smallest viable slice
- Run Java tests (`mvn test`) and fix regressions introduced by the slice
- Avoid broad renames and unrelated refactors
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.