Loading...
Loading...
Compare original and translation side by side
undefinedundefinedundefinedundefined| Capability | Description |
|---|---|
| Multi-reviewer coordination | Swarm agents for parallel code review |
| Automated conflict resolution | Intelligent merge strategies |
| Comprehensive testing | Integration with CI/CD validation |
| Real-time progress tracking | GitHub issue coordination |
| Branch management | Synchronization and cleanup |
| 功能 | 描述 |
|---|---|
| 多评审人员协调 | 采用集群Agent进行并行代码评审 |
| 自动化冲突解决 | 智能合并策略 |
| 全面测试 | 与CI/CD验证集成 |
| 实时进度追踪 | 与GitHub议题协调 |
| 分支管理 | 同步与清理 |
// Initialize review swarm
// Orchestrate review process
task: "Complete PR review with testing and validation",
strategy: "parallel",
priority: "high"
})// Initialize review swarm
// Orchestrate review process
task: "Complete PR review with testing and validation",
strategy: "parallel",
priority: "high"
})undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined[Single Message - Complete PR Management]:
// Initialize coordination
// Create and manage PR
Bash("gh pr create --repo owner/repo --title '...' --head '...' --base 'main'")
Bash("gh pr view 54 --repo owner/repo --json files")
Bash("gh pr review 54 --repo owner/repo --approve --body '...'")
// Execute tests and validation
Bash("npm test && npm run lint && npm run build")
// Track progress
TodoWrite({ todos: [
{ id: "review", content: "Complete code review", status: "completed" },
{ id: "test", content: "Run test suite", status: "completed" },
{ id: "merge", content: "Merge when ready", status: "pending" }
]})[Single Message - Complete PR Management]:
// Initialize coordination
// Create and manage PR
Bash("gh pr create --repo owner/repo --title '...' --head '...' --base 'main'")
Bash("gh pr view 54 --repo owner/repo --json files")
Bash("gh pr review 54 --repo owner/repo --approve --body '...'")
// Execute tests and validation
Bash("npm test && npm run lint && npm run build")
// Track progress
TodoWrite({ todos: [
{ id: "review", content: "Complete code review", status: "completed" },
{ id: "test", content: "Run test suite", status: "completed" },
{ id: "merge", content: "Merge when ready", status: "pending" }
]}) topology: "mesh", // mesh, hierarchical, star, ring
maxAgents: 4,
strategy: "balanced"
}) topology: "mesh", // mesh, hierarchical, star, ring
maxAgents: 4,
strategy: "balanced"
}) type: "reviewer",
name: "PR Reviewer",
capabilities: ["code-review", "security-audit", "performance-check"]
}) type: "reviewer",
name: "PR Reviewer",
capabilities: ["code-review", "security-audit", "performance-check"]
})// Store PR state
action: "store",
key: "pr/54/status",
value: JSON.stringify({
timestamp: Date.now(),
status: "approved",
reviewers: ["user1", "user2"]
})
})
// Retrieve PR state
action: "retrieve",
key: "pr/54/status"
})// Store PR state
action: "store",
key: "pr/54/status",
value: JSON.stringify({
timestamp: Date.now(),
status: "approved",
reviewers: ["user1", "user2"]
})
})
// Retrieve PR state
action: "retrieve",
key: "pr/54/status"
})| Skill | Integration |
|---|---|
| Link PRs to issues |
| Coordinate release PRs |
| Detailed code analysis |
| SPARC development methodology |
| Skill | 集成方式 |
|---|---|
| 将PR与议题关联 |
| 协调发布PR |
| 详细代码分析 |
| SPARC开发方法论 |
gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)
git status --porcelain
gh pr list --state open --limit 1 >/dev/null || echo 'No open PRs'
npm test --silent || echo 'Tests may need attention'gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)
git status --porcelain
gh pr list --state open --limit 1 >/dev/null || echo 'No open PRs'
npm test --silent || echo 'Tests may need attention'gh pr status || echo 'No active PR in current branch'
git branch --show-current
gh pr checks || echo 'No PR checks available'
git log --oneline -3gh pr status || echo 'No active PR in current branch'
git branch --show-current
gh pr checks || echo 'No PR checks available'
git log --oneline -3