/peekie:peekie-warningsfrom peekie
Lists build warnings from Xcode .xcresult bundles via `peekie warnings`. Handles Apple's #warning() mis-tagging as Swift Compiler Error.
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.
None: SKILL.md is the whole skill.
peekie warningsList every build warning in a .xcresult bundle as a flat sorted JSON array (or human-readable list).
peekie warnings <xcresult-path> [flags]
| Flag | Default | Notes |
|---|---|---|
<xcresult-path> | — | Required positional. Path to the .xcresult bundle. |
--format json|list | json | Output format. |
-v, --verbose | false | Debug-level logging to stderr. |
There is no --include flag on peekie warnings. Filter with jq.
--format json (default)Flat sorted array, one entry per warning:
[
{"file": "Foo.swift", "line": 42, "column": 8, "type": "DeprecatedDeclaration", "message": "'oldFoo()' is deprecated: use bar()"},
{"file": "Bar.swift", "line": 12, "column": 4, "type": "ActorIsolatedCall", "message": "Main actor-isolated initializer cannot be called from outside the actor"},
{"file": "Calculator.swift", "line": 7, "column": 17, "type": "Swift Compiler Error", "message": "Some warning from Calculator"}
]
line / column are null when xcresult didn't emit them.type values are the raw Apple issueType strings: Swift Compiler Warning, Swift Compiler Error, DeprecatedDeclaration, No-usage, ActorIsolatedCall, UnnecessaryEffectMarker, Warning, plus whatever new categories Apple adds. Xcode 27 spells No-usage as NoUsage; peekie normalizes it to No-usage.--format listOne line per warning, grouped by file.
#warning(...) quirk — importantXcode mis-tags #warning("text") directives as type: "Swift Compiler Error" even though they're warnings and appear in peekie warnings output (not peekie errors).
The message for a #warning("Some text") directive is just the bare string passed to the directive — "Some text" — with no #warning wrapper, no quote marks, no syntactic giveaway. Don't try to detect them by grepping the message for #warning; the substring isn't there.
Default assumption: every entry with type == "Swift Compiler Error" in peekie warnings output is a #warning(...) developer marker, not a real defect. Real compiler errors land in peekie errors, not here. Treat the count of Swift Compiler Error entries as "TODO markers left in the source"; treat the other types as defects worth prioritizing.
If you absolutely need to confirm, open the source file at file:line:column — the line will literally start with #warning(...).
# Count of #warning markers (since all Swift Compiler Error entries are markers)
peekie warnings Build.xcresult | jq 'map(select(.type == "Swift Compiler Error")) | length'
peekie warnings Build.xcresult | jq 'length'
peekie warnings Build.xcresult | jq 'group_by(.type) | map({type: .[0].type, count: length})'
peekie warnings Build.xcresult \
| jq -r 'map(select(.type == "DeprecatedDeclaration")) | .[] | "\(.file):\(.line // "?"): \(.message)"'
#warning(...) markers separately from real warningstype == "Swift Compiler Error" IS the proxy for #warning(...) directives here (see the quirk above) — filter on type directly, the #warning substring is not in .message:
peekie warnings Build.xcresult | jq '
group_by(.type == "Swift Compiler Error")
| map({kind: (if .[0].type == "Swift Compiler Error" then "#warning markers" else "real warnings" end), count: length})
'
--include — it doesn't exist on peekie warnings. Pipe to jq to filter by type, file, or message.peekie errors. (But do expect #warning(...) directives, even though they're tagged Swift Compiler Error.)length as a "real warnings" count when #warning(...) markers are present — filter them out first or the number misleads.xcrun xcresulttool get build-results and parse it by hand — peekie warnings already runs that and normalizes the output.peekie-errors — same shape, but for actual build errors.peekie-tests — test results from the same bundle.peekie (umbrella) — combined recipes (errors + warnings + coverage in one CI step).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dodobrands/peekie --plugin peekie6 skills in this plugin
/peekieRoute Xcode `.xcresult` parsing work to the right `peekie` subcommand. Trigger on broad bundle intent — e.g. "look at this xcresult: /tmp/Build.xcresult", "parse this test bundle", "what's in this build artifact?", "can you summarize this `.xcresult`?", "I have an xcresult from CI, what should I do with it?". Five dedicated sub-skills (`peekie-tests`, `peekie-warnings`, `peekie-errors`, `peekie-coverage`, `peekie-attachments`) cover the data axes; this umbrella picks the right one./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`./peekie-testsParse and format test results from an Xcode `.xcresult` bundle via `peekie tests`. Trigger when the user asks anything about test outcomes from a bundle — e.g. "did the tests pass in /tmp/Tests.xcresult?", "show me failing tests from this build", "what tests failed?", "which tests were skipped?", "give me a JSON list of every test in this xcresult", "generate a SonarQube test report from this bundle", "I need the fully-qualified names of failing tests for CI", "extract test results plus their attachments". Covers the `tests` subcommand exhaustively: filtering by status, device labels for matrix runs, attachments export, sonar generic-test format.Other plugins' skills for the same job