arabelatso/skills-4-se/test-suite-prioritizer
Claude Code and agent skill by arabelatso/skills-4-se
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Analyzes test suites and suggests optimal test execution order based on code change impact and project requirements. Use when optimizing CI/CD pipelines, deciding which tests to run before committing, or selecting critical tests under time constraints. Prioritizes tests by analyzing recently modified files, test dependencies, and coverage overlap. Outputs detailed rankings with priority scores and reasoning to help teams run the most impactful tests first.
Install
npx vskill@latest install arabelatso/skills-4-se/test-suite-prioritizerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Test Suite Prioritizer
Intelligently prioritize test execution based on code changes and project impact.
Core Capabilities
This skill helps optimize test execution by:
- Analyzing code changes - Identifying which files were modified
- Mapping test coverage - Determining which tests cover changed code
- Calculating priority scores - Ranking tests by impact and relevance
- Generating execution order - Creating an optimized test run sequence
- Providing reasoning - Explaining why each test is prioritized
Test Prioritization Workflow
Step 1: Identify Code Changes
Determine what code has been modified to focus testing efforts.
Sources of Change Information:
- Git diff (most recent commit or uncommitted changes)
- Pull request file list
- Specific files mentioned by user
- Modified files in working directory
Collect Changed Files:
Example Output:
Step 2: Analyze Test Coverage
Map which tests cover the changed code.
Strategies:
1. Direct Test-to-Code Mapping
- Tests in same directory as changed code
- Tests with similar names (e.g.,
user.py→test_user.py) - Integration tests that import changed modules
2. Static Analysis
- Parse test files for imports
- Identify which modules each test uses
- Map dependencies transitively
3. Coverage Data (if available)
- Use pytest-cov, coverage.py, JaCoCo output
- Identify tests that execute changed lines
- Most accurate but requires prior test run
Example Mapping:
Step 3: Calculate Priority Scores
Assign priority scores based on change impact.
Scoring Formula:
Example Scoring:
Step 4: Generate Prioritized Test List
Create ordered execution sequence with scores and reasoning.
Output Format:
pytest tests/test_auth.py::test_login_success \ tests/test_auth.py::test_login_failure \ tests/test_payment.py::test_process_payment \ tests/integration/test_user_flow.py::test_complete_registration \ tests/integration/test_checkout.py::test_complete_purchase \ tests/test_models.py::test_user_model \ tests/test_validators.py::test_email_validation \ tests/e2e/test_authentication_flow.py::test_full_auth_cycle
pytest tests/test_auth.py tests/test_payment.py::test_process_payment
Step 5: Handle Special Cases
Adjust prioritization for specific scenarios.
Time-Constrained Testing:
Post-Refactoring:
Flaky Test Handling:
Step 6: Provide Execution Guidance
Offer practical commands and strategies.
For CI/CD Pipelines:
For Local Development:
For Selective Test Execution:
Prioritization Strategies
Strategy 1: Code Change Impact (Primary)
Focus on tests covering modified code:
- Direct coverage - Tests that explicitly test changed files
- Indirect coverage - Tests that import/use changed modules
- Dependency coverage - Tests for code that depends on changes
When to use:
- After code modifications
- Pre-commit validation
- Pull request testing
Strategy 2: Risk-Based Prioritization
Prioritize based on business and technical risk:
High Risk Areas:
- Authentication and authorization
- Payment processing
- Data integrity (database operations)
- Security-critical functions
- APIs and public interfaces
Medium Risk Areas:
- Business logic
- User workflows
- Data validation
- Email/notification systems
Low Risk Areas:
- UI cosmetics
- Logging
- Internal utilities
- Development tools
Strategy 3: Failure History
Prioritize tests that fail often:
Strategy 4: Execution Time Optimization
Balance coverage with speed:
Fast-First Strategy:
- Run quick unit tests first (< 1 second each)
- Get rapid feedback on basic functionality
- Then run slower integration/E2E tests
Critical-First Strategy:
- Run most important tests first regardless of speed
- Better for catching major issues early
- May take longer for initial feedback
Hybrid Approach (Recommended):
- Run quick critical tests first (best of both worlds)
- Then slow critical tests
- Then fast non-critical tests
- Finally slow non-critical tests
Analyzing Different Project Types
Python (pytest)
Analyze test structure:
JavaScript/TypeScript (Jest)
Analyze test structure:
Java (JUnit)
Analyze test structure:
Best Practices
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/test-suite-prioritizer/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 5
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arabelatso/skills-4-se/test-suite-prioritizer)