xiaohongshu
xiaohongshu
getting-pr-artifacts
Use when needing workflow artifacts from PR - runs in subagent to find jobs with artifacts, returns gh commands to download them without consuming context
Full skill instructions
Find workflow jobs that produced artifacts and provide commands to download them.
Core principle: Return download commands, not artifacts themselves. Artifacts can be large (100MB+).
REQUIRED BACKGROUND: Use awaiting-pr-workflows first to ensure workflows are complete.
Use when you need:
When NOT to use:
awaiting-pr-workflows)# Get PR commit
PR_COMMIT=$(gh pr view $PR_NUM --json headRefOid -q '.headRefOid')
# Get runs for this commit
gh run list --commit $PR_COMMIT --json databaseId,name,conclusion
RUN_ID=<from step 1>
# List artifacts for this run
gh run view $RUN_ID --json artifacts --jq '.artifacts[] | {
name: .name,
size: .size_in_bytes,
expired: .expired,
id: .id
}'
For each artifact, provide:
gh command to downloadPR #{number} Workflow Artifacts (commit {sha}):
## Available Artifacts
### Run: iOS Test (id: 19727163744)
#### 1. ios-e2e-test-results (24.3 MB)
**Download:**
```bash
gh run download 19727163744 -n ios-e2e-test-results -D /tmp/ios-artifacts
Contents: Likely xcresult bundle, screenshots, logs
Extract/Analyze:
# List contents
ls -lh /tmp/ios-artifacts/
# If it's a zip:
unzip -l /tmp/ios-artifacts/ios-e2e-test-results.zip
# For xcresult bundles (iOS-specific):
# See the 'using-ios-xcresult-artifacts' skill
Download:
gh run download 19727163744 -n test-coverage-report -D /tmp/coverage
Contents: HTML coverage report
View:
open /tmp/coverage/index.html
No artifacts produced
Summary: 2 artifacts available (25.5 MB total)
List all: gh run list --commit {sha} | while read id; do gh run view $id --json artifacts; done
## Common Artifact Types
### iOS/Xcode Artifacts
- `*.xcresult` - Test results bundle (use `using-ios-xcresult-artifacts` skill)
- `*.app` - Application bundle
- `*.ipa` - iOS app package
- `screenshots/` - UI test screenshots
### Test Artifacts
- `coverage/` - Code coverage reports (HTML/XML)
- `test-results.xml` - JUnit test results
- `*.log` - Test execution logs
### Build Artifacts
- `dist/` - Built application files
- `*.tar.gz` - Compressed build outputs
- `build-logs/` - Compilation logs
## Download Strategies
### Download Single Artifact
```bash
# By name
gh run download $RUN_ID -n artifact-name -D /destination
# All artifacts from run
gh run download $RUN_ID -D /destination
# Project-local (in .gitignore)
gh run download $RUN_ID -n ios-results -D .artifacts/
# System temp (cleaned automatically)
gh run download $RUN_ID -n ios-results -D /tmp/pr-artifacts/
# User's Downloads
gh run download $RUN_ID -n ios-results -D ~/Downloads/
# Get size first
SIZE=$(gh api repos/{owner}/{repo}/actions/runs/$RUN_ID/artifacts \
--jq '.artifacts[] | select(.name == "ios-results") | .size_in_bytes')
# Convert to MB
SIZE_MB=$((SIZE / 1024 / 1024))
echo "Artifact is ${SIZE_MB}MB"
# Ask user if > 50MB
if [ $SIZE_MB -gt 50 ]; then
echo "Large artifact. Proceed? (y/n)"
fi
#!/bin/bash
# Run in subagent
PR_NUM=$1
PR_COMMIT=$(gh pr view $PR_NUM --json headRefOid -q '.headRefOid')
REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
# Get all runs
RUN_IDS=$(gh run list --commit $PR_COMMIT --json databaseId -q '.[].databaseId')
# For each run, check for artifacts
for RUN_ID in $RUN_IDS; do
RUN_NAME=$(gh run view $RUN_ID --json name -q '.name')
ARTIFACTS=$(gh api "repos/$REPO/actions/runs/$RUN_ID/artifacts" \
--jq '.artifacts[] | {name: .name, size: .size_in_bytes}')
if [ -n "$ARTIFACTS" ]; then
echo "## Run: $RUN_NAME (id: $RUN_ID)"
echo "$ARTIFACTS" | jq -r '"### \(.name) (\(.size / 1024 / 1024 | floor)MB)"'
echo "Download: gh run download $RUN_ID -n {name} -D /tmp/artifacts"
fi
done
Downloading artifacts in main context
Not checking artifact size
Not suggesting next steps
| Task | Command |
|---|---|
| List artifacts for run | gh run view $RUN_ID --json artifacts |
| Download by name | gh run download $RUN_ID -n name -D path |
| Download all from run | gh run download $RUN_ID -D path |
| Get artifact metadata | gh api repos/{owner}/{repo}/actions/runs/$RUN_ID/artifacts |
| List all for commit | gh run list --commit $SHA then check each |
For xcresult bundles: After downloading iOS test artifacts, use the using-ios-xcresult-artifacts skill to analyze them.
For logs in artifacts: If logs are packaged in artifacts rather than workflow logs, download first then analyze locally.
CRITICAL: Always run in subagent.
Use Task tool with subagent_type='general-purpose'.
Give them this skill and the PR number.
They return artifact list + download commands.
Why: Prevents downloading large files into context. Main agent gets commands and can selectively download.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience