test-plan-generator
Generate intelligent, non-redundant test plans based on implementation changes. This skill should be used after implementing features to create comprehensive yet efficient test plans with proper coverage across unit, integration, API, and E2E tests without duplication.
What this skill does
# Test Plan Generator Skill
## Purpose
Analyze implementation changes and generate comprehensive, non-redundant test plans that provide appropriate coverage without over-testing. Works with any language, framework, or architecture by analyzing change patterns rather than specific technologies.
## When to Use This Skill
Use this skill when:
- Feature implementation is complete
- Need to generate test plan for changes
- Want to ensure proper test coverage
- Need to avoid redundant tests
- Want to balance thoroughness with efficiency
- Creating test plan for `test-executor` to run
## Test Plan Generation Workflow
### Phase 1: Analyze Changes
1. **Identify Changed Files**
```bash
git diff main...HEAD --name-only
# or
git diff <base-branch>...HEAD --name-only
```
2. **Analyze Change Types**
- New files vs modified files
- Backend vs frontend vs database
- API endpoints vs UI components
- Configuration vs logic
3. **Read Implementation**
- Understand what was implemented
- Identify critical paths
- Determine user-facing changes
- Note performance-sensitive areas
### Phase 2: Determine Test Types Needed
Based on changes, identify which test types are appropriate:
#### API Endpoint Added/Modified → API Tests
**When:**
- New REST/GraphQL endpoints
- Modified endpoint behavior
- Changed request/response format
**Tests:**
- Request validation
- Response format
- Success scenarios
- Error scenarios (400, 401, 403, 404, 500)
- Edge cases
**Skip E2E if:** API is internal only (not user-facing)
#### UI Component Added/Modified → E2E Tests
**When:**
- New pages or components
- Modified user flows
- Changed UI behavior
**Tests:**
- User interaction flows
- Form submissions
- Navigation
- Visual feedback
**Skip API tests if:** E2E tests already cover backend through UI
#### Database Schema Changed → Migration Tests
**When:**
- New tables/columns
- Modified schema
- Data migrations
**Tests:**
- Migration up/down
- Data integrity
- Foreign key constraints
- Indexes applied
#### Business Logic Added → Unit Tests
**When:**
- Complex algorithms
- Validation logic
- Calculations
- Data transformations
**Tests:**
- Valid inputs
- Invalid inputs
- Edge cases
- Error handling
**Consider skipping if:** Logic is tested adequately by integration/E2E tests
#### Performance-Critical Code → Performance Tests
**When:**
- Database queries
- Large data processing
- API endpoints with latency requirements
- File operations
**Tests:**
- Response time under load
- Resource usage
- Scalability
- Throughput
### Phase 3: Avoid Redundant Tests
**Key Principle:** Don't test the same thing twice at different levels.
#### Example: Form Submission Feature
**Backend API:**
- Endpoint: `POST /api/forms`
- Logic: Validation, database insert, email notification
**Frontend:**
- Component: FormBuilder
- User flow: Fill form → Submit → Success message
**Test Strategy:**
✅ **Good (Non-Redundant):**
```markdown
## E2E Tests
- [ ] User can create form, fill details, and submit successfully
- [ ] User sees error message for invalid email
- [ ] User sees success confirmation after submission
## API Tests (only edge cases not covered by E2E)
- [ ] API returns 400 for malformed JSON
- [ ] API handles concurrent submissions correctly
## Unit Tests (complex logic not easily tested via E2E)
- [ ] SIRET validation algorithm works correctly
```
❌ **Bad (Redundant):**
```markdown
## E2E Tests
- [ ] User can submit form
## API Tests (redundant with E2E)
- [ ] POST /api/forms creates form in database
- [ ] POST /api/forms returns 200 on success
- [ ] POST /api/forms validates email format
## Unit Tests (redundant with E2E and API)
- [ ] FormController.Create method works
- [ ] Email validation works
```
**Redundancy:** E2E test already covers API behavior and validation through UI. No need for separate API tests unless testing edge cases not accessible via UI.
### Phase 4: Generate Test Plan Document
Create `test-plan.md` with structure:
```markdown
# Test Plan: [Feature Name]
**Date:** [Date]
**Implementation:** [Branch/PR]
## Overview
[Brief description of what was implemented]
## Changed Files
- `path/to/file1.ts`
- `path/to/file2.cs`
## Test Strategy
[Explanation of test approach and coverage]
---
## E2E Tests (Priority: High)
- [ ] Test 1: [Description]
- [ ] Test 2: [Description]
---
## API Tests (Priority: Medium)
- [ ] Test 1: [Description]
- [ ] Test 2: [Description]
---
## Unit Tests (Priority: Low)
- [ ] Test 1: [Description]
- [ ] Test 2: [Description]
---
## Performance Tests (Optional)
- [ ] Test 1: [Description]
---
## Notes
[Any important testing considerations]
```
## Test Type Guidelines
### E2E (End-to-End) Tests
**Purpose:** Test complete user flows from UI to backend
**When to Include:**
- User-facing features
- Critical workflows
- Multi-step processes
- Integration between frontend and backend
**Example Tests:**
```markdown
- [ ] User can register, login, and access dashboard
- [ ] User can create form with all field types
- [ ] User can submit form and see confirmation
- [ ] Admin can view all submissions for a form
```
**How to Execute:** Browser rendering/automation (Codex Browser plugin for visual checks; Playwright, Cypress, etc. for committed E2E suites)
### API Tests
**Purpose:** Test backend endpoints directly
**When to Include:**
- Endpoints not fully covered by E2E
- Edge cases difficult to test via UI
- Error scenarios (400, 401, 500)
- API-only features (webhooks, batch operations)
**Example Tests:**
```markdown
- [ ] POST /api/forms returns 400 for invalid JSON
- [ ] GET /api/forms?page=999 handles non-existent page
- [ ] PUT /api/forms/{id} returns 404 for non-existent form
- [ ] API rate limiting works (429 after 100 requests/min)
```
**How to Execute:** curl, httpie, or API test framework
### Unit Tests
**Purpose:** Test individual functions/methods in isolation
**When to Include:**
- Complex algorithms (validation, calculations)
- Business logic that's hard to test at higher levels
- Utility functions
- Edge cases in isolated functions
**Example Tests:**
```markdown
- [ ] ValidateSIRET returns true for valid SIRET
- [ ] ValidateSIRET returns false for invalid checksum
- [ ] CalculatePrice handles discount correctly
- [ ] ParseDate handles multiple date formats
```
**How to Execute:** Test framework (Jest, xUnit, pytest, etc.)
**Skip if:** Logic is adequately covered by integration or E2E tests
### Integration Tests
**Purpose:** Test interactions between components
**When to Include:**
- Database operations
- External API integrations
- Service-to-service communication
- File operations
**Example Tests:**
```markdown
- [ ] User creation persists to database correctly
- [ ] Email service integrates with Microsoft Graph API
- [ ] File upload saves file and creates database record
- [ ] Redis caching works with API queries
```
**How to Execute:** Test framework with real dependencies (or test doubles)
### Performance Tests
**Purpose:** Test speed, scalability, resource usage
**When to Include:**
- Performance-critical features
- Database queries on large datasets
- APIs with latency requirements
- Batch operations
**Example Tests:**
```markdown
- [ ] GET /api/submissions returns in <200ms with 10,000 records
- [ ] File upload handles 100MB files without timeout
- [ ] Dashboard loads in <1s with 50 forms
- [ ] API handles 100 concurrent requests without errors
```
**How to Execute:** Load testing tools (ab, wrk, k6, JMeter)
## Prioritization
### High Priority (Must Test)
- Critical user flows
- Data integrity
- Security features
- Core business logic
### Medium Priority (Should Test)
- Edge cases
- Error handling
- Non-critical features
- Performance benchmarks
### Low Priority (Nice to Test)
- UI polish
- Minor optimizations
- Rarely-used features
Mark priorities in test plan:
```markdown
## E2E Tests (Priority: High)
- [ ] 🔴 User authenticationRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.