Claude-skill-registry download-ci-artifacts
Download test results, screenshots, and logs from GitHub Actions
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/download-ci-artifacts" ~/.claude/skills/majiayu000-claude-skill-registry-download-ci-artifacts && rm -rf "$T"
manifest:
skills/data/download-ci-artifacts/SKILL.mdsource content
Download CI Artifacts Skill
Download test artifacts from GitHub Actions CI runs for analysis.
When to Use
- After a CI run completes (pass or fail)
- To analyze test failures
- To review UI screenshots
- Before running
/analyze-test-results
Prerequisites
- GitHub CLI (
) must be authenticatedgh - Must be in the repository directory
Quick Run
# List recent workflow runs gh run list --workflow=tests.yml --limit=5 # Download artifacts from most recent run gh run download --name=test-report --dir=./ci-artifacts/ gh run download --name=ui-screenshots --dir=./ci-artifacts/screenshots/ gh run download --name=slicer-test-results --dir=./ci-artifacts/slicer/ gh run download --name=unit-test-results-py3.11 --dir=./ci-artifacts/unit/
Download Specific Run
# Get run ID from list RUN_ID=<run-id> # Download all artifacts from that run gh run download $RUN_ID --dir=./ci-artifacts/ # Or download specific artifact gh run download $RUN_ID --name=ui-screenshots --dir=./ci-artifacts/screenshots/
Artifact Contents
test-report/
- Summary of all test resultstest-report.md
ui-screenshots/
- UI screenshots captured during tests*.png
- Descriptions of each screenshotmanifest.json
slicer-test-results/
- Full Slicer test outputslicer-output.log
- Screenshots from Slicer testsscreenshots/
unit-test-results-py*/
- JUnit XML test resultsunit-tests.xml
After Download
Run these skills to analyze:
- Parse failures, suggest fixes/analyze-test-results
- Analyze UI for issues/review-ui-screenshots
Example Workflow
# 1. Check latest run status gh run list --workflow=tests.yml --limit=1 # 2. If failed, download artifacts gh run download --dir=./ci-artifacts/ # 3. View test report cat ci-artifacts/test-report/test-report.md # 4. View screenshot manifest cat ci-artifacts/ui-screenshots/manifest.json # 5. Run analysis # (Use /analyze-test-results skill)
Cleanup
After analysis, remove artifacts:
rm -rf ./ci-artifacts/
Troubleshooting
"no artifacts found"
- Run may still be in progress
- Artifacts expire after 30 days
- Check run ID is correct
Auth issues
gh auth status gh auth login