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 skills add rshankras/claude-code-apple-skills --skill test-spec --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Transforms product requirements and implementation details into a comprehensive test specification and QA plan for iOS/macOS apps, covering unit tests, UI tests, accessibility testing, and beta testing. Creates TEST_SPEC.md content from PRD and implementation specs, guiding QA strategy.
How it works
- Activates when the user says any of: "generate test spec", "create QA plan", "write testing guide", "generate test cases", or "create test specification".
- Reads input sources from:
- docs/PRD.md: features with acceptance criteria, user stories, success criteria, non-functional requirements.
- docs/IMPLEMENTATION_GUIDE.md: viewmodels to test, data models to test, API endpoints, file structure.
- docs/UX_SPEC.md: user flows, interactions, states, edge cases.
- docs/ARCHITECTURE.md: testing strategy overview, tech stack.
- Generates output in docs/TEST_SPEC.md with the structure outlined in the skill, including sections for Test Strategy, Pyramid, Levels, Environments, and detailed unit test cases, view model tests, and helper examples.
- Provides concrete test case templates for data models and view models, including file paths, test case names, inputs, and expected outputs, using the project’s naming conventions and Swift/XCTest style as shown in the examples.
When to use it
Use when creating a QA strategy and corresponding test specification for an iOS/macOS app, ensuring coverage across unit, integration, UI, and manual testing via beta channels.
What it can touch
- Reads: docs/PRD.md, docs/IMPLEMENTATION_GUIDE.md, docs/UX_SPEC.md, docs/ARCHITECTURE.md
- Writes: docs/TEST_SPEC.md
- Tools mentioned for context in the skill include: XCTest, XCUITest, TestFlight, JSON encoding/decoding patterns, and mock testing approaches (as shown in the examples). The skill’s allowed-tools are Read, Write, Glob, Grep, AskUserQuestion.
Caveats
- Requires that PRD, IMPLEMENTATION_GUIDE, UX_SPEC exist (as prerequisites).
- Output follows the structured template shown in the provided skill examples and does not propose outcomes beyond what is specified in those templates.
# 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 requireme
- Metadata
- When This Skill Activates
- Description
- Prerequisites
- Input Sources
- Output
- Execution Instructions
- Quality Guidelines
- Integration with Workflow
- Notes
What does the test-spec skill do?
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.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill test-spec --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
