verify-composite-expansion
Verify composite action expansion output by comparing CLI-generated mermaid charts with actual GitHub Actions logs. Use when testing or debugging the --expand-composite-actions feature against any GitHub Actions workflow run. Triggered by requests like "composite展開を検証", "verify composite expansion", or "compare CLI output with logs".
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Verify Composite Expansion
Verify the correctness of composite action expansion by comparing CLI output with actual GitHub Actions logs.
Workflow
1. Run the verification script
Use scripts/verify_composite.sh to collect all data at once.
.claude/skills/verify-composite-expansion/scripts/verify_composite.sh <org/repo> <run_id> [output_dir]
Example:
.claude/skills/verify-composite-expansion/scripts/verify_composite.sh directus/directus 21767232907 .
The script performs:
- Run CLI with
--expand-composite-actions=true→{repo}_composite.md - Run CLI without the flag →
{repo}.md -
gh run viewto list jobs - Fetch step details for each job via GitHub API
- Show first 50 lines of logs for each job
2. Running individual commands manually
With composite expansion:
deno run --allow-net --allow-env --allow-write cli.ts --token "$(gh auth token)" --expand-composite-actions=true "https://github.com/{org}/{repo}/actions/runs/{run_id}" -o {repo}_composite.md
Without composite expansion:
deno run --allow-net --allow-env --allow-write cli.ts --token "$(gh auth token)" "https://github.com/{org}/{repo}/actions/runs/{run_id}" -o {repo}.md
List jobs:
gh run -R {org}/{repo} view {run_id}
Get step details for a job (gaps in step numbers indicate composite sub-steps):
gh api repos/{org}/{repo}/actions/jobs/{job_id} --jq '.steps[] | "\(.number)\t\(.name)\t\(.started_at)\t\(.completed_at)"'
View actual logs for a job:
gh run -R {org}/{repo} view --job={job_id} --log
3. Verification checklist
When comparing outputs, check:
- Without expansion: Composite actions appear as a single step (e.g., "Prepare (25s)")
-
With expansion: That step is expanded into sub-steps with
(sub)prefix - API step numbers: Gaps in numbering correspond to composite sub-steps
- Time consistency: Total duration of sub-steps roughly matches the single composite step duration
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!