testing-strategy
Skill2 starsChanged 8 months agoMITView on GitHub
Comprehensive testing approach for iOS apps built with Claude Code. Covers what Claude Code can test automatically (unit tests, build verification), what requires manual testing (interactive behavior, visual feel), and how to set up CI/CD with GitHub Actions. Use this skill during and after the build phase, and especially before shipping. Becomes critical for post-v1 updates where regressions hide.
37 other projects use a version of this.
Adopted by
Most recently taken up by
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- vospr/context-engineering-templatetheir own version, first seen Oct 1, 2026
- lgzarturo/codeconductortheir own version, first seen Sep 30, 2026
- Cure-Consulting-Group/ProductEngineeringSkillstheir own version, first seen Sep 28, 2026
- komluk/scaffoldingtheir own version, first seen Sep 28, 2026
- Ygohel18/skillstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use react-patterns, api-design and 9 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.
benshapyroSkillreact-patterns
Modern React patterns for TypeScript applications including hooks, state management, and component composition. Use when building React components, managing state, or implementing React best practices.
Also in 4 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 10 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 5 projects that use this
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 3 projects that use this
CloudAI-XSkilldatabase-design
Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.
Also in 3 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 6 projects that use this
- +4 more from openai
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- anthropics/knowledge-work-plugins★ 26ksame name
- irahardianto/awesome-agv★ 157same name
- AnastasiyaW/codex-claude-code-config★ 153same name
- zakariaf/Flutter-Skills★ 52same name
- shinpr/agentic-code★ 49same name
- addxai/enterprise-harness-engineering★ 44same name
- drafthq/draft★ 40same name
- Hack23/European-Parliament-MCP-Server★ 28same name
- suhailkakar/the-skills★ 26same name
- komluk/scaffolding★ 15same name
27 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.
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- app-specSkill
- app-store-prepSkill
- app-visionSkill
- dark-mode-legibilitySkill
- data-persistenceSkill
- design-systemSkill
- device-testingSkill
- figma-to-codeSkill
- git-workflowSkill
- mcp-setupSkill
- pixel-and-stroke-geometrySkill
- platform-gotchasSkill
- polish-and-refinementSkill
- post-launchSkill
- scaffoldingSkill
- screen-by-screenSkill
- session-managementSkill
- swiftui-native-firstSkill
- uikit-bridgingSkill
- verification-loopSkill
- xcode-integrationSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 33 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Every time Claude Code finishes work on a screen or feature:
- Distinctive: line 35
Don't test views directly for v1.
- Distinctive: line 80
Do animations feel smooth or janky?
- Distinctive: line 100
When you merge PRs from Conductor, nothing verifies the merge didn't break something.
- Distinctive: line 137
Test regressions from new code
- Distinctive: line 167
Test gesture recognizers (swipe, long press, pinch)
- Distinctive: line 168
Verify sheet dismiss behavior
- Distinctive: line 169
Test keyboard appearance and dismissal
- Distinctive: line 177
No workaround exists for this yet.
“Common” is measured: kept by at least 6 in 10 of the 33 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
Testing Strategy
Three layers of testing, from fully automated to fully manual. Use all three.
Layer 1: Automated Build Verification (Claude Code Does This)
Every time Claude Code finishes work on a screen or feature:
## Build Verification (add to CLAUDE.md)
After every change:
1. Build with XcodeBuildMCP for iPhone simulator
2. If build fails, fix errors and rebuild
3. Do not present work as "done" if the build failsThis catches: syntax errors, missing imports, type mismatches, broken references.
This does NOT catch: runtime crashes, visual bugs, interaction problems.
Layer 2: Automated Unit Tests (Claude Code Writes and Runs These)
When to Add Tests
For v1, you don't need tests on every view. Focus tests on:
- Data models — Does creating, updating, deleting work correctly?
- Business logic — Does the stitch counter increment properly? Does progress calculate correctly?
- State management — Does updating a value in one place propagate everywhere?
Don't test views directly for v1. View testing in SwiftUI is complex and low-ROI for a first release.
Asking Claude Code to Write Tests
Write unit tests for the Project model. Test:
- Creating a project with all required fields
- Updating the stitch count and verifying progress calculates
- Archiving a project
- Deleting a project
Use Swift Testing framework (not XCTest).
Place tests in Tests/[AppName]Tests/
Run the tests with XcodeBuildMCP after writing them.Test Conventions for CLAUDE.md
## Testing
- Use Swift Testing framework (@Test, #expect) not XCTest
- Test file naming: [ModelName]Tests.swift
- Test location: Tests/[AppName]Tests/
- Run tests after writing them. Fix failures before committing.
- Focus tests on models and business logic, not views.
- Every model should have tests for create, update, delete.Running Tests
Claude Code with XcodeBuildMCP:
Run all tests. Report results. If any fail, analyze
the failure and fix the code (not the test, unless the
test expectation is wrong).Layer 3: Manual Testing (You Do This)
What Only Humans Can Test
Interactive feel:
- Does the haptic feedback feel right on the stitch counter?
- Does the sheet dismiss gesture feel natural?
- Is the scroll speed comfortable on a long list?
- Do animations feel smooth or janky?
Visual judgment:
- Does the overall layout feel balanced?
- Is the typography hierarchy clear at a glance?
- Does dark mode look good (not just "work")?
- Does the app feel like an iOS app or a web app wearing iOS clothes?
Real-world usage:
- Can your wife complete the core task without asking you how?
- Does the app survive being backgrounded for 30 minutes?
- Does it handle a phone call interruption gracefully?
- Does it work on your specific iPhone model?
See the device-testing skill for the complete manual testing script.
CI/CD with GitHub Actions (Optional, Recommended Post-v1)
Why
When you merge PRs from Conductor, nothing verifies the merge didn't break something. For v1, you catch this manually. For ongoing development, automate it.
Setup
Create .github/workflows/build-and-test.yml:
name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_26.3.app
- name: Build
run: xcodebuild build -scheme [AppName] -destination 'platform=iOS Simulator,name=iPhone 16 Pro'
- name: Test
run: xcodebuild test -scheme [AppName] -destination 'platform=iOS Simulator,name=iPhone 16 Pro'Tell Claude Code:
Create a GitHub Actions workflow that builds and tests the
project on every push to main and on every pull request.
Use the configuration from the testing-strategy skill.What CI Catches
- Build failures from merge conflicts
- Test regressions from new code
- Missing files or broken imports after branch merges
What CI Doesn't Catch
- Visual regressions (layout changes)
- Performance regressions
- Interactive behavior changes
The Testing Pyramid for Your App
/\
/ \ Manual Testing (you + testers)
/ \ Visual, interactive, real-world
/------\
/ \ Automated Tests (Claude Code)
/ \ Models, logic, state
/------------\
/ \ Build Verification (XcodeBuildMCP)
/________________\ Every commit, every mergeWide base (build verification on everything), narrower middle (tests on critical logic), small top (manual testing on feel and experience).
Interactive Testing Limitations (The Honest Gap)
Claude Code cannot test interactive behavior. RenderPreview gives it eyes on static layout, but it can't:
- Tap buttons and see what happens
- Scroll lists and check performance
- Test gesture recognizers (swipe, long press, pinch)
- Verify sheet dismiss behavior
- Test keyboard appearance and dismissal
- Navigate between screens
This gap means YOUR manual testing is essential, especially for:
- Custom components (stitch counter, pattern viewer)
- Navigation flows (tab switches, push/pop, sheet present/dismiss)
- Edge cases (rotating device, split screen on iPad, accessibility sizes)
No workaround exists for this yet. Plan 2-3 hours of manual testing before every TestFlight release.
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.

