xiaohongshu
xiaohongshu
faber-coordinator
Coordinate FABER-DB operations within FABER workflow phases
Full skill instructions
This skill acts as the bridge between FABER workflows and FABER-DB operations, ensuring database changes are properly managed throughout the development lifecycle. </CONTEXT>
<CRITICAL_RULES>
{
"operation": "detect-database-needs",
"parameters": {
"phase": "frame",
"work_item": {
"number": 123,
"title": "Add user profiles table",
"description": "Create user profiles with avatar and bio fields",
"labels": ["feature", "database"]
}
}
}
</INPUTS>
<WORKFLOW>High-level coordination process:
</WORKFLOW>
<COMPLETION_CRITERIA> You are complete when:
If coordination fails:
Output structured messages:
Start (Frame Phase):
🎯 STARTING: FABER Coordinator (Frame)
Work Item: #123 - Add user profiles table
Detecting database needs...
───────────────────────────────────────
Detection Result:
✅ COMPLETED: Database Needs Detection
Database Work Detected: YES
Indicators:
• Title mentions: "table"
• Labels include: "database", "feature"
• Description includes schema changes
Recommendations:
1. Generate specification including database schema
2. Post-architect: Generate migration automatically
3. Pre-build: Apply migration to dev environment
───────────────────────────────────────
Architect Coordination:
🎯 STARTING: FABER Coordinator (Architect)
Checking specification for database schema...
───────────────────────────────────────
✓ Database schema found in specification
✓ Invoking migration-generator...
✓ Migration generated: 20250124160000_add_user_profiles
✅ COMPLETED: Architect Phase Coordination
Migration File: prisma/migrations/20250124160000_add_user_profiles/migration.sql
Status: Ready for dev deployment
───────────────────────────────────────
Next: Build phase will apply migration to dev
Build Coordination:
🎯 STARTING: FABER Coordinator (Build)
Applying migrations to development...
───────────────────────────────────────
✓ Invoking migration-deployer (dev)...
✓ Migrations applied successfully
✓ Health check: Healthy
✅ COMPLETED: Build Phase Coordination
Environment: dev
Migrations Applied: 1 new migration
Database Status: Healthy
───────────────────────────────────────
Next: Evaluate phase will deploy to staging
Evaluate Coordination:
🎯 STARTING: FABER Coordinator (Evaluate)
Deploying to staging and validating...
───────────────────────────────────────
✓ Invoking migration-deployer (staging)...
✓ Migrations deployed to staging
✓ Running health checks...
✓ Health check: Healthy
- Connectivity: 28ms
- Migrations: 25 applied, 0 pending
- Schema: No drift
✅ COMPLETED: Evaluate Phase Coordination
Environment: staging
Database Status: Healthy
Ready for Production: YES
───────────────────────────────────────
Next: Release phase will deploy to production
Release Coordination:
🎯 STARTING: FABER Coordinator (Release)
Production deployment with full safety...
───────────────────────────────────────
✓ Creating production backup...
✓ Backup created: backup-20250124-160000
✓ Analyzing migrations for safety...
✓ Risk Level: MEDIUM (DROP COLUMN detected)
✓ Deploying to production (requires approval)...
✓ User approved production deployment
✓ Migrations deployed successfully
✓ Running post-deployment health check...
✓ Health check: Healthy
✅ COMPLETED: Release Phase Coordination
Environment: production
Backup: backup-20250124-160000
Migrations Applied: 1 migration
Database Status: Healthy
───────────────────────────────────────
Production deployment successful! ✅
Return JSON:
Detection Result:
{
"status": "success",
"operation": "detect-database-needs",
"result": {
"database_work_detected": true,
"confidence": "high",
"indicators": [
"Title contains 'table'",
"Labels include 'database'",
"Description mentions schema"
],
"recommendations": [
"Generate specification with database schema",
"Plan migration generation in architect phase",
"Prepare for dev deployment in build phase"
]
}
}
Coordination Success:
{
"status": "success",
"operation": "coordinate-release",
"phase": "release",
"result": {
"environment": "production",
"backup_created": "backup-20250124-160000",
"migrations_applied": 1,
"health_status": "healthy",
"deployment_successful": true
},
"message": "Production deployment completed successfully"
}
Coordination Failure:
{
"status": "error",
"operation": "coordinate-release",
"phase": "release",
"error": "Production health check failed",
"result": {
"environment": "production",
"health_status": "unhealthy",
"issues": [
{
"severity": "critical",
"message": "Connection failed"
}
]
},
"recovery": {
"can_continue": false,
"suggestions": [
"Verify database is running",
"Check connection string",
"Run manual health check: /faber-db:health-check production"
]
}
}
</OUTPUTS>
<ERROR_HANDLING>
Common coordination failures:
Detection Failed:
{
"status": "error",
"error": "Cannot access work item details",
"recovery": {
"suggestions": [
"Verify work item number is valid",
"Check work plugin configuration"
]
}
}
Migration Generation Failed:
{
"status": "error",
"error": "Migration generation failed",
"phase": "architect",
"recovery": {
"suggestions": [
"Review specification for database schema",
"Generate manually: /faber-db:generate-migration",
"Check Prisma schema syntax"
]
}
}
Deployment Failed:
{
"status": "error",
"error": "Migration deployment failed",
"phase": "build",
"environment": "dev",
"recovery": {
"can_continue": false,
"suggestions": [
"Check database connectivity",
"Review migration syntax",
"Run manually: /faber-db:migrate dev",
"Check error logs for details"
]
}
}
Health Check Failed:
{
"status": "warning",
"error": "Health check degraded",
"phase": "evaluate",
"result": {
"health_status": "degraded",
"issues": [
{
"severity": "warning",
"message": "Schema drift detected"
}
]
},
"recovery": {
"can_continue": true,
"suggestions": [
"Review schema drift details",
"Consider syncing schema",
"Proceed with caution"
]
}
}
</ERROR_HANDLING>
<HANDLERS>This skill coordinates with FABER-DB skills:
All coordination happens through skill invocation, never direct script execution. </HANDLERS>
<DOCUMENTATION>Log coordination activities:
The faber-coordinator skill is invoked from FABER phase hooks:
Hook: post_frame
Operation: detect-database-needs
Purpose: Detect if work item requires database changes
{
"hooks": {
"post_frame": [
{
"skill": "fractary-faber-db:faber-coordinator",
"operation": "detect-database-needs",
"parameters": {
"work_item": "${work_item}"
}
}
]
}
}
Hook: post_architect
Operation: coordinate-architect
Purpose: Generate migrations from specification
{
"hooks": {
"post_architect": [
{
"skill": "fractary-faber-db:faber-coordinator",
"operation": "coordinate-architect",
"parameters": {
"spec_file": "${spec_file}"
}
}
]
}
}
Hook: pre_build
Operation: coordinate-build
Purpose: Apply migrations to development
{
"hooks": {
"pre_build": [
{
"skill": "fractary-faber-db:faber-coordinator",
"operation": "coordinate-build",
"parameters": {
"environment": "dev"
}
}
]
}
}
Hook: pre_evaluate
Operation: coordinate-evaluate
Purpose: Deploy to staging and validate
{
"hooks": {
"pre_evaluate": [
{
"skill": "fractary-faber-db:faber-coordinator",
"operation": "coordinate-evaluate",
"parameters": {
"environment": "staging"
}
}
]
}
}
Hook: pre_release
Operation: coordinate-release
Purpose: Production deployment with full safety
{
"hooks": {
"pre_release": [
{
"skill": "fractary-faber-db:faber-coordinator",
"operation": "coordinate-release",
"parameters": {
"environment": "production"
}
}
]
}
}
See config/workflows/faber-db-integrated.json for a complete example workflow with FABER-DB integration.
Title Patterns:
Label Patterns:
Description Patterns:
Dry-Run:
Assist:
Guarded (Recommended):
Autonomous:
</INTEGRATION>
FABER-DB coordination settings in .fractary/plugins/faber-db/config.json:
{
"faber_integration": {
"enabled": true,
"auto_detect_database_work": true,
"auto_generate_migrations": true,
"auto_deploy_dev": true,
"environments": {
"dev": {
"auto_migrate": true,
"health_check_after": true
},
"staging": {
"auto_migrate": false,
"require_approval": true,
"health_check_before": true,
"health_check_after": true
},
"production": {
"auto_migrate": false,
"require_approval": true,
"require_backup": true,
"validate_safety": true,
"health_check_before": true,
"health_check_after": true
}
}
}
}
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