选项
首页首页 Skill 其他 agent-project-board-sync

agent-project-board-sync

ruvnet/ruflo ruvnet/ruflo

project-board-sync 的代理技能——使用 $agent-project-board-sync 调用

...展开全部
187
更新时间 2026-08-03

名称:project-board-sync 描述:将 AI 群与 GitHub 项目同步,用于可视化任务管理、进度跟踪和团队协调 类型:协调 颜色:"#A8E6CF" 工具:

  • Bash
  • 阅读
  • 写入
  • 编辑
  • Glob
  • Grep
  • 列表
  • 待办事项写入
  • mcp__claude-flow__swarm_init
  • mcp__claude-flow__agent_spawn
  • mcp__claude-flow__task_orchestrate
  • mcp__claude-flow__swarm_status
  • mcp__claude-flow__memory_usage
  • mcp__claude-flow__github_repo_analyze
  • mcp__claude-flow__github_pr_manage
  • mcp__claude-flow__github_issue_track
  • mcp__claude-flow__github_metrics
  • mcp__claude-flow__工作流创建
  • mcp__claude-flow__workflow_execute hooks: pre:
    • "gh auth status || (echo 'GitHub CLI 未通过身份验证' && exit 1)"
    • "gh project list --owner @me --limit 1 >$dev$null || echo '无法访问任何项目'"
    • "git status --porcelain || echo '不在 Git 仓库中'"
    • "gh api user | jq -r '.login' || echo 'API 访问权限检查'" post:
    • "gh project list --owner @me --limit 3 | head -5"
    • "gh issue list --limit 3 --json number,title,state"
    • "git branch --show-current || echo '未处于分支上'"
    • "gh repo view --json name,description"

项目看板同步 - GitHub 项目集成

概述

将 AI 群集与 GitHub 项目同步,实现可视化任务管理、进度跟踪和团队协作。

核心功能

1. 看板初始化

# 使用 gh CLI 将 Swarm 连接到 GitHub 项目
# 获取项目详细信息
PROJECT_ID=$(gh project list --owner @me --format json | \
  jq -r'.projects[] | select(.title == "Development Board") | .id')# 使用项目初始化群集
npx ruv-swarm github board-init \
  --project-id"$PROJECT_ID"\
  --sync-mode"bidirectional"\
  --create-views"swarm-status,agent-workload,priority"# 为 Swarm 跟踪创建项目字段
gh project field-create$PROJECT_ID--owner @me \
  --name"Swarm 状态"\
  --data-type"SINGLE_SELECT"\
  --single-select-options"待处理,进行中,已完成"

2. 任务同步

# 将 Swarm 任务与项目卡片同步
npx ruv-swarm github board-sync \
  --map-status'{
    "todo": "待办",
    "in_progress": "进行中",
    "review": "待审",
    "done": "已完成"
  }'\
  --auto-move-cards \
  --update-metadata

3. 实时更新

# 启用看板实时更新
npx ruv-swarm github board-realtime \
  --webhook-endpoint"https:/$api.example.com$github-sync"\
  --update-frequency"immediate"\
  --batch-updatesfalse

配置

看板映射配置

# .github$board-sync.yml
version: 1
project:
  name: "AI 开发看板"
  number: 1
  
mapping:
  # 将 Swarm 任务状态映射到看板列
  status:
    pending: "待办事项"
   已分配: "就绪"
    进行中: "进行中"
    审核: "审核"
    已完成: "完成"
    受阻: "受阻"
    
  # 将代理类型映射到标签
  代理:
    程序员: "🔧 开发"
    tester: "🧪 测试"
    analyst: "📊 分析"
    designer: "🎨 设计"
    architect: "🏗️ 架构"
    
 # 将优先级映射到项目字段
  priority:
    critical: "🔴 关键"
    high: "🟡 高"
    medium: "🟢 中"
    low: "⚪ 低"
    
  # 自定义字段
  fields:
   - name: "人员数量"
      type: number
      source: task.agents.length
    - name: "复杂度"
      type: select
      source: task.complexity
   - name: "预计完成时间"
      type: date
      source: task.estimatedCompletion

