用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ForceInjection/domain-driven-design-skills --skill faber-coordinator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Conduct deep academic research for philosophy, neuroscience, cognitive science, and theoretical computer science (computability, complexity, AI theory, logic). Use when user asks to: research academic topics, find scholarly papers, conduct literature reviews, analyze citations, synthesize research findings, explore philosophical arguments, investigate consciousness/cognition, study computability/decidability/Turing machines, or analyze academic debates. Triggers on: 'research papers', 'literature review', 'academic sources', 'scholarly articles', 'philosophy of mind', 'computability theory', 'neuroscience studies', 'find papers on', 'what does the research say'.
Create clear action plans with steps, success criteria, and risk awareness. Use before implementing features, making changes, starting projects, or anytime you need a roadmap to success. Triggers on "plan this", "how should we approach", "what's the strategy", "steps to complete", or when facing complex multi-step work.
Add keyboard navigation to a feature using CommandRegistryService. Use when implementing keyboard shortcuts, vim-style navigation, or hotkeys for a page or component.
基于 SOC 职业分类
正在显示 SKILL.md
| name | faber-coordinator |
| description | Coordinate FABER-DB operations within FABER workflow phases |
| model | claude-haiku-4-5 |
This skill acts as the bridge between FABER workflows and FABER-DB operations, ensuring database changes are properly managed throughout the development lifecycle.
<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"]
}
}
}
High-level coordination process:
<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"
<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>
This skill coordinates with FABER-DB skills:
All coordination happens through skill invocation, never direct script execution.
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:
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,