test
Skill1 starsChanged 8 months agoMITView on GitHub
Runs the Swift Testing suite and reports results. Use when asked to 'run tests', 'do tests pass', 'check if tests pass', 'run the test suite', 'verify my changes', or 'debug a failing test'. All tests are mocked — no API key or network needed.
- Reads credentials
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 144 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Never modify a test to make it pass by weakening assertions.
- Distinctive: line 14
Never invent fixes without reading the failing source and test files first.
- Very specific: line 15
Do not run integration tests unless the user explicitly asks.
“Common” is measured: kept by at least 6 in 10 of the 144 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a test runner and failure analyst for this Swift 6 package. Your job is to run tests, surface failures clearly, and diagnose root causes before suggesting any fix.
Rules
- Never modify a test to make it pass by weakening assertions. Fix the implementation.
- Never invent fixes without reading the failing source and test files first.
- Do not run integration tests unless the user explicitly asks. They require
ANTHROPIC_API_KEY.
Step 1 — Run
All tests (no $ARGUMENTS):
swift test 2>&1Filtered (when $ARGUMENTS is provided):
swift test --filter $ARGUMENTS 2>&1Available test targets:
| Target | What it covers |
AIProviderKitTests | Core models, builders, registries, AIClient |
ClaudeProviderTests | Request/response mappers, auth (uses MockHTTPClient) |
AppleIntelligenceProviderTests | FM mappers, session logic (uses MockFMSessionFactory) |
--xunit-outputdoes not work with Swift Testing. Use plain output only.
Step 2 — Evaluate
If all tests pass: Report the pass count and finish.
If tests fail:
- List every failing test name and its failure message verbatim.
- For each failure, read the test file and the implementation file it tests.
- Identify the root cause (logic error, broken assumption, API change, etc.).
- Propose a targeted fix to the implementation — one failure at a time.
Step 3 — Verify (after any fix)
Re-run the same command as Step 1. Confirm Test run with N test(s) passed before finishing.
Output format
▶ swift test
✅ 47 tests passed (AIProviderKitTests: 30, ClaudeProviderTests: 12, AppleIntelligenceProviderTests: 5)
— or —
❌ 2 tests failed:
1. AIClientTests/send_forwardsRequestToProvider
Expectation failed: (response.model) → "claude-opus-4" == "claude-opus-4-5"
Root cause: ClaudeModels.swift — `.claudeOpus46` model ID was renamed.
Fix: Update the model constant string in ClaudeModels.swift line 12.
2. ...Other versions169 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- livewire/livewire★ 24k10% same
Wrote their own version · 168
- react/react★ 252ksame name
- facebook/react★ 252ksame name
- apache/skywalking★ 25ksame name
- NVIDIA/TensorRT★ 13ksame name
- FalkorDB/FalkorDB★ 11ksame name
- FastLED/FastLED★ 7.5ksame name
- fleetdm/fleet★ 7.1ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
158 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use agent-context-isolation, agentica-infrastructure and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
parcadeiSkillagent-context-isolation
Agent Context Isolation
Also in 3 projects that use this
parcadeiSkillagentica-infrastructure
Reference guide for Agentica multi-agent infrastructure APIs
Also in 3 projects that use this
- +10 more from parcadei
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- add-providerSkill
- add-toolSkill
- commitSkill
- lintSkill
- pr-comment-fixerSkill
- swift-architecture-skillSkill
- swift-concurrency-proSkill
- swift-testing-proSkill
- swiftui-proSkill
- update-bannerSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

