Agent skill
gathering-migration
The drum sounds. Bear and Bloodhound gather for safe data movement. Use when migrating data that requires both careful movement and codebase understanding.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gathering-migration-autumnsgrove-lattice
SKILL.md
Gathering Migration π²π»π
The drum echoes through the valleys. The Bear wakes from long slumber, gathering strength for the journey ahead. The Bloodhound sniffs the terrain, understanding every path and connection. Together they move mountains of data safelyβnothing lost, nothing broken, everything finding its new home.
When to Summon
- Complex data migrations requiring codebase exploration
- Moving data between different system architectures
- Schema changes affecting multiple relationships
- Migrations requiring careful pathfinding
- When you need to understand the territory before moving
Grove Tools for This Gathering
Use gw and gf throughout. Quick reference for migration work:
# Find migration-related code and schemas
gf --agent search "table_name" # Find references to affected tables
gf --agent db # Find database-related code
gf --agent migrations # List existing migration files
# Commit completed migrations
gw git ship --write -a -m "feat: migrate description"
The Gathering
SUMMON β ORGANIZE β EXECUTE β VALIDATE β COMPLETE
β β² β² β² β
Receive Dispatch Animals Verify Migration
Request Animals Work Data Complete
Animals Mobilized
- π Bloodhound β Scout the codebase, understand data relationships
- π» Bear β Migrate data with patient strength
Phase 1: SUMMON
The drum sounds. The valleys stir...
Receive and parse the request:
Clarify the Migration:
- What data needs to move?
- From where to where?
- Are relationships involved?
- What's the rollback plan?
Scope Check:
"I'll mobilize a migration gathering for: [migration description]
This will involve:
- π Bloodhound scouting the codebase
- Map data relationships
- Find all references to affected tables
- Identify integration points
- Document current patterns
- π» Bear migrating the data
- Backup before moving
- Transform in batches
- Validate after each phase
- Verify complete migration
Proceed with the gathering?"
Phase 2: ORGANIZE
The animals prepare for the journey...
Dispatch in sequence:
Dispatch Order:
Bloodhound βββ Bear
β β
β β
Scout Migrate
Territory Data
Dependencies:
- Bloodhound must complete before Bear (needs to understand relationships)
Phase 3: EXECUTE
The paths are known. The migration begins...
Execute each phase by loading and running each animal's dedicated skill:
π BLOODHOUND β SCOUT
Load skill: bloodhound-scout
Execute the full Bloodhound SCENT β TRACK β HUNT β REPORT β RETURN workflow focused on [the data being migrated]: tables, foreign key relationships, code references, orphaned records, and edge cases. Handoff: complete territory map (data relationship map, affected files, migration risk assessment, edge case documentation) β Bear
π» BEAR β MIGRATE
Load skill: bear-migrate
Execute the full Bear WAKE β GATHER β MOVE β HIBERNATE β VERIFY workflow using the Bloodhound's territory map as the migration plan. Handoff: migration complete (migrated data, validation reports, updated codebase) β VALIDATE phase
Phase 4: VALIDATE
The journey ends. Both animals confirm safe arrival...
Validation Checklist:
- Bloodhound: All relationships mapped
- Bloodhound: All references found
- Bloodhound: Edge cases documented
- Bear: Backup created and verified
- Bear: Row counts match (source vs dest)
- Bear: Data integrity checks pass
- Bear: Foreign keys intact
- Bear: Application tests pass
- Bear: Rollback tested
Data Quality Checks:
-- Row count validation
SELECT
(SELECT COUNT(*) FROM old_table) as source_count,
(SELECT COUNT(*) FROM new_table) as dest_count;
-- Should be equal
-- Foreign key integrity
SELECT COUNT(*) as orphaned_records
FROM child_table c
LEFT JOIN parent_table p ON c.parent_id = p.id
WHERE p.id IS NULL;
-- Should be 0
-- Data sampling
SELECT * FROM new_table
ORDER BY RANDOM()
LIMIT 10;
-- Spot check transformation logic
Phase 5: COMPLETE
The gathering ends. Data rests in its new home...
Completion Report:
## π² GATHERING MIGRATION COMPLETE
### Migration: [Description]
### Animals Mobilized
π Bloodhound β π» Bear
### Territory Mapped (Bloodhound)
- Tables affected: [count]
- Relationships found: [count]
- Code files referencing data: [count]
- Edge cases identified: [list]
### Data Moved (Bear)
- Records migrated: [count]
- Duration: [time]
- Batches processed: [count]
- Errors encountered: [count]
### Validation Results
- Row count match: β
[source] = [dest]
- Data integrity: β
- Foreign keys: β
- Application tests: β
[X/Y passing]
- Performance: β
### Rollback Status
- Backup retained at: [location]
- Rollback tested: β
- Rollback time: [estimated]
### Files Updated
- Migration scripts: [files]
- Application code: [files]
- Documentation: [files]
### Time Elapsed
[Duration]
_The data has found its new home._ π²
Example Gathering
User: "/gathering-migration Move user preferences from users table to separate table"
Gathering execution:
-
π² SUMMON β "Mobilizing for: Split user preferences. Move theme, notifications from users table to user_preferences table."
-
π² ORGANIZE β "Bloodhound scouts β Bear migrates"
-
π² EXECUTE β
- π Bloodhound: "Found 15,423 users. 234 have theme set. 12 have notifications disabled. Referenced in dashboard, settings, 3 API routes."
- π» Bear: "Backup created. Migrated in 16 batches. All rows accounted for. FK constraints maintained."
-
π² VALIDATE β "15,423 source = 15,423 dest. No orphans. All tests pass."
-
π² COMPLETE β "Preferences migrated. Code updated. Backup retained."
Every piece of data arrived safely. π²
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?