Skip to content
Back to skills

Teamventure Architecture Migration

ASecurity

Use 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
code-qualityjavarailsrefactoringapi

Works with

  • api

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add muzhicaomingwang/ai-ideas --skill teamventure-architecture-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Teamventure Architecture Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Teamventure Architecture Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/muzhicaomingwang-teamventure-architecture-migration/badge)](https://www.skillsdirectory.com/skills/muzhicaomingwang-teamventure-architecture-migration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.