查看配置

// 自定义看板视图
{
  "views": [
    {
      "name":"Swarm 概览",
      "type":"board",
      "groupBy":"status",
     "filters": ["is:open"],
      "sort":"priority:desc"
    },
    {
      "name":"代理工作负载",
      "type":"table",
     "groupBy":"assignedAgent",
      "columns": ["title","status","priority","eta"],
      "sort":"eta:asc"
    },
    {
     "name":"冲刺进度",
      "type":"路线图",
      "dateField":"eta",
      "groupBy":"里程碑"
    }
  ]
}

自动化功能

1. 自动分配

# 将卡片自动分配给处理人员
npx ruv-swarm github board-auto-assign \
  --strategy"load-balanced"\
  --consider"expertise,workload,availability"\
  --update-cards

2. 进度跟踪

# 跟踪并可视化进度
npx ruv-swarm github board-progress \
  --show"burndown,velocity,cycle-time"\
  --time-period"sprint"\
  --export-metrics

3. 智能卡片移动

# 智能卡片状态转换
npx ruv-swarm github board-smart-move \
  --rules'{
    "auto-progress": "when:all-subtasks-done",
    "auto-review": "when:tests-pass",
    "auto-done": "when:pr-merged"
  }'

看板命令

从问题创建卡片

# 使用 gh CLI 将问题转换为项目卡片
# 列出带有标签的问题
ISSUES=$(gh issue list --label"enhancement"--json number,title,body)# 将问题添加到项目
echo "$ISSUES"| jq -r'.[].number'|while read-r issue;do
  gh project item-add$PROJECT_ID--owner @me --url"https:/$github.com/$GITHUB_REPOSITORY$issues/$issue"
done# 使用 swarm 处理
npx ruv-swarm github board-import-issues \
  --issues"$ISSUES"\
  --add-to-column"待办事项"\
  --parse-checklist \
  --assign-agents

批量操作

# 批量卡片操作
npx ruv-swarm github board-bulk \
  --filter"status:blocked"\
  --action"add-label:needs-attention"\
  --notify-assignees

卡片模板

# 根据模板创建卡片
npx ruv-swarm github board-template \
  --template"feature-development"\
  --variables'{
    "feature": "用户认证",
    "priority": "high",
    "agents": ["架构师", "开发人员", "测试人员"]
  }'\
  --create-subtasks

高级同步

1. 多看板同步

# 跨多个看板同步
npx ruv-swarm github multi-board-sync \
  --boards"Development,QA,Release"\
  --sync-rules'{
    "Development->QA": "when:ready-for-test",
    "QA->Release": "when:tests-pass"
  }'

2. 跨组织同步

# 跨组织同步看板
npx ruv-swarm github cross-org-sync \
  --source "org1/Project-A"\
  --target"org2/Project-B"\
  --field-mapping"custom"\
  --conflict-resolution"source-wins"

3. 外部工具集成

# 与外部工具同步
npx ruv-swarm github board-integrate \
  --tool"jira"\
  --mapping"bidirectional"\
  --sync-frequency"5m"\
  --transform-rules"custom"

可视化与报告

看板分析

# 使用 gh CLI 数据生成看板分析
# 获取项目数据
PROJECT_DATA=$(gh project item-list$PROJECT_ID--owner @me --format json)# 获取问题指标
ISSUE_METRICS=$(echo "$PROJECT_DATA"| jq -r'.items[] | select(.content.type == "Issue")'| \
 while read-r item;do
    ISSUE_NUM=$(echo "$item"| jq -r'.content.number')
    gh issue view$ISSUE_NUM--json createdAt,closedAt,labels,assignees
 done)# 使用 swarm 生成分析数据
npx ruv-swarm github board-analytics \
  --project-data"$PROJECT_DATA"\
  --issue-metrics"$ISSUE_METRICS"\
  --metrics"throughput,cycle-time,wip"\
  --group-by"agent,priority,type"\
  --time-range"30d"\
  --export "dashboard"

自定义仪表盘

