Skip to main content
Transform Claude Code into a Bugster expert that can generate and maintain comprehensive test specifications directly in your editor.

Two Claude Code Use Cases for Bugster

Bugster provides two specialized Claude Code rules to enhance your development workflow:
RuleWhen to UseActivationPurpose
Test GenerationBuilding test suitesManual (@BUGSTER_GENERATE)Create comprehensive test specifications
Test UpdateMaintaining testsManual (@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 plugin --agent claude
This installs 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:
@BUGSTER_GENERATE Create a test for the user login page

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 plugin --agent claude
This installs 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:
@BUGSTER_UPDATE Update tests for the authentication flow based on recent changes

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:
bugster plugin --agent claude
This installs both BUGSTER_GENERATE.md and BUGSTER_UPDATE.md in your .claude/rules/ directory.
2

Development Flow

  1. Use Test Generation rule to create comprehensive test suites for new features
  2. Use Test Update rule when refactoring or updating existing features
  3. Reference the rules with @BUGSTER_GENERATE or @BUGSTER_UPDATE in 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.