Skip to content
SwiftSkills

Skill

CRAP Check

CRAP Check is an agent skill for testing iOS apps by n0an, licensed MIT. It works with Claude Code, Codex, Cursor and Gemini CLI. Install: `npx skills add https://github.com/n0an/crap-check --skill crap-check`.

Added

Covers several stacks (27 languages via lizard); Swift and iOS via llvm-cov or an Xcode .xcresult. Agent skill that ranks functions by the CRAP metric (cyclomatic complexity weighed against test coverage) and drives the score down by writing missing tests or simplifying code. Complexity comes from lizard (SwiftLint optional); coverage from lcov, Cobertura, llvm-cov JSON or an Xcode .xcresult read through xccov. The scoring script exits 1 above the threshold, so it also runs in CI.

Compare Swift Testing skills and agent test tools →

Install

npx skills add https://github.com/n0an/crap-check --skill crap-check

Copied from the upstream source on 27 Oct 2026. Check the repository before you run it. Works with Claude Code, Codex, Cursor, Gemini.

  • Peekie

    CLI for Xcode .xcresult bundles with subcommands for tests, warnings, errors, coverage and attachments, emitting JSON for CI and coding agents. Supports XCTest and Swift Testing and ships an agent skill plugin.

    Dodo Brands · Claude Code, Cursor

    Added · Apache-2.0

  • MCP server

    Swift Testing

    xcforge

    MCP server and CLI in one native binary (104 MCP tools, 19 CLI command groups) for building, testing, automating and diagnosing iOS apps. Its test tools parse .xcresult bundles instead of raw xcodebuild output: test_sim returns pass/fail counts, failure messages with source locations and failure screenshots, plus test_failures, test_coverage, list_tests, test plan inspection and known-failures gating. Ships its own agent skill via xcforge skill install.

    justinthevoid · Claude Code, Cursor +3

    Added · MIT

  • iOS Testing Strategy Agent Skill

    Agent skill that helps plan iOS test strategy across unit, UI and integration layers. README documents npx skills add with interactive agent selection (Claude Code, Codex, Cursor, Gemini) plus a Claude Code plugin install path.

    Livsy90 · Claude Code, Codex +2

    Added · MIT

  • Agent Gauntlet

    Uncle Bob-style agent pipeline with deterministic quality gates (specifier → coder → cleaner → hardener → handoff). Swift extras include llvm-cov/xcresult CRAP scoring, optional SwiftLint structure rules and Muter mutation evidence.

    n0an · Claude Code, Cursor +2

    Added · MIT

  • Pragma

    Spec-to-release scaffold for iOS development with Claude Code: skills for /spec, /plan, /feature, /gates and /review, an AGENTS.md instructions layer, session memory, a guard hook for protected files, and GitHub Actions that re-run a test-first commit-order check and a gate-integrity check on every PR. Tested with Claude Code (the README says it was developed and tested in Claude Code only); the README's reference app is a SwiftUI and SwiftData project.

    akshaypimprikar · Claude Code

    Added · MIT

  • Maestro Mobile Testing Skill

    Skill for writing, running and debugging Maestro UI test flows for native iOS (SwiftUI/UIKit), Android, React Native, Flutter and web, verified against Maestro CLI 2.11.0. References cover selectors, flow control, auth and test data, and CI.

    foreztgump · Claude Code, Codex +2

    Added · MIT