// 仪表盘配置
{
  "dashboard": {
    "widgets": [
      {
       "type":"chart",
        "title":"任务完成率",
        "data":"completed-per-day",
        "visualization":"line"
      },
      {
        "type":"gauge",
        "title":"冲刺进度",
        "data":"sprint-completion",
        "target":100
      },
      {
        "type":"heatmap",
        "title":"客服代表活跃度",
        "data":"agent-tasks-per-day"
      }
    ]
  }
}

报告

# 生成报告
npx ruv-swarm github board-report \
  --type "sprint-summary"\
  --format"markdown"\
  --include"velocity,burndown,blockers"\
  --distribute"slack,email"

工作流集成

冲刺管理

# 使用 Swarms 管理冲刺
npx ruv-swarm github sprint-manage \
  --sprint"Sprint 23"\
  --auto-populate \
  --capacity-planning \
  --track-velocity

里程碑跟踪

# 跟踪里程碑进度
npx ruv-swarm github milestone-track \
  --milestone"v2.0 发布"\
  --update-board \
  --show-dependencies \
  --predict-completion

发布规划

# 基于看板数据规划发布
npx ruv-swarm github release-plan-board \
  --analyze-velocity \
  --estimate-completion \
  --identify-risks \
  --optimize-scope

团队协作

工作分配

# 在团队中分配工作
npx ruv-swarm github board-distribute \
  --strategy"基于技能"\
  --balance-workload \
  --respect-preferences \
  --notify-assignments

站立会议自动化

# 生成站立会议报告
npx ruv-swarm github standup-report \
  --team"frontend"\
  --include"yesterday,today,blockers"\
  --format"slack"\
  --schedule"daily-9am"

代码审查协调

# 通过看板协调代码审查
npx ruv-swarm github review-coordinate \
  --board"代码审查"\
  --assign-reviewers \
  --track-feedback \
  --ensure-coverage

最佳实践

1. 看板组织

  • 清晰的列定义
  • 统一的标签系统
  • 定期进行看板梳理
  • 自动化规则

2. 数据完整性

  • 双向同步验证
  • 冲突解决策略
  • 审计追踪
  • 定期备份

3. 团队采用

  • 培训资料
  • 清晰的工作流程
  • 定期审查
  • 反馈循环

故障排除

同步问题

# 诊断同步问题
npx ruv-swarm github board-diagnose \
  --check"permissions,webhooks,rate-limits"\
  --test-sync \
  --show-conflicts

性能

# 优化看板性能
npx ruv-swarm github board-optimize \
  --analyze-size \
  --archive-completed \
  --index-fields \
  --cache-views

数据恢复

# 恢复看板数据
npx ruv-swarm github board-recover \
  --backup-id"2024-01-15"\
  --restore-cards \
  --preserve-current \
  --merge-conflicts

示例

敏捷开发看板

# 设置敏捷看板
npx ruv-swarm github agile-board \
  --methodology"scrum"\
  --sprint-length"2w"\
  --ceremonies"planning,review,retro"\
  --metrics"velocity,burndown"

看板流程板

# 设置看板
npx ruv-swarm github kanban-board \
  --wip-limits'{
    "进行中": 5,
    "评审": 3
  }'\
  --周期时间跟踪 \
  --持续流

研究项目看板

# 设置研究看板
npx ruv-swarm github research-board \
  --phases"构思,研究,实验,分析,发表"\
  --track-citations \
  --collaborate-external

指标与关键绩效指标

绩效指标

# 跟踪看板绩效
npx ruv-swarm github board-kpis \
  --metrics'[
    "平均周期时间",
    "每次冲刺吞吐量",
    "阻塞时间百分比",
    "首次通过率"
  ]'\
  --仪表盘网址

团队指标

# 跟踪团队绩效
npx ruv-swarm github team-metrics \
  --board"Development"\
  --per-member \
  --include"velocity,quality,collaboration"\
  --anonymous-option

另请参阅:swarm-issue.md、multi-repo-swarm.md

在 GitHub 上查看

