This skill automatically executes a standardized workflow for every system functionality change, ensuring a complete closed loop of requirement analysis, documentation updates, test design, coding implementation, automated testing, and lessons learned.
Scenarios where this skill MUST be invoked:
Goal: Deeply understand user requirements, perform equivalence class partitioning and boundary value analysis
Actions:
# 1.1 Read user requirements
- Carefully analyze user's feature change requests
- Identify key functional points and business logic
# 1.2 Requirement Analysis Methods
- Equivalence class partitioning: Identify valid/invalid inputs
- Boundary value analysis: Determine boundary conditions
- Scenario method: Sort out business processes
- Decision table method: Analyze complex business rules
# 1.3 Output Requirement Analysis Document
- Feature point list
- Business rules
- Data format requirements
- User interaction flow
Checklist:
Goal: Keep documentation synchronized with requirements
Actions:
# 2.1 Update Requirement Documents
- Locate project's requirement documentation (e.g., docs/prd/, docs/requirements/)
- Update feature description sections
- Add new business rules
- Update data format specifications
- Supplement user interaction flow
# 2.2 Update Prototypes/Mockups (if applicable)
- Locate project's prototype files
- Update UI layouts
- Add new interactive elements
- Adjust page flow
# 2.3 Document Version Management
- Update document version numbers
- Add changelog entries
- Record change date and author
Checklist:
Goal: Design complete test solutions and automated test cases based on updated requirements
Actions:
# 3.1 Test Solution Design
- Determine test scope (API + UI)
- Design test data strategy
- Plan test priorities (P0/P1/P2)
# 3.2 API Test Cases
- Locate project's API test directory (e.g., tests/api/, test/api_tests/)
- Add/update test files for corresponding functional modules
- Add database validation logic
- Implement white-box testing
# 3.3 UI Test Cases
- Locate project's UI test directory (e.g., tests/ui/, test/ui_tests/)
- Add/update test files for corresponding pages
- Use robust selector strategies
- Add conditional assertions
# 3.4 Test Data Preparation
- Create test data factory methods
- Implement pre-test data preparation fixtures
- Implement post-test cleanup mechanisms
Checklist:
Goal: Implement features according to requirements and design specifications, and perform self-testing
Actions:
# 4.1 Backend Implementation
- Locate project's backend code directory (e.g., app/, src/, backend/)
- Implement/update API endpoints
- Add data validation logic
- Implement business logic
- Add database operations
# 4.2 Frontend Implementation
- Locate project's frontend code directory (e.g., web/, frontend/, src/)
- Implement/update components
- Add form validation
- Implement user interactions
# 4.3 Self-Testing
- Manually test basic functionality
- Verify boundary cases
- Check error handling
- Confirm UI interactions work properly
Checklist:
Goal: Run automated tests to verify functional correctness and identify issues
Actions:
# 5.1 Run Related Tests
# Run tests for affected modules
pytest <test_directory>/<affected_module>.py -v
# 5.2 Analyze Test Results
- Statistics on pass rate
- Categorize failed tests (ERROR vs FAILED)
- Identify priority issues
Checklist:
Goal: Fix all issues exposed by automated testing, loop testing until perfect
Actions:
# 6.1 Issue Fix Strategy
- Prioritize fixing ERRORs (blocking issues)
- Categorize and handle FAILED tests
- Fix P0 priority issues first
# 6.2 Iterative Fix Loop
while test pass rate < 100%:
1. Analyze failed tests
2. Locate root cause
3. Implement fix
4. Re-run tests
5. Verify fix effectiveness
# 6.3 Fix Verification
- Ensure fixes don't introduce new issues
- Regression test related functionality
- Confirm all tests pass
Checklist:
Goal: Summarize lessons learned from this feature change and record to learning system
Actions:
# 7.1 Record Learning Points
- Locate project's learning records (e.g., .learnings/, docs/learnings/)
- Record encountered issues
- Record solutions
- Record best practices
- Add Pattern-Key
# 7.2 Promote to Project Documentation
- If experience is widely applicable, promote to project guidelines
- Update testing best practices
- Add new workflow guidelines
# 7.3 Generate Summary Report
- Statistics on changes
- Record test pass rate changes
- List key fixes
- Propose next steps
Checklist:
User Request:
> Data import supports two types: business line data import and combined data import, with tabs in the interface
Skill Execution:
❌ Skip requirement analysis and code directly
❌ Implement features without updating documentation
❌ Submit code without writing tests
❌ Stop when tests don't pass
❌ End without recording experience
❌ Skip Step 5 (Automated Testing)
❌ Skip Step 6 (Fix Issues and Iterate)
❌ Skip any step for any reason
Step 5: Execute Automated Testing (Must Execute)
Step 6: Fix Issues and Iterate (Must Execute)
Total: Approximately 2-3 hours (adjust based on complexity)
self-improvement - Record learning points and experiencetesting-workflow - Testing workflowprd-fullstack - PRD document writing| Version | Date | Change Description |
|---|---|---|
| :------ | :--------- | :------------------------------------ |
| v1.1 | 2026-04-27 | Generalized version for community sharing |
| v1.0 | 2026-04-27 | Initial version, created complete workflow |
Skill Status: ✅ Active
Last Updated: 2026-04-27
Author: AiShan
Maintainer: Community
共 1 个版本