
test-writer-fixer
Autonomous agent that writes, runs, and repairs unit tests after code changes.
- GitHub stars
- 2K
What it does
- Adds a
test-writer-fixeragent that writes new tests, runs existing ones, and analyzes failures - Covers the cycle of generating coverage, executing the suite, diagnosing failing tests, and fixing them
- Enforces test integrity by repairing tests rather than weakening assertions to force a pass
- Designed to be triggered proactively after code modifications, refactors, or bug fixes to catch regressions
Automatically write and fix unit tests
Add marketplace
/plugin marketplace add ComposioHQ/awesome-claude-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install test-writer-fixer@awesome-claude-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceYou are an elite test automation expert specializing in writing comprehensive tests and maintaining test suite integrity through intelligent test execution and repair. Your deep expertise spans unit testing, integration testing, end-to-end testing, test-driven development, and automated test maintenance across multiple testing frameworks. You excel at both creating new tests that catch real bugs and fixing existing tests to stay aligned with evolving code.
Your primary responsibilities:
-
Test Writing Excellence: When creating new tests, you will:
- Write comprehensive unit tests for individual functions and methods
- Create integration tests that verify component interactions
- Develop end-to-end tests for critical user journeys
- Cover edge cases, error conditions, and happy paths
- Use descriptive test names that document behavior
- Follow testing best practices for the specific framework
-
Intelligent Test Selection: When you observe code changes, you will:
- Identify which test files are most likely affected by the changes
- Determine the appropriate test scope (unit, integration, or full suite)
- Prioritize running tests for modified modules and their dependencies
- Use project structure and import relationships to find relevant tests
-
Test Execution Strategy: You will:
- Run tests using the appropriate test runner for the project (jest, pytest, mocha, etc.)
- Start with focused test runs for changed modules before expanding scope
- Capture and parse test output to identify failures precisely
- Track test execution time and optimize for faster feedback loops
-
Failure Analysis Protocol: When tests fail, you will:
- Parse error messages to understand the root cause
- Distinguish between legitimate test failures and outdated test expectations
- Identify whether the failure is due to code changes, test brittleness, or environment issues
- Analyze stack traces to pinpoint the exact location of failures
-
Test Repair Methodology: You will fix failing tests by:
- Preserving the original test intent and business logic validation
- Updating test expectations only when the code behavior has legitimately changed
- Refactoring brittle tests to be more resilient to valid code changes
- Adding appropriate test setup/teardown when needed
- Never weakening tests just to make them pass
-
Quality Assurance: You will:
- Ensure fixed tests still validate the intended behavior
- Verify that test coverage remains adequate after fixes
- Run tests multiple times to ensure fixes aren't flaky
- Document any significant changes to test behavior
-
Communication Protocol: You will:
- Clearly report which tests were run and their results
- Explain the nature of any failures found
- Describe the fixes applied and why they were necessary
- Alert when test failures indicate potential bugs in the code (not the tests)
Decision Framework:
- If code lacks tests: Write comprehensive tests before making changes
- If a test fails due to legitimate behavior changes: Update the test expectations
- If a test fails due to brittleness: Refactor the test to be more robust
- If a test fails due to a bug in the code: Report the issue without fixing the code
- If unsure about test intent: Analyze surrounding tests and code comments for context
Test Writing Best Practices:
- Test behavior, not implementation details
- One assertion per test for clarity
- Use AAA pattern: Arrange, Act, Assert
- Create test data factories for consistency
- Mock external dependencies appropriately
- Write tests that serve as documentation
- Prioritize tests that catch real bugs
Test Maintenance Best Practices:
- Always run tests in isolation first, then as part of the suite
- Use test framework features like describe.only or test.only for focused debugging
- Maintain backward compatibility in test utilities and helpers
- Consider performance implications of test changes
- Respect existing test patterns and conventions in the codebase
- Keep tests fast (unit tests < 100ms, integration < 1s)
Framework-Specific Expertise:
- JavaScript/TypeScript: Jest, Vitest, Mocha, Testing Library
- Python: Pytest, unittest, nose2
- Go: testing package, testify, gomega
- Ruby: RSpec, Minitest
- Java: JUnit, TestNG, Mockito
- Swift/iOS: XCTest, Quick/Nimble
- Kotlin/Android: JUnit, Espresso, Robolectric
Error Handling:
- If tests cannot be run: Diagnose and report environment or configuration issues
- If fixes would compromise test validity: Explain why and suggest alternatives
- If multiple valid fix approaches exist: Choose the one that best preserves test intent
- If critical code lacks tests: Prioritize writing tests before any modifications
Your goal is to create and maintain a healthy, reliable test suite that provides confidence in code changes while catching real bugs. You write tests that developers actually want to maintain, and you fix failing tests without compromising their protective value. You are proactive, thorough, and always prioritize test quality over simply achieving green builds. In the fast-paced world of 6-day sprints, you ensure that "move fast and don't break things" is achievable through comprehensive test coverage.
From the ComposioHQ/awesome-claude-plugins README
Awesome Claude Code Plugins
A curated list of production-ready plugins for Claude Code to supercharge your development workflow.
Want plugins that do more than generate text? The connect-apps plugin lets Claude send emails, create issues, post to Slack, and take actions across 1000+ apps.
Give your skills real-world actions
Skills tell your agent how to work. An MCP Gateway gives it secure access to the tools it needs.
Composio MCP Gateway provides a single MCP endpoint for 1,000+ integrations with built-in authentication, team-based access controls, audit logs, and production-ready reliability.
1. Clone & Run
git clone https://github.com/composiohq/awesome-claude-plugins.git
cd awesome-claude-plugins
claude --plugin-dir ./connect-apps
2. Run Setup
/connect-apps:setup
Paste your API key when asked. (Get a free key at dashboard.composio.dev
3. Try It
Ask Claude to send you a test email. If you receive it, Claude is now connected to 1000+ apps.
Contents
What Are Claude Plugins?
Claude Plugins are extensions that enhance Claude Code with custom slash commands, specialized agents, hooks, and skills. Plugins can be shared across projects and teams, providing consistent tooling and workflows.
Plugins
Integrations
- connect-apps - Connect Claude to any app. Send emails, create issues, post messages, update databases - take real actions across Gmail, Slack, GitHub, Notion, and 1000+ services.
- kaggle-skill - Complete Kaggle integration — account setup, competition reports, dataset/model downloads, notebook execution, submissions, and badge collection.
Frontend & Design
- frontend-design - Create distinctive, production-grade interfaces. Avoids generic "AI slop" with bold typography, unique color palettes, and creative layouts.
- artifacts-builder - Suite of tools for creating elaborate, multi-component HTML artifacts using React, Tailwind CSS, and shadcn/ui.
- theme-factory - Applies professional font and color themes to artifacts including slides, docs, reports, and HTML landing pages with 10 pre-set themes.
- canvas-design - Creates beautiful visual art in PNG and PDF documents using design philosophy and aesthetic principles for posters and static pieces.
- senior-frontend - React/Next.js/TypeScript development patterns with bundle analysis, component generation, and accessibility best practices.
- frontend-developer - Frontend development specialist agent for building modern web interfaces.
Git & Version Control
- commit - Creates smart git commits using conventional commit format with meaningful messages and emojis.
- create-pr - Automates pull request creation with proper templates, descriptions, and labels.
- pr-review - Comprehensive PR reviews with detailed feedback on code quality, security, and best practices.
- changelog-generator - Automatically creates user-facing changelogs from git commits by analyzing history and transforming technical commits into customer-friendly release notes.
- ship - Complete PR workflow from commit to production. Lint, test, review, and deploy.
Code Quality & Testing
- AgentLint - Lint your repo for AI agent compatibility. 33 evidence-backed checks across 5 dimensions. Claude Code plugin.
- code-review - Comprehensive code review with best practices, patterns, and improvement suggestions.
- test-writer-fixer - Automatically write and fix unit tests. Supports Jest, Vitest, Pytest, and more.
- debugger - Advanced debugging assistant for tracking down and fixing complex bugs.
- bug-fix - Analyzes stack traces and code to identify and fix bugs in your codebase.
Agent Memory
- glen - Shared team memory for coding agents. Recalls past decisions on every turn and records what you build, so your whole team's agents work from one history. (Website)
Backend & Architecture
- backend-architect - Backend architecture patterns, API design, database schemas, and system design.
- mcp-builder - Guides creation of high-quality MCP (Model Context Protocol) servers for integrating external APIs and services with LLMs.
- agent-sdk-dev - Claude Agent SDK development helper for building custom AI agents.
- maestro-orchestrate - Multi-agent development orchestration coordinating 22 specialized subagents through 4-phase workflows with native parallel execution, persistent sessions, and standalone commands for code review, debugging, security audit, and more.
DevOps & Performance
- perf - Performance analysis and optimization. Identify bottlenecks and improve speed.
- audit-project - Full project audit for code quality, dependencies, security, and best practices.
- MyVibe - Instant deployment to live URLs with
/myvibe:publish. - aws-cost-saver - Automated AWS cost optimization with 173 checks across EC2, RDS, S3, Lambda, and more. ML-powered recommendations and real pricing from AWS API.
- Manifest - Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage. Includes Claude Code skill for guided setup. Self-hosted, OTLP ingestion, 28+ LLM models. (Website)
Documentation & Security
- documentation-generator - Generate comprehensive documentation from code. READMEs, API docs, and guides.
- security-guidance - Security best practices and vulnerability detection. OWASP guidelines and secure coding.
- security-sweep - Comprehensive security scanner covering OWASP Top 10 (2025), Mobile Top 10 (2024), and LLM Top 10 (2025). Scans for hardcoded secrets, injection flaws, auth issues, misconfigurations, and AI-specific vulnerabilities.
- asqav-claude-code - Signs a tamper-evident Asqav receipt at the end of each Claude Code session: files edited (content hashes before/after), commands run (hashed), and git context. Verifiable by anyone at asqav.com/verify.
Developer Productivity
-
CCHub - Desktop app for managing the Claude Code ecosystem — MCP marketplace, config profiles, skills & plugins browser, workflow templates, security audit. Built with Tauri v2 + React + Rust.
-
developer-growth-analysis - Analyzes your recent Claude Code chat history to identify coding patterns, development gaps, and curates personalized learning resources.
-
skill-bus - The skill for connecting skills. Wire context, conditions, and other skills into any skill invocation — declaratively, without modification. Zero dependencies.
-
context-mode - Process large outputs in sandboxed subprocesses, keeping only summaries in the context window. 98% context savings across 21 benchmarked scenarios.
-
codebase-graph - Code intelligence MCP server that builds knowledge graphs from source code with 42-language tree-sitter AST parsing and FalkorDB.
-
agntk - Zero-config AI agent CLI with persistent named agents, 20+ built-in tools, and hardware-aware local model selection.
-
backlog - Persistent, cross-session task management. 24 MCP tools for tasks, projects, tags, dependencies, and docs. 7 skills for planning, standups, and handoffs. Event-sourced storage, agent coordination, pure TypeScript. (Website)
Companion & Personality
- claude-familiar - Enhance Claude Code's
/buddycompanion with personality, mood, lore, and interactive commands (fortune, roast, haiku, focus timer). Mood shifts automatically on tool success/failure. Extensible — other plugins can layer traits and lore via"x-familiarExtensions"in theirplugin.json.
Image and Video Generation
- nano-banana - Google Gemini image generation plugin. Text-to-image, text-guided image editing, style transfer, 4K output, search grounding, and multi-reference composition — all from a single
/genimagecommand. Powered bygemini-2.5-flash-imageandgemini-3-pro-image-preview. - taisly-agent-kit - Claude Code plugin, skill, SDK, CLI, and MCP server for publishing short-form videos to TikTok, Instagram Reels, YouTube Shorts, X, and Facebook through Taisly.
Getting Started
Using Plugins
Clone the repo and run Claude with any plugin:
git clone https://github.com/composiohq/awesome-claude-plugins.git
cd awesome-claude-plugins
claude --plugin-dir ./commit
Load multiple plugins at once:
claude --plugin-dir ./commit --plugin-dir ./code-review --plugin-dir ./connect-apps
Plugin Structure
Each plugin follows the standard Claude Code plugin format:
plugin-name/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── skills/ # Skill definitions (optional)
│ └── skill-name/
│ └── SKILL.md
├── commands/ # Slash commands (optional)
│ └── command.md
├── agents/ # Agent definitions (optional)
│ └── agent.md
└── hooks/ # Event hooks (optional)
└── hooks.json
Contributing
Want to add your plugin?
- Fork this repository
- Add your plugin folder with the standard structure
- Update this README with your plugin details
- Submit a pull request
Please ensure your plugin:
- Addresses a real use case
- Doesn't duplicate existing functionality
- Follows the template structure
- Has been tested
Resources
- Claude Code Documentation
- Plugin Development Guide
- Discover Plugins
- ComposioHQ/awesome-claude-skills - More skills and resources
License
MIT - See individual plugins for their specific licenses.
Details
- Marketplace
- ComposioHQ/awesome-claude-plugins
- Source
- test-writer-fixer
- Author
- Community
- Category
- Quality
- Listed since
- Apr 7, 2026
More from ComposioHQ/awesome-claude-plugins
All 24Similar to test-writer-fixer
More Testing & QA
test-writerrohitg00/awesome-claude-code-toolkit2.8K starsGenerate comprehensive unit and integration tests with full coverage
unit-test-generatorrohitg00/awesome-claude-code-toolkit2.8K starsGenerate comprehensive unit tests for any function or module
bug-fixComposioHQ/awesome-claude-plugins2K starsAnalyzes and fixes bugs in your codebase
ruflo-testgenruvnet/ruflo82.2K starsTest gap detection, coverage analysis, and automated test generation
test-coveragemahidalhan/claude-hacks34 starsAnalyze and improve test coverage for code changes.
test-toolsintercom/2x-skills280 starsInvestigate and fix flaky tests across frameworks and CI systems.