name: project-board-sync description: Synchronize AI swarms with GitHub Projects for visual task management, progress tracking, and team coordination type: coordination color: "#A8E6CF" tools:

  • Bash
  • Read
  • Write
  • Edit
  • Glob
  • Grep
  • LS
  • TodoWrite
  • mcp__claude-flow__swarm_init
  • mcp__claude-flow__agent_spawn
  • mcp__claude-flow__task_orchestrate
  • mcp__claude-flow__swarm_status
  • mcp__claude-flow__memory_usage
  • mcp__claude-flow__github_repo_analyze
  • mcp__claude-flow__github_pr_manage
  • mcp__claude-flow__github_issue_track
  • mcp__claude-flow__github_metrics
  • mcp__claude-flow__workflow_create
  • mcp__claude-flow__workflow_execute hooks: pre:
    • "gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)"
    • "gh project list --owner @me --limit 1 >$dev$null || echo 'No projects accessible'"
    • "git status --porcelain || echo 'Not in git repository'"
    • "gh api user | jq -r '.login' || echo 'API access check'" post:
    • "gh project list --owner @me --limit 3 | head -5"
    • "gh issue list --limit 3 --json number,title,state"
    • "git branch --show-current || echo 'Not on a branch'"
    • "gh repo view --json name,description"

Project Board Sync - GitHub Projects Integration

Overview

Synchronize AI swarms with GitHub Projects for visual task management, progress tracking, and team coordination.

Core Features

1. Board Initialization

# Connect swarm to GitHub Project using gh CLI
# Get project details
PROJECT_ID=$(gh project list --owner @me --format json | \
  jq -r '.projects[] | select(.title == "Development Board") | .id')# Initialize swarm with project
npx ruv-swarm github board-init \
  --project-id "$PROJECT_ID" \
  --sync-mode "bidirectional" \
  --create-views "swarm-status,agent-workload,priority"# Create project fields for swarm tracking
gh project field-create $PROJECT_ID --owner @me \
  --name "Swarm Status" \
  --data-type "SINGLE_SELECT" \
  --single-select-options "pending,in_progress,completed"

2. Task Synchronization

# Sync swarm tasks with project cards
npx ruv-swarm github board-sync \
  --map-status '{
    "todo": "To Do",
    "in_progress": "In Progress",
    "review": "Review",
    "done": "Done"
  }' \
  --auto-move-cards \
  --update-metadata

3. Real-time Updates

# Enable real-time board updates
npx ruv-swarm github board-realtime \
  --webhook-endpoint "https:/$api.example.com$github-sync" \
  --update-frequency "immediate" \
  --batch-updates false

Configuration

Board Mapping Configuration

# .github$board-sync.yml
version: 1
project:
  name: "AI Development Board"
  number: 1
  
mapping:
  # Map swarm task status to board columns
  status:
    pending: "Backlog"
    assigned: "Ready"
    in_progress: "In Progress"
    review: "Review"
    completed: "Done"
    blocked: "Blocked"
    
  # Map agent types to labels
  agents:
    coder: "🔧 Development"
    tester: "🧪 Testing"
    analyst: "📊 Analysis"
    designer: "🎨 Design"
    architect: "🏗️ Architecture"
    
  # Map priority to project fields
  priority:
    critical: "🔴 Critical"
    high: "🟡 High"
    medium: "🟢 Medium"
    low: "⚪ Low"
    
  # Custom fields
  fields:
    - name: "Agent Count"
      type: number
      source: task.agents.length
    - name: "Complexity"
      type: select
      source: task.complexity
    - name: "ETA"
      type: date
      source: task.estimatedCompletion

View Configuration

// Custom board views
{
  "views": [
    {
      "name": "Swarm Overview",
      "type": "board",
      "groupBy": "status",
      "filters": ["is:open"],
      "sort": "priority:desc"
    },
    {
      "name": "Agent Workload",
      "type": "table",
      "groupBy": "assignedAgent",
      "columns": ["title", "status", "priority", "eta"],
      "sort": "eta:asc"
    },
    {
      "name": "Sprint Progress",
      "type": "roadmap",
      "dateField": "eta",
      "groupBy": "milestone"
    }
  ]
}

Automation Features

1. Auto-Assignment

# Automatically assign cards to agents
npx ruv-swarm github board-auto-assign \
  --strategy "load-balanced" \
  --consider "expertise,workload,availability" \
  --update-cards

2. Progress Tracking

# Track and visualize progress
npx ruv-swarm github board-progress \
  --show "burndown,velocity,cycle-time" \
  --time-period "sprint" \
  --export-metrics

3. Smart Card Movement

# Intelligent card state transitions
npx ruv-swarm github board-smart-move \
  --rules '{
    "auto-progress": "when:all-subtasks-done",
    "auto-review": "when:tests-pass",
    "auto-done": "when:pr-merged"
  }'

Board Commands

Create Cards from Issues

# Convert issues to project cards using gh CLI
# List issues with label
ISSUES=$(gh issue list --label "enhancement" --json number,title,body)# Add issues to project
echo "$ISSUES" | jq -r '.[].number' | while read -r issue; do
  gh project item-add $PROJECT_ID --owner @me --url "https:/$github.com/$GITHUB_REPOSITORY$issues/$issue"
done# Process with swarm
npx ruv-swarm github board-import-issues \
  --issues "$ISSUES" \
  --add-to-column "Backlog" \
  --parse-checklist \
  --assign-agents

Bulk Operations

# Bulk card operations
npx ruv-swarm github board-bulk \
  --filter "status:blocked" \
  --action "add-label:needs-attention" \
  --notify-assignees

Card Templates

# Create cards from templates
npx ruv-swarm github board-template \
  --template "feature-development" \
  --variables '{
    "feature": "User Authentication",
    "priority": "high",
    "agents": ["architect", "coder", "tester"]
  }' \
  --create-subtasks

Advanced Synchronization

1. Multi-Board Sync

# Sync across multiple boards
npx ruv-swarm github multi-board-sync \
  --boards "Development,QA,Release" \
  --sync-rules '{
    "Development->QA": "when:ready-for-test",
    "QA->Release": "when:tests-pass"
  }'

2. Cross-Organization Sync

# Sync boards across organizations
npx ruv-swarm github cross-org-sync \
  --source "org1/Project-A" \
  --target "org2/Project-B" \
  --field-mapping "custom" \
  --conflict-resolution "source-wins"

3. External Tool Integration

# Sync with external tools
npx ruv-swarm github board-integrate \
  --tool "jira" \
  --mapping "bidirectional" \
  --sync-frequency "5m" \
  --transform-rules "custom"

Visualization & Reporting

Board Analytics

# Generate board analytics using gh CLI data
# Fetch project data
PROJECT_DATA=$(gh project item-list $PROJECT_ID --owner @me --format json)# Get issue metrics
ISSUE_METRICS=$(echo "$PROJECT_DATA" | jq -r '.items[] | select(.content.type == "Issue")' | \
  while read -r item; do
    ISSUE_NUM=$(echo "$item" | jq -r '.content.number')
    gh issue view $ISSUE_NUM --json createdAt,closedAt,labels,assignees
  done)# Generate analytics with swarm
npx ruv-swarm github board-analytics \
  --project-data "$PROJECT_DATA" \
  --issue-metrics "$ISSUE_METRICS" \
  --metrics "throughput,cycle-time,wip" \
  --group-by "agent,priority,type" \
  --time-range "30d" \
  --export "dashboard"

Custom Dashboards

// Dashboard configuration
{
  "dashboard": {
    "widgets": [
      {
        "type": "chart",
        "title": "Task Completion Rate",
        "data": "completed-per-day",
        "visualization": "line"
      },
      {
        "type": "gauge",
        "title": "Sprint Progress",
        "data": "sprint-completion",
        "target": 100
      },
      {
        "type": "heatmap",
        "title": "Agent Activity",
        "data": "agent-tasks-per-day"
      }
    ]
  }
}

Reports

# Generate reports
npx ruv-swarm github board-report \
  --type "sprint-summary" \
  --format "markdown" \
  --include "velocity,burndown,blockers" \
  --distribute "slack,email"

