LeVar Marketplace
An example Claude marketplace showcasing two production-ready skills for comprehensive test coverage generation: unit tests and integration/system tests.
Overview
This repository demonstrates a Claude plugin marketplace with practical skills that analyze code changes and generate detailed test proposals. Both skills compare the current branch against the default branch to identify testing gaps and provide actionable implementation plans.
Skills
1. Unit Test Generator
Analyzes code changes and proposes unit test coverage.
- Detects new functions, modified logic, and components
- Identifies test coverage gaps
- Generates proposals for positive, negative, edge case, and default scenarios
- Provides prioritized implementation plans with complexity estimates
Usage: /unit-test-generator in Claude chat
Output: Test proposals organized by scenario type with specific assertions and setup requirements
2. Integration & System Test Generator
Analyzes cross-layer code changes and proposes integration test coverage.
- Detects API endpoints, database operations, service calls, and user workflows
- Auto-detects test frameworks (Supertest, Jest, Pytest, Playwright, Postman, k6, etc.)
- Identifies integration coverage gaps across multiple layers
- Generates proposals for happy path, error handling, resilience, and performance scenarios
Usage: /integration-test-generator in Claude chat
Output: Integration point analysis with test proposals, framework recommendations, and phased implementation plans
Project Structure
LeVar-Marketplace/
├── README.md (This file)
├── LICENSE (Repository license)
├── marketplace.json (Marketplace configuration)
│
└── plugins/
├── unit-test-generator/
│ ├── skills/unit-test-generator/
│ │ └── SKILL.md (Skill definition & workflow)
│ ├── scripts/
│ │ └── generate_tests.py (Python implementation)
│ ├── examples/ (Example code & outputs)
│ └── README.md (Detailed documentation)
│
└── integration-test-generator/
├── skills/integration-test-generator/
│ └── SKILL.md (Skill definition & workflow)
├── scripts/
│ └── integration_test_generator.py (Python implementation)
├── examples/ (Example code & outputs)
└── README.md (Detailed documentation)
How It Works
- Invoke a skill — Type
/unit-test-generator or /integration-test-generator in Claude chat
- Analyzes your code — The skill examines code changes in your current branch
- Compares against default — Identifies what's new or modified compared to the default branch
- Detects patterns — Analyzes existing test patterns and frameworks in your repository
- Generates proposals — Creates specific test recommendations with setup requirements and assertions
- Provides implementation plan — Prioritizes tests with complexity estimates and time guidance
Key Features
Unit Test Generator
- ✅ Detects functions and components across multiple languages (TypeScript, Python, Java, Ruby, Go)
- ✅ Identifies test coverage gaps for unit-level functionality
- ✅ Proposes 4 scenario types: positive, negative, edge case, default
- ✅ Provides implementation plans with priority and complexity estimates
- ✅ Analyzes existing test patterns for consistency
Integration & System Test Generator
- ✅ Maps API endpoints, database operations, and service-to-service calls
- ✅ Auto-detects 10+ test frameworks (Jest, Pytest, Playwright, Cypress, Postman, k6, and more)
- ✅ Proposes 6 scenario types: happy path, error handling, edge case, resilience, performance, security
- ✅ Estimates complexity based on layers involved (API, Database, External Services)
- ✅ Includes mock/stub strategy recommendations
Getting Started
Prerequisites
- Git repository with a default branch (typically
main)
- Code changes staged or committed on current branch
- GitHub Copilot Chat with Claude enabled
Using the Skills
Unit Tests Example:
- Make code changes (add new functions, modify existing logic)
- In GitHub Copilot Chat, type:
/unit-test-generator
- Review the generated test proposals
- Implement tests following the provided plan
Integration Tests Example:
- Modify API endpoints, database operations, or service calls
- In GitHub Copilot Chat, type:
/integration-test-generator
- Review integration points and test proposals
- Implement integration tests with recommended frameworks
Documentation