xiaohongshu
xiaohongshu
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.
Full skill instructions
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.
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"
SUMMON β ORGANIZE β EXECUTE β VALIDATE β COMPLETE
β β² β² β² β
Receive Dispatch Animals Verify Migration
Request Animals Work Data Complete
The drum sounds. The valleys stir...
Receive and parse the request:
Clarify the Migration:
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?"
The animals prepare for the journey...
Dispatch in sequence:
Dispatch Order:
Bloodhound βββ Bear
β β
β β
Scout Migrate
Territory Data
Dependencies:
The paths are known. The migration begins...
Execute each phase:
π BLOODHOUND β SCOUT
"Sniffing out every trail, every connection..."
Phase: SCENT
- Identify source and destination
- Find all tables/βcollections involved
Phase: TRACK
- Trace foreign key relationships
- Find code that references the data
- Map dependencies
Phase: HUNT
- Deep dive into complex relationships
- Identify orphaned records
- Find edge cases
Phase: REPORT
- Document all findings
- Create relationship diagrams
- List all files that need updates
Phase: RETURN
- Hand off complete map to Bear
Output:
- Data relationship map
- List of affected files
- Migration risk assessment
- Edge case documentation
π» BEAR β MIGRATE
"Waking from slumber, moving with strength..."
Phase: WAKE
- Create migration plan
- Set up tools
- Prepare rollback strategy
Phase: GATHER
- Backup all data
- Inventory data quality
- Document row counts
Phase: MOVE
- Transform data in batches
- Handle relationships carefully
- Process in correct order
Phase: HIBERNATE
- Verify row counts match
- Check data integrity
- Validate relationships
Phase: VERIFY
- Application tests pass
- Queries work correctly
- Performance acceptable
Output:
- Migrated data
- Validation reports
- Updated codebase
The journey ends. Both animals confirm safe arrival...
Validation Checklist:
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
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._ π²
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 β
π² 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. π²
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