選項
首頁首頁 Skill 其他 agent-project-board-sync

agent-project-board-sync

ruvnet/ruflo ruvnet/ruflo

專案看板同步的代理程式指令 - 使用 $agent-project-board-sync 執行

...展開全部
187
更新時間 2026-08-03

名稱:project-board-sync 描述:將 AI 群體與 GitHub 專案同步,以實現視覺化任務管理、進度追蹤及團隊協調 類型:協調 顏色:"#A8E6CF" 工具:

  • Bash
  • 閱讀
  • 寫入
  • 編輯
  • Glob
  • Grep
  • LS
  • 待辦事項寫入
  • 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_管理
  • mcp__claude-flow__GitHub_問題追蹤
  • mcp__claude-flow__github_指標
  • mcp__claude-flow__workflow_create
  • 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: "待辦事項"
   已指派: "就緒"
    進行中: "進行中"
    審查: "審查"
    已完成: "完成"
    受阻: "受阻"
    
  # 將代理類型映射至標籤
  代理:
    程式設計師: "🔧 開發"
    測試員: "🧪 測試"
    分析師: "📊 分析"
    設計師: "🎨 設計"
    架構師: "🏗️ 架構"
    
 # 將優先級映射至專案欄位
  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",
     "篩選條件": ["is:open"],
      "排序":"priority:desc"
    },
    {
      "名稱":"代理工作負載",
      "類型":"表格",
     "groupBy":"assignedAgent",
      "columns": ["title","status","priority","eta"],
      "sort":"eta:asc"
    },
    {
     "name":"衝刺進度",
      "type":"roadmap",
      "dateField":"eta",
      "groupBy":"milestone"
    }
  ]
}

自動化功能

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 將 Issue 轉換為專案卡片
# 列出帶有標籤的 Issue
ISSUES=$(gh issue list --label"enhancement"--json number,title,body)# 將 Issue 新增至專案
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": ["architect", "coder", "tester"]
  }'\
  --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"\
  --轉換規則"自訂"

視覺化與報表

看板分析

# 使用 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":"每日完成數",
        "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"skills-based"\
  --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"Code Review"\
  --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
  }'\
  --cycle-time-tracking \
  --continuous-flow

研究專案看板

# 設定研究看板
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