Skip to content

Conversation

@yurekami
Copy link

Summary

This PR adds a new test-master plugin that provides comprehensive testing and debugging capabilities for Claude Code users.

Motivation

Developers spend 30-40% of their time on testing and debugging. Currently, no existing plugin comprehensively addresses this need. The test-master plugin fills this gap by providing:

  • Automated test generation following project conventions
  • Intelligent failure analysis with root cause identification
  • Actionable fixes for common test issues

Features

Commands

Command Description
/generate-tests Generate comprehensive unit tests for specified files or functions
/debug-failure Analyze test failures and stack traces to identify root causes

Agents

Agent Description
test-generator Expert test engineer that creates comprehensive, maintainable tests
failure-debugger Test failure analyst that identifies root causes and suggests fixes

Usage Examples

# Generate tests
/generate-tests
"Can you generate tests for the UserService class?"

# Debug failures
/debug-failure
"My tests started failing after the last commit"

Plugin Structure

test-master/
├── .claude-plugin/
│   └── plugin.json          # Plugin metadata
├── commands/
│   ├── generate-tests.md    # Test generation command
│   └── debug-failure.md     # Failure debugging command
├── agents/
│   ├── test-generator.md    # Test engineering agent
│   └── failure-debugger.md  # Debugging specialist agent
└── README.md                # Documentation

Design Decisions

  1. Multi-agent architecture: Similar to pr-review-toolkit, uses specialized agents for different tasks
  2. Framework-agnostic: Detects and adapts to the project's existing testing framework
  3. Practical focus: Emphasizes tests that catch real bugs, not academic coverage metrics

Checklist

  • Follows standard plugin structure
  • Includes comprehensive README.md
  • Plugin metadata in .claude-plugin/plugin.json
  • All commands and agents documented
  • Added to plugins/README.md table

🤖 Generated with Claude Code

This new plugin provides a comprehensive toolkit for testing and debugging:

## Features

- `/generate-tests` command: Generate unit tests for any code
- `/debug-failure` command: Analyze test failures and suggest fixes
- `test-generator` agent: Expert test engineer for creating tests
- `failure-debugger` agent: Specialist for root cause analysis

## Why This Plugin?

Developers spend 30-40% of their time on testing and debugging. This plugin
helps by:
- Generating comprehensive tests following project conventions
- Analyzing stack traces and error messages
- Identifying common failure patterns (async issues, mock problems, etc.)
- Providing specific, actionable fixes

## Plugin Structure

- .claude-plugin/plugin.json - Plugin metadata
- commands/generate-tests.md - Test generation command
- commands/debug-failure.md - Failure debugging command
- agents/test-generator.md - Test engineering agent
- agents/failure-debugger.md - Debugging specialist agent
- README.md - Documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: yurekami <yurekami@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant