test-plan-generator
Generates a test plan from a PRD's acceptance criteria. Use when a feature needs a testing strategy before implementation.
- License 许可
- MIT
- 所属仓库
- vibbs/company-os
- 最近更新
- 2026-10-21
- Stars
- ★ 6
- Forks
- 2
01 前言 Front Matter
- name
- test-plan-generator
- runtimes
- { "claude": { "user-invocable": true } }
- description
- Generates a test plan from a PRD's acceptance criteria. Use when a feature needs a testing strategy before implementation.
03 SKILL.md 正文
Test Plan Generator
Reference
- ID: S-QA-01
- Category: QA
- Inputs: PRD with acceptance criteria, architecture context, risk areas
- Outputs: test plan document → artifacts/qa/
- Used by: QA Agent
- Tool scripts: ./tools/artifact/validate.sh
Purpose
Transforms PRD acceptance criteria into a structured test plan covering functional, edge-case, integration, and regression scenarios, ensuring every requirement has verifiable test coverage before code is written.
Procedure
- Read the PRD and extract all acceptance criteria.
- For each acceptance criterion, derive one or more test scenarios.
- Classify each scenario: functional, edge case, integration, regression, or destructive.
- Define test data requirements for each scenario.
- Identify dependencies: APIs, services, or fixtures needed for test execution.
Step 4.5: Map Test Data to Seed Scenarios
For each test scenario that requires pre-existing data, map it to a seed scenario from the /seed-data skill:
| Test Type | Recommended Seed Scenario | Rationale |
|---|---|---|
| Happy path / smoke tests | nominal |
Realistic data diversity for standard flows |
| Edge case / boundary tests | edge-cases |
Pre-populated boundary values (unicode, max-length, epoch dates) |
| Empty state / onboarding | empty |
Clean slate to test first-run experience |
| Error handling | error-states |
Soft-deleted records, expired tokens, failed payments |
| Performance / load tests | high-volume |
1,000–10,000 records to reveal N+1 queries |
| Unit tests / fast checks | minimal |
1–2 records, minimal fixtures |
Include a Test Data Requirements section in the test plan artifact:
## Test Data Requirements
| Scenario Name | Seed Scenario | Command | Key Entities |
|---------------|--------------|---------|--------------|
| User registration flow | empty | ./tools/db/seed.sh empty | none (clean slate) |
| Dashboard with data | nominal | ./tools/db/seed.sh nominal | User, Post, Comment |
| Pagination at scale | high-volume | ./tools/db/seed.sh high-volume | User, Post |
If a seed data catalog does not yet exist in artifacts/test-data/, note it as a dependency: "Run /seed-data before executing these test scenarios."
- Prioritize scenarios by risk: high-risk paths get more thorough coverage.
- Define pass/fail criteria for each scenario.
- Map scenarios to test types: unit, integration, E2E, manual exploratory.
- Estimate effort for test implementation.
- Save the test plan to
artifacts/qa/. - Validate the artifact using
./tools/artifact/validate.sh.
Mobile Test Scenarios
If platforms.targets in company.config.yaml includes mobile targets, add the following test categories:
Responsive Web (when platforms.responsive: true)
- Viewport testing: Verify layouts at mobile (320px, 375px), tablet (768px), and desktop (1024px, 1440px) breakpoints
- Touch interaction: All interactive elements meet 44x44px minimum touch target
- Orientation: Layouts work in both portrait and landscape
- Soft keyboard: Forms remain accessible when virtual keyboard is open
- Scroll behavior: No horizontal scroll on mobile viewports
Native Mobile (when platforms.targets includes ios or android)
- Platform-specific: iOS safe area insets, Android back button behavior
- Offline behavior: Feature degrades gracefully without network
- Performance: Screen transitions < 300ms, list scrolling at 60fps
- Deep linking: Feature is reachable via deep link if applicable
PWA (when platforms.pwa: true)
- Offline: Service worker caches required assets
- Install prompt: App is installable and works standalone
- Background sync: Pending actions sync when connection restored
Quality Checklist
- [ ] Every acceptance criterion has at least one test scenario
- [ ] Edge cases and error paths are covered
- [ ] Test data requirements are specified
- [ ] Scenarios are classified by type (unit, integration, E2E)
- [ ] High-risk areas have deeper coverage
- [ ] Pass/fail criteria are unambiguous
- [ ] Dependencies and fixtures are listed
- [ ] Mobile test scenarios included (if platform targets are configured)
- [ ] Test data requirements are mapped to specific seed scenarios
- [ ] Seed command is documented for each scenario type
- [ ] If seed catalog does not exist, it is listed as a dependency
- [ ] Artifact passes validation
04 同仓库更多 Skills
typo-field
Fixture skill with a misspelled top-level field.
spaced-comments
Fixture skill with comments and spaces after block keys.
crlf-comments
Fixture skill with Windows line endings.
claude-fields
Fixture skill using top-level fields Claude Code documents.
workflow-router
Maps an objective to the artifacts, stages and agents it needs. Use when deciding what happens next or which agents to involve.
weekly-review
Summarizes your week: what shipped, AI spend, support themes, security health and next priorities. Use at the end of each week.