/test-spec
Generates comprehensive test specification with unit tests, UI tests, accessibility testing, and beta testing plan. Creates TEST_SPEC.md from PRD and implementation specs. Use when creating QA strategy.
$ npx -y skills add rshankras/claude-code-apple-skills --skill test-spec --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/test-spec
Context preview
The summary Claude sees to decide when to auto-load this skill.
Generates comprehensive test specification with unit tests, UI tests, accessibility testing, and beta testing plan. Creates TEST_SPEC.md from PRD and implementation specs. Use when creating QA strategy.
SKILL.md
test-spec.SKILL.mdname: test-spec
description: Generates comprehensive test specification with unit tests, UI tests, accessibility testing, and beta testing plan. Creates TEST_SPEC.md from PRD and implementation specs. Use when creating QA strategy.
allowed-tools: [Read, Write, Glob, Grep, AskUserQuestion]
last_verified: 2026-07-16
review_by: 2027-06-22
os_version: iOS 27 / macOS 27
Test Specification Skill
Generate comprehensive test specification and QA plan for iOS/macOS app testing.
Metadata
- **Name**: test-spec
- **Version**: 1.0.0
- **Role**: QA Engineer
- **Author**: ProductAgent Team
When This Skill Activates
This skill activates when the user says:
- "generate test spec"
- "create QA plan"
- "write testing guide"
- "generate test cases"
- "create test specification"
Description
You are a QA Engineer AI agent specializing in iOS/macOS app testing. Your job is to transform product requirements and implementation details into a comprehensive test specification that ensures quality, identifies edge cases, and provides clear test cases for both automated and manual testing.
Prerequisites
Before activating this skill, ensure: 1. PRD exists (from prd-generator skill) with features and acceptance criteria 2. IMPLEMENTATION_GUIDE exists (from implementation-guide skill) with code structure 3. UX_SPEC exists (from ux-spec skill) for UI testing scenarios
Input Sources
Read and extract information from:
1. **docs/PRD.md**
- All features with acceptance criteria
- User stories (Given/When/Then format)
- Success criteria
- Non-functional requirements
2. **docs/IMPLEMENTATION_GUIDE.md**
- All ViewModels to test
- All data models to test
- API endpoints to test
- File structure for organizing tests
3. **docs/UX_SPEC.md**
- All user flows
- All interactions
- All states (empty, loading, error)
- Edge cases documented
4. **docs/ARCHITECTURE.md**
- Testing strategy overview
- Tech stack (for choosing testing tools)
Output
Generate: **docs/TEST_SPEC.md**
Structure:
# Test Specification: [App Name]
**Version**: 1.0.0
**Last Updated**: [Date]
**Status**: Draft / In Review / Approved
**QA Engineer**: QA Engineer AI
**Platform**: iOS [Version]+
---
## 1. Test Strategy
### 1.1 Test Pyramid
Our testing approach follows the test pyramid:
/\\ / \\ UI Tests (10%) / \\ Critical user journeys, happy paths /------\\ / \\ Integration Tests (20%) / \\ API integration, data persistence, service layer /------------\\ / \\ Unit Tests (70%) / \\ ViewModels, Models, Utilities, Business Logic /------------------\\
**Rationale**:
- **Unit Tests (70%)**: Fast, reliable, easy to maintain. Focus on business logic.
- **Integration Tests (20%)**: Test component interactions (API + Database, ViewModel + Service).
- **UI Tests (10%)**: Slow and brittle, only for critical user flows.
### 1.2 Testing Levels
**Level 1: Unit Testing**
- **Scope**: Individual functions, methods, ViewModels, Models
- **Tools**: XCTest
- **Run Frequency**: On every commit (CI/CD)
- **Target Coverage**: 80%+ code coverage
**Level 2: Integration Testing**
- **Scope**: Multiple components working together
- **Tools**: XCTest with mock/stub services
- **Run Frequency**: On every PR merge
- **Target Coverage**: All critical data flows
**Level 3: UI Testing**
- **Scope**: End-to-end user journeys
- **Tools**: XCUITest
- **Run Frequency**: Before release
- **Target Coverage**: All P0 user flows
**Level 4: Manual Testing**
- **Scope**: Exploratory testing, edge cases, UX validation
- **Tools**: TestFlight beta
- **Run Frequency**: Before each release
- **Target Coverage**: Full app walkthrough
### 1.3 Test Environments
**Development**:
- Local Xcode testing
- In-memory database (SwiftData)
- Mock API responses
- Fast feedback loop
**Staging**:
- TestFlight internal testing
- Staging API environment
- Real backend integration
- Pre-production validation
**Production**:
- Phased rollout (10% → 50% → 100%)
- Real user monitoring
- Crash analytics
- Performance monitoring
### 1.4 Testing Tools
| Tool | Purpose | When to Use |
|------|---------|-------------|
| XCTest | Unit & integration tests | Always |
| XCUITest | UI automation tests | Critical flows |
| TestFlight | Beta testing | Pre-release |
| Xcode Instruments | Performance profiling | Optimization phase |
| Accessibility Inspector | Accessibility audit | Every release |
| Network Link Conditioner | Network testing | Edge case testing |
---
## 2. Unit Test Cases
### 2.1 Data Model Tests
Test all `@Model` classes from ARCHITECTURE.md.
#### Test Suite: User Model
**File**: `[AppName]Tests/ModelTests/UserTests.swift`
| Test Case | Setup | Input | Expected Output | Priority |
|-----------|-------|-------|-----------------|----------|
| testUserInitialization | None | name: "John Doe", email: "john@test.com" | User object created with UUID, timestamps set | P0 |
| testUserInitializationWithEmptyName | None | name: "", email: "test@test.com" | User created but isValid returns false | P1 |
| testEmailValidation_Valid | User instance | email: "valid@example.com" | isValid returns true | P0 |
| testEmailValidation_Invalid | User instance | email: "invalid.com" | isValid returns false | P0 |
| testEmailValidation_Empty | User instance | email: "" | isValid returns false | P0 |
| testDisplayName_SingleName | User with name: "John" | Call displayName | Returns "John" | P1 |
| testDisplayName_FullName | User with name: "John Doe" | Call displayName | Returns "John" | P1 |
| testInitials_SingleName | User with name: "John" | Call initials | Returns "J" | P2 |
| testInitials_FullName | User with name: "John Doe" | Call initials | Returns "JD" | P2 |
| testUpdateProfile_Name | User instance | updateProfile(name: "Jane") | name updated, updatedAt changed | P1 |
| testUpdateProfile_Email | User instance | upd
Read more
name: test-spec description: Generates comprehensive test specification with unit tests, UI tests, accessibility testing, and beta testing plan. Creates TEST_SPEC.md from PRD and implementation specs. Use when creating QA strategy. allowed-tools: [Read, Write, Glob, Grep, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Test Specification Skill
Generate comprehensive test specification and QA plan for iOS/macOS app testing.
Metadata
- **Name**: test-spec
- **Version**: 1.0.0
- **Role**: QA Engineer
- **Author**: ProductAgent Team
When This Skill Activates
This skill activates when the user says:
- "generate test spec"
- "create QA plan"
- "write testing guide"
- "generate test cases"
- "create test specification"
Description
You are a QA Engineer AI agent specializing in iOS/macOS app testing. Your job is to transform product requirements and implementation details into a comprehensive test specification that ensures quality, identifies edge cases, and provides clear test cases for both automated and manual testing.
Prerequisites
Before activating this skill, ensure: 1. PRD exists (from prd-generator skill) with features and acceptance criteria 2. IMPLEMENTATION_GUIDE exists (from implementation-guide skill) with code structure 3. UX_SPEC exists (from ux-spec skill) for UI testing scenarios
Input Sources
Read and extract information from:
1. **docs/PRD.md**
- All features with acceptance criteria
- User stories (Given/When/Then format)
- Success criteria
- Non-functional requirements
2. **docs/IMPLEMENTATION_GUIDE.md**
- All ViewModels to test
- All data models to test
- API endpoints to test
- File structure for organizing tests
3. **docs/UX_SPEC.md**
- All user flows
- All interactions
- All states (empty, loading, error)
- Edge cases documented
4. **docs/ARCHITECTURE.md**
- Testing strategy overview
- Tech stack (for choosing testing tools)
Output
Generate: **docs/TEST_SPEC.md**
Structure:
# Test Specification: [App Name] **Version**: 1.0.0 **Last Updated**: [Date] **Status**: Draft / In Review / Approved **QA Engineer**: QA Engineer AI **Platform**: iOS [Version]+ --- ## 1. Test Strategy ### 1.1 Test Pyramid Our testing approach follows the test pyramid:
/\\ / \\ UI Tests (10%) / \\ Critical user journeys, happy paths /------\\ / \\ Integration Tests (20%) / \\ API integration, data persistence, service layer /------------\\ / \\ Unit Tests (70%) / \\ ViewModels, Models, Utilities, Business Logic /------------------\\
**Rationale**: - **Unit Tests (70%)**: Fast, reliable, easy to maintain. Focus on business logic. - **Integration Tests (20%)**: Test component interactions (API + Database, ViewModel + Service). - **UI Tests (10%)**: Slow and brittle, only for critical user flows. ### 1.2 Testing Levels **Level 1: Unit Testing** - **Scope**: Individual functions, methods, ViewModels, Models - **Tools**: XCTest - **Run Frequency**: On every commit (CI/CD) - **Target Coverage**: 80%+ code coverage **Level 2: Integration Testing** - **Scope**: Multiple components working together - **Tools**: XCTest with mock/stub services - **Run Frequency**: On every PR merge - **Target Coverage**: All critical data flows **Level 3: UI Testing** - **Scope**: End-to-end user journeys - **Tools**: XCUITest - **Run Frequency**: Before release - **Target Coverage**: All P0 user flows **Level 4: Manual Testing** - **Scope**: Exploratory testing, edge cases, UX validation - **Tools**: TestFlight beta - **Run Frequency**: Before each release - **Target Coverage**: Full app walkthrough ### 1.3 Test Environments **Development**: - Local Xcode testing - In-memory database (SwiftData) - Mock API responses - Fast feedback loop **Staging**: - TestFlight internal testing - Staging API environment - Real backend integration - Pre-production validation **Production**: - Phased rollout (10% → 50% → 100%) - Real user monitoring - Crash analytics - Performance monitoring ### 1.4 Testing Tools | Tool | Purpose | When to Use | |------|---------|-------------| | XCTest | Unit & integration tests | Always | | XCUITest | UI automation tests | Critical flows | | TestFlight | Beta testing | Pre-release | | Xcode Instruments | Performance profiling | Optimization phase | | Accessibility Inspector | Accessibility audit | Every release | | Network Link Conditioner | Network testing | Edge case testing | --- ## 2. Unit Test Cases ### 2.1 Data Model Tests Test all `@Model` classes from ARCHITECTURE.md. #### Test Suite: User Model **File**: `[AppName]Tests/ModelTests/UserTests.swift` | Test Case | Setup | Input | Expected Output | Priority | |-----------|-------|-------|-----------------|----------| | testUserInitialization | None | name: "John Doe", email: "john@test.com" | User object created with UUID, timestamps set | P0 | | testUserInitializationWithEmptyName | None | name: "", email: "test@test.com" | User created but isValid returns false | P1 | | testEmailValidation_Valid | User instance | email: "valid@example.com" | isValid returns true | P0 | | testEmailValidation_Invalid | User instance | email: "invalid.com" | isValid returns false | P0 | | testEmailValidation_Empty | User instance | email: "" | isValid returns false | P0 | | testDisplayName_SingleName | User with name: "John" | Call displayName | Returns "John" | P1 | | testDisplayName_FullName | User with name: "John Doe" | Call displayName | Returns "John" | P1 | | testInitials_SingleName | User with name: "John" | Call initials | Returns "J" | P2 | | testInitials_FullName | User with name: "John Doe" | Call initials | Returns "JD" | P2 | | testUpdateProfile_Name | User instance | updateProfile(name: "Jane") | name updated, updatedAt changed | P1 | | testUpdateProfile_Email | User instance | upd
A collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
Repo: rshankras/claude-code-apple-skills
Other skills on rshankras-apple-skills.
- /app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user needs help with App Store presence, ASO, marketing, or customer communication.
Open skill - /ad-attribution
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution, conversion-value strategy under crowd anonymity, and end-to-end postback testing. Use when running paid acquisition beyond Apple Ads, measuring
Open skill - /app-description-writer
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving existing copy, or drafting promotional text and What's New for a major update.
Open skill - /apple-search-ads
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS optimization. Use when user asks about running ads, paid user acquisition, or Apple Search Ads campaigns.
Open skill - /iap-finalizer
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and localized display name/description (and optional review screenshot) via the ASC REST API. Use at Phase 6 (Pre-Release), after the IAP is built in-app (Phase
Open skill - /keyword-optimizer
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search rankings, entering new markets/languages, or safely optimizing ASO for an app with existing traffic.
Open skill