Workflow Integration

Sprint Management

# Manage sprints with swarms
npx ruv-swarm github sprint-manage \
  --sprint "Sprint 23" \
  --auto-populate \
  --capacity-planning \
  --track-velocity

Milestone Tracking

# Track milestone progress
npx ruv-swarm github milestone-track \
  --milestone "v2.0 Release" \
  --update-board \
  --show-dependencies \
  --predict-completion

Release Planning

# Plan releases using board data
npx ruv-swarm github release-plan-board \
  --analyze-velocity \
  --estimate-completion \
  --identify-risks \
  --optimize-scope

Team Collaboration

Work Distribution

# Distribute work among team
npx ruv-swarm github board-distribute \
  --strategy "skills-based" \
  --balance-workload \
  --respect-preferences \
  --notify-assignments

Standup Automation

# Generate standup reports
npx ruv-swarm github standup-report \
  --team "frontend" \
  --include "yesterday,today,blockers" \
  --format "slack" \
  --schedule "daily-9am"

Review Coordination

# Coordinate reviews via board
npx ruv-swarm github review-coordinate \
  --board "Code Review" \
  --assign-reviewers \
  --track-feedback \
  --ensure-coverage

Best Practices

1. Board Organization

  • Clear column definitions
  • Consistent labeling system
  • Regular board grooming
  • Automation rules

2. Data Integrity

  • Bidirectional sync validation
  • Conflict resolution strategies
  • Audit trails
  • Regular backups

3. Team Adoption

  • Training materials
  • Clear workflows
  • Regular reviews
  • Feedback loops

Troubleshooting

Sync Issues

# Diagnose sync problems
npx ruv-swarm github board-diagnose \
  --check "permissions,webhooks,rate-limits" \
  --test-sync \
  --show-conflicts

Performance

# Optimize board performance
npx ruv-swarm github board-optimize \
  --analyze-size \
  --archive-completed \
  --index-fields \
  --cache-views

Data Recovery

# Recover board data
npx ruv-swarm github board-recover \
  --backup-id "2024-01-15" \
  --restore-cards \
  --preserve-current \
  --merge-conflicts

Examples

Agile Development Board

# Setup agile board
npx ruv-swarm github agile-board \
  --methodology "scrum" \
  --sprint-length "2w" \
  --ceremonies "planning,review,retro" \
  --metrics "velocity,burndown"

Kanban Flow Board

# Setup kanban board
npx ruv-swarm github kanban-board \
  --wip-limits '{
    "In Progress": 5,
    "Review": 3
  }' \
  --cycle-time-tracking \
  --continuous-flow

Research Project Board

# Setup research board
npx ruv-swarm github research-board \
  --phases "ideation,research,experiment,analysis,publish" \
  --track-citations \
  --collaborate-external

Metrics & KPIs

Performance Metrics

# Track board performance
npx ruv-swarm github board-kpis \
  --metrics '[
    "average-cycle-time",
    "throughput-per-sprint",
    "blocked-time-percentage",
    "first-time-pass-rate"
  ]' \
  --dashboard-url

Team Metrics

# Track team performance
npx ruv-swarm github team-metrics \
  --board "Development" \
  --per-member \
  --include "velocity,quality,collaboration" \
  --anonymous-option

See also: swarm-issue.md, multi-repo-swarm.md

所有文件

1 个文件

安装 agent-project-board-sync

下载技能文件并将其解压到 .claude/skills/ 目录中。

下载ZIP

克隆仓库并复制技能文件到您的项目中。

git clone https://github.com/ruvnet/ruflo/tree/main/.agents/skills/agent-project-board-sync # Copy the skill folder to .claude/skills/ or .codex/skills/

复制 复制
快速设置: 将技能文件夹复制到 .claude/skills/ 目录下,Claude 会自动检测并使用该技能
仓库 ruvnet/ruflo

相关技能

v4-new-features
更新时间 2026-08-04
pixijs-application
更新时间 2026-08-04
multica-creating-agents
更新时间 2026-08-12
pixijs-custom-rendering
更新时间 2026-08-11
OR