| name | test-refactor |
| description | Refactors the project's test suite to remove duplication, extract fixtures, and tighten assertions — keeps behaviour unchanged while improving readability.
When the user mentions "test refactor", "test cleanup", "testing refactor", "refactor tests".
Do NOT activate for writing new tests from scratch (use tdd-guide instead).
|
| auto_triggers | {"keywords":["test cleanup","test refactor","testing refactor"],"project_signals":["has_ci","has_api","has_tests","has_docs"]} |
| tools | ["black","coverage","pylint","pytest","ruff"] |
| category | project |
| priority | 50 |
Skill: Test Refactor
Purpose
TEST refactor for this project
This skill provides step-by-step guidance for test refactor.
Auto-Trigger
The agent should activate this skill when the user requests:
- "test cleanup"
- "test refactor"
- "testing refactor"
Project Context Signals:
has_ci
has_api Γזע API endpoints present
has_tests Γזע Test suite available
has_docs
Process
1. Analyze Current State
- Review project structure in
project-rules-generator/
- Check configuration files
- Identify existing patterns
2. Execute Core Actions
Required Tools: black, coverage, pylint, pytest, ruff
cd project-rules-generator
3. Validate & Verify
- Run tests if available
- Check for errors
- Verify expected outputs
Output
This skill generates:
- Modified/created files in
project-rules-generator/
- Status report with changes
- Recommendations for next steps
Anti-Patterns
❌ Don't use generic commands without project context
✅ Do reference actual files from project-rules-generator/
❌ Don't skip validation steps
✅ Do always verify changes with tests
❌ Don't make assumptions about project structure
✅ Do check for files/directories before operating on them
Tech Stack Notes
Detected Technologies:
Compatible Tools: black, coverage, pylint, pytest, ruff
Examples
cd project-rules-generator
git status
pytest
Project Context
Project: project-rules-generator
Path: C:\Users\USER\.gemini\antigravity\scratch\project-rules-generator
Signals: has_ci, has_api, has_tests, has_docs
Tech Stack: python, pytest
Generated by Cowork-Powered PRG Skill Creator v2.0
Quality Score: 95/100 | Triggers: 3 | Tools: 5