/peekie:peekiefrom peekie
Routes Xcode .xcresult parsing to the appropriate peekie subcommand for test results, warnings, errors, coverage, or attachments. Useful for CI analysis and debugging build artifacts.
Ships in peekie. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
peekie is a CLI for Xcode .xcresult bundles. Five data-axis subcommands, each with its own dedicated skill.
Once any of these skills is in play, route every read of the .xcresult through peekie. Don't fall back to xcrun xcresulttool, xcrun xccov, xcparse, or hand-rolled JSON parsing — not even when peekie seems to be missing a feature. The whole point of these skills is that peekie already runs those tools under the hood and normalizes the output; reaching past peekie reintroduces the footguns it exists to hide (--only-failures returning empty, build-results JSON shape changing between Xcode versions, xccov returning the raw fraction the user has to convert by hand, and so on).
If peekie genuinely can't do what's asked — say so and stop. Don't reinvent the data path through xcrun. The acceptable downstream tools are jq for filtering peekie's JSON and ordinary shell (printf, control flow). That's the whole vocabulary.
If peekie isn't on $PATH, install it (see Installation). Don't substitute another tool.
| User intent | Sub-skill |
|---|---|
| Test results, failures, smoke checks, "did the tests pass?" | peekie-tests |
Build warnings, deprecations, #warning(...) markers | peekie-warnings |
| Build errors, "why is the build broken?" | peekie-errors |
| Code coverage, "what's the coverage?" | peekie-coverage |
| Test attachments — screenshots, logs, blobs | peekie-attachments |
| SonarQube generic-test report | peekie-tests (uses --format sonar --tests-path …) |
If the user asks for a combination (e.g. "show me failures and their attachments", "fail CI on errors and warnings"), pull recipes from each relevant sub-skill and chain them.
peekie tests <xcresult> [--format json|list|sonar] default: list
peekie warnings <xcresult> [--format json|list] default: json
peekie errors <xcresult> [--format json|list] default: json
peekie coverage <xcresult> [--format json|list] default: json
peekie attachments <xcresult> --output-dir <dir> [--format json|list] default: json
Every subcommand also accepts -v / --verbose for debug logging. Each subcommand is single-purpose — to get both warnings and coverage, run two commands and merge their outputs.
If peekie is not on $PATH, suggest:
mise use github:dodobrands/peekie
Or download a binary from Releases. Do not suggest swift run peekie … — that's the contributor flow, not the user flow.
errors=$(peekie errors Build.xcresult | jq 'length')
warnings=$(peekie warnings Build.xcresult | jq 'length')
coverage=$(peekie coverage Build.xcresult | jq '.coverage * 100 | floor')
echo "errors=$errors warnings=$warnings coverage=${coverage}%"
if [ "$errors" -gt 0 ]; then
peekie errors Build.xcresult --format list
exit 1
fi
The naive peekie attachments … --include failure leaves every attachment from every test in --output-dir — --include filters the printed manifest, not files on disk. For a clean per-failure directory, loop over failing test IDs with --test-id (each invocation scopes both manifest and on-disk extraction to that one test):
OUT="$CI_ARTIFACTS/failed-attachments"
mkdir -p "$OUT"
peekie tests Build.xcresult --format json --include failure \
| jq -r '.modules[].tests[].qualifiedName | split(" / ") | .[1:] | join("/")' \
| while read -r id; do
peekie attachments Build.xcresult --output-dir "$OUT" --test-id "$id" --format json >/dev/null
done
The jq filter drops the module-name prefix from each qualifiedName — xcresulttool --test-id (which peekie attachments calls under the hood) expects the bare suite-path id without the module. See peekie-attachments for details.
ARTIFACTS=$CI_ARTIFACTS
peekie tests Build.xcresult --format json > "$ARTIFACTS/tests.json"
peekie warnings Build.xcresult --format json > "$ARTIFACTS/warnings.json"
peekie errors Build.xcresult --format json > "$ARTIFACTS/errors.json"
peekie coverage Build.xcresult --format json > "$ARTIFACTS/coverage.json"
peekie attachments Build.xcresult --output-dir "$ARTIFACTS/attachments" --format json > "$ARTIFACTS/attachments.json"
xcrun xcresulttool directly when one of the five subcommands gives you the same data. Each subcommand runs only the minimum invocations needed.--include to work the same way across subcommands — only peekie tests and peekie attachments have it; on attachments it filters the manifest, not files on disk. warnings, errors, coverage have no --include; pipe to jq instead.jq.swift run peekie … to end-users — that's the contributor flow. Use mise use github:dodobrands/peekie or a release binary.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xcode, xcresult, peekie, test-analysis, build-analysis, coverage
npx claudepluginhub dodobrands/peekie --plugin peekie6 skills in this plugin
/peekie-attachmentsExtract and list test attachments (screenshots, logs, blobs) from an Xcode `.xcresult` bundle via `peekie attachments`. Trigger when the user asks about attached files in a bundle — e.g. "extract failure screenshots from /tmp/Tests.xcresult to /tmp/out", "save attachments for a single test", "what's attached to my failing tests?", "dump every attachment from this xcresult", "give me a manifest of attachments with file paths and content types", "I need just the attachments for `ExampleSUITests/failure()`". `--output-dir` is required. Note `--include` filters the printed manifest, NOT files written to disk — use `--test-id` to scope disk writes./peekie-coverageExtract code coverage from an Xcode `.xcresult` bundle via `peekie coverage`. Trigger when the user asks about coverage from a bundle — e.g. "what's the coverage in /tmp/Tests.xcresult?", "coverage per module please", "covered vs total lines for each file", "give me overall coverage as a percentage I can print in CI", "is coverage above 70%?", "JSON of coverage per file for a custom report". One subcommand, hierarchical modules → files JSON with covered/total line counts./peekie-errorsList build errors from an Xcode `.xcresult` bundle via `peekie errors`. Trigger when the user asks about why a build broke or wants structured error output — e.g. "why is the build broken in /tmp/Build.xcresult?", "show me build errors from this CI run", "how many errors are there in this xcresult?", "give me JSON of compilation errors I can pipe to jq", "fail my CI step if errors > 0", "first three errors with file and line, please". One subcommand, flat sorted array per error, same shape as `peekie warnings`.Other plugins' skills for the same job