CI Orchestration by constellos/claude-code-plugins
npx skills add https://github.com/constellos/claude-code-plugins --skill 'CI Orchestration'通过快速失败错误检测和预览 URL 提取,实现全面的 CI/CD 工作流管理。
CI 编排提供对 GitHub Actions 和其他 CI 系统的显式控制。监控检查状态、提取预览 URL、调试故障,并使用智能快速失败模式管理工作流重试。
# Check PR status
gh pr checks 42
# Watch and wait
gh pr checks 42 --watch
# Get JSON output
gh pr view 42 --json statusCheckRollup
现有的 ci-status.ts 工具提供了全面的预览 URL 提取功能:
import { extractPreviewUrls } from '../shared/hooks/utils/ci-status.js';
// Extract from CI output
const urls = extractPreviewUrls(ciOutput);
// Returns: { web: 'https://...', marketing: 'https://...' }
# Wait with fail-fast
awaitCIWithFailFast "$PWD" 42 10 # 10 minute timeout
# Detects:
# - Merge conflicts
# - Branch divergence
# - Failed checks
# - Workflow errors
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# Get latest workflow run
RUN_ID=$(gh run list --branch $(git branch --show-current) --limit 1 --json databaseId -q '.[0].databaseId')
# Re-run failed jobs
gh run rerun $RUN_ID --failed
| 钩子 | 行为 |
|---|---|
| await-pr-status | 在 gh pr create 后等待 CI |
| commit-task-await-ci-status | 在 SubagentStop 时自动提交并检查 CI |
| commit-session-await-ci-status | 在 Stop 时进行阻塞式 CI 检查 |
来自 ci-status.ts:
awaitCIWithFailFast(cwd, prNumber, timeout) - 使用快速失败模式等待extractPreviewUrls(output) - 解析 Vercel/Netlify URLgetLatestCIRun(cwd, branch) - 获取工作流运行 IDformatCiChecksTable(checks) - 格式化为 Markdown 表格# Create PR
PR=$(gh pr create --title "Add feature" --body "..." --json number -q .number)
# Wait for CI
awaitCIWithFailFast "$PWD" $PR 10
# Extract preview URLs
CHECKS=$(gh pr view $PR --json statusCheckRollup -q '.statusCheckRollup')
PREVIEW=$(extractPreviewUrls "$CHECKS")
echo "Preview: $PREVIEW"
# Get failed checks
gh pr checks 42 --json name,conclusion,detailsUrl \
--jq '.[] | select(.conclusion=="FAILURE") | {name, url: .detailsUrl}'
# View logs
gh run view $(gh run list --limit 1 --json databaseId -q '.[0].databaseId') --log-failed
MAX_RETRIES=3
RETRY=0
while [ $RETRY -lt $MAX_RETRIES ]; do
if gh pr checks $PR --watch; then
echo "✓ CI passed"
break
fi
RETRY=$((RETRY + 1))
if [ $RETRY -lt $MAX_RETRIES ]; then
echo "Retry $RETRY/$MAX_RETRIES..."
gh run rerun $(gh run list --limit 1 --json databaseId -q '.[0].databaseId') --failed
fi
done
每周安装量
0
代码仓库
GitHub 星标数
6
首次出现
1970年1月1日
安全审计
Comprehensive CI/CD workflow management with fail-fast error detection and preview URL extraction.
CI Orchestration provides explicit control over GitHub Actions and other CI systems. Monitor check status, extract preview URLs, debug failures, and manage workflow retries with intelligent fail-fast patterns.
# Check PR status
gh pr checks 42
# Watch and wait
gh pr checks 42 --watch
# Get JSON output
gh pr view 42 --json statusCheckRollup
The existing ci-status.ts utility provides comprehensive preview URL extraction:
import { extractPreviewUrls } from '../shared/hooks/utils/ci-status.js';
// Extract from CI output
const urls = extractPreviewUrls(ciOutput);
// Returns: { web: 'https://...', marketing: 'https://...' }
# Wait with fail-fast
awaitCIWithFailFast "$PWD" 42 10 # 10 minute timeout
# Detects:
# - Merge conflicts
# - Branch divergence
# - Failed checks
# - Workflow errors
# Get latest workflow run
RUN_ID=$(gh run list --branch $(git branch --show-current) --limit 1 --json databaseId -q '.[0].databaseId')
# Re-run failed jobs
gh run rerun $RUN_ID --failed
| Hook | Behavior |
|---|---|
| await-pr-status | Waits for CI after gh pr create |
| commit-task-await-ci-status | Auto-commits and checks CI on SubagentStop |
| commit-session-await-ci-status | Blocking CI check on Stop |
From ci-status.ts:
awaitCIWithFailFast(cwd, prNumber, timeout) - Wait with fail-fastextractPreviewUrls(output) - Parse Vercel/Netlify URLsgetLatestCIRun(cwd, branch) - Get workflow run IDformatCiChecksTable(checks) - Format as markdown table# Create PR
PR=$(gh pr create --title "Add feature" --body "..." --json number -q .number)
# Wait for CI
awaitCIWithFailFast "$PWD" $PR 10
# Extract preview URLs
CHECKS=$(gh pr view $PR --json statusCheckRollup -q '.statusCheckRollup')
PREVIEW=$(extractPreviewUrls "$CHECKS")
echo "Preview: $PREVIEW"
# Get failed checks
gh pr checks 42 --json name,conclusion,detailsUrl \
--jq '.[] | select(.conclusion=="FAILURE") | {name, url: .detailsUrl}'
# View logs
gh run view $(gh run list --limit 1 --json databaseId -q '.[0].databaseId') --log-failed
MAX_RETRIES=3
RETRY=0
while [ $RETRY -lt $MAX_RETRIES ]; do
if gh pr checks $PR --watch; then
echo "✓ CI passed"
break
fi
RETRY=$((RETRY + 1))
if [ $RETRY -lt $MAX_RETRIES ]; then
echo "Retry $RETRY/$MAX_RETRIES..."
gh run rerun $(gh run list --limit 1 --json databaseId -q '.[0].databaseId') --failed
fi
done
Weekly Installs
0
Repository
GitHub Stars
6
First Seen
Jan 1, 1970
Security Audits
安全威胁建模工具 - 为代码仓库生成可操作的应用安全威胁模型
579 周安装
Rust领域错误处理策略:分类、恢复与最佳实践指南
580 周安装
AWS 架构图生成器 - 自动从 CloudFormation/CLI 生成 AWS 架构图
582 周安装
Google Drive 文件所有权转移方案 - Google Workspace CLI 自动化操作指南
582 周安装
Entity Framework Core 模式指南:性能优化、迁移管理与最佳实践
583 周安装
Google Workspace 安全警报处理教程 - 使用 gws CLI 列出、查看和确认警报
583 周安装