Two Claude Code Use Cases for Bugster
Bugster provides two specialized Claude Code rules to enhance your development workflow:Test Generation
Manual activation - Generate comprehensive test specifications following Bugster’s YAML structure and best practices.
Test Update
Manual activation - Update existing test specifications based on code changes and new requirements.
| Rule | When to Use | Activation | Purpose |
|---|---|---|---|
| Test Generation | Building test suites | Manual (@BUGSTER_GENERATE) | Create comprehensive test specifications |
| Test Update | Maintaining tests | Manual (@BUGSTER_UPDATE) | Update existing tests after code changes |
Test Generation Rule
This rule provides Claude Code with context to properly generate Bugster test specifications following the required YAML structure and best practices.Installation
Install the official test generation rule using the Bugster CLI:BUGSTER_GENERATE.md in your .claude/rules/ directory.
View the official rule: Claude Code Test Generation Rule
How to Use
Reference the rule in your Claude Code chat to activate it:What It Does
- Generates comprehensive test specifications in proper YAML format
- Follows Bugster naming conventions and file structure
- Creates tests in
.bugster/tests/with correct hierarchy - Validates all required fields are present
- Limits generation to avoid test duplication
The rule automatically checks existing tests to avoid duplicates and follows your project’s file structure conventions.
Test Update Rule
This rule helps you update existing test specifications when your code changes or requirements evolve.Installation
Install the official test update rule using the Bugster CLI:BUGSTER_UPDATE.md in your .claude/rules/ directory.
View the official rule: Claude Code Test Update Rule
How to Use
Reference the rule in your Claude Code chat to activate it:What It Does
- Updates existing test specifications to match code changes
- Maintains test structure while adapting to new requirements
- Preserves test intent while updating implementation details
- Ensures tests stay synchronized with your codebase
- Follows the same YAML standards as test generation
Use this rule after refactoring components or updating user flows to keep your test suite current without starting from scratch.
Combining Both Rules
For optimal workflow, use both rules together:1
Setup
Install the official rules using the Bugster CLI:This installs both
BUGSTER_GENERATE.md and BUGSTER_UPDATE.md in your .claude/rules/ directory.2
Development Flow
- Use Test Generation rule to create comprehensive test suites for new features
- Use Test Update rule when refactoring or updating existing features
- Reference the rules with
@BUGSTER_GENERATEor@BUGSTER_UPDATEin your Claude Code chat
3
Team Consistency
Both rules ensure team members follow the same Bugster standards and test quality across your project.
The plugin command installs both generation and update rules automatically, making it easy to maintain consistent test coverage as your codebase evolves.
