test-fixing
Run tests and systematically fix all failing tests using smart error grouping.
Skill by mhattingpete
Chalk Labs
Need help deploying test-fixing?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mhattingpete-test-fixing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/test-fixing
What's inside
- Skill name
test-fixing- Description
- Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.
- License
- Apache-2.0
- Instructions
- 106 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Test Fixing
Systematically identify and fix all failing tests using smart grouping strategies.
## When to Use
- Explicitly asks to fix tests ("fix these tests", "make tests pass")
- Reports test failures ("tests are failing", "test suite is broken")
- Completes implementation and wants tests passing
- Mentions CI/CD failures due to tests
## Systematic Approach
### 1. Initial Test Run
Run `make test` to identify all failing tests.
Analyze output for:
- Total number of failures
- Error types and patterns
- Affected modules/files
### 2. Smart Error Grouping
Group similar failures by:
- **Error type**: ImportError, AttributeError, AssertionError, etc.
- **Module/file**: Same file causing multiple test failures
- **Root cause**: Missing dependencies, API changes, refactoring impacts
Prioritize groups by:
- Number of affected tests (highest impact first)
- Dependency order (fix infrastructure before functionality)
### 3. Systematic Fixing Process
For each group (starting with highest impact):
1. **Identify root cause**
- Read relevant code
- Check recent changes with `git diff`
- Understand the error pattern
2. **Implement fix**
- Use Edit tool for code changes
- Follow project conventions (see CLAUDE.md)
- Make minimal, focused changes
3. **Verify fix**
- Run subset of tests for this group
- Use pytest markers or file patterns:
```bash
uv run pytest tests/path/to/test_file.py -v
uv run pytest -k "pattern" -v
```
- Ensure group passes before moving on
4. **Move to next group**
### 4. Fix Order Strategy
**Infrastructure first:**
- Import errors
- Missing dependencies
- Configuration issues
**Then API changes:**
- Function signature changes
- Module reorganization
- Renamed variables/functions
**Finally, logic issues:**
- Assertion failures
- Business logic bugs
- Edge case handling
### 5. Final Verification
After all groups fixed:
- Run complete test suite: `make test`
- Verify no regressions
- Check test coverage remains intact
## Best Practices
- Fix one group at a time
- Run focused tests after each fix
- Use `git diff` to understand recent changes
- Look for patterns in failures
- Don't move to next group until current passes
- Keep changes minimal and focused
## Example Workflow
User: "The tests are failing after my refactor"
1. Run `make test` → 15 failures identified
2. Group errors:
- 8 ImportErrors (module renamed)
- 5 AttributeErrors (function signature changed)
- 2 AssertionErrors (logic bugs)
3. Fix ImportErrors first → Run subset → Verify
4. Fix AttributeErrors → Run subset → Verify
5. Fix AssertionErrors → Run subset → Verify
6. Run full suite → All pass ✓From mhattingpete/claude-skills-marketplace, Apache-2.0.
More from mhattingpete/claude-skills-marketplace
- 0.640score
dashboard-creator
mhattingpete
Create HTML dashboards with KPI metric cards, bar/pie/line charts, progress indicators, and data visualizations.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
flowchart-creator
mhattingpete
Create HTML flowcharts and process diagrams with decision trees, color-coded stages, arrows, and swimlanes.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
technical-doc-creator
mhattingpete
Create HTML technical documentation with code blocks, API workflows, system architecture diagrams, and syntax highlighting.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
timeline-creator
mhattingpete
Create HTML timelines and project roadmaps with Gantt charts, milestones, phase groupings, and progress indicators.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
code-transfer
mhattingpete
Transfer code between files with line-based precision.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
architecture-diagram-creator
mhattingpete
Create comprehensive HTML architecture diagrams showing data flows, business objectives, features, technical architecture, and deployment.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
feature-planning
mhattingpete
Break down feature requests into detailed, implementable plans with clear tasks.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
git-pushing
mhattingpete
Stage, commit, and push git changes with conventional commit messages.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
conversation-analyzer
mhattingpete
Analyzes your Claude Code conversation history to identify patterns, common mistakes, and opportunities for workflow improvement.
SkillDFreshness: D★ 688Claude Code +9 - 0.637score
ensemble-solving
mhattingpete
Generate multiple diverse solutions in parallel and select the best.
SkillDFreshness: D★ 688Claude Code +9 - 0.634score
project-bootstrapper
mhattingpete
Sets up new projects or improves existing projects with development best practices, tooling, documentation, and workflow automation.
SkillDFreshness: D★ 688Claude Code +9 - 0.634score
code-execution
mhattingpete
Execute Python code locally with marketplace API access for 90%+ token savings on bulk operations.
SkillDFreshness: D★ 688Claude Code +9
Signals
- Stars
- 688
- Forks
- 98
- Open issues
- 4
- Last commit (this folder)
- Nov 10, 2025 (11 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mhattingpete
- 0.640score
git-pushing
mhattingpete
Stage, commit, and push git changes with conventional commit messages.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
architecture-diagram-creator
mhattingpete
Create comprehensive HTML architecture diagrams showing data flows, business objectives, features, technical architecture, and deployment.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
feature-planning
mhattingpete
Break down feature requests into detailed, implementable plans with clear tasks.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
code-transfer
mhattingpete
Transfer code between files with line-based precision.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
conversation-analyzer
mhattingpete
Analyzes your Claude Code conversation history to identify patterns, common mistakes, and opportunities for workflow improvement.
SkillDFreshness: D★ 688Claude Code +9 - 0.640score
dashboard-creator
mhattingpete
Create HTML dashboards with KPI metric cards, bar/pie/line charts, progress indicators, and data visualizations.
SkillDFreshness: D★ 688Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get test-fixing running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
test-fixing skill. Agent Mart. https://agentmart.dev/skills/mhattingpete-test-fixing (last updated 2026-10-24)