Usage Examples

Real-world scenarios demonstrating effective use of the Reflexion plugin.

Examples

Quick Quality Check

Scenario: You've implemented a simple utility function and want to verify it's correct.

# Implement the function
> claude "create a function to format phone numbers to (XXX) XXX-XXXX format"

# Quick reflection
> /reflexion:reflect

Expected Flow:

  1. Reflexion triages as "Quick Path" (simple task)

  2. Performs 5-second verification

  3. Either confirms quality or suggests specific improvements

  4. No memorization needed for trivial utility

When Reflection Finds Issues:

Reflection Output:
- ✅ Function works for standard US numbers
- ⚠️ No validation for input format
- ⚠️ Doesn't handle international numbers
- Refined version includes input validation and clear error messages

Comprehensive Feature Review

Scenario: Complex authentication feature needs thorough review.

Expected Critique Output:

Implement → Reflect → Memorize

Reflection finds optimization opportunity:

Memorized Knowledge (added to CLAUDE.md):

Design → Critique → Refine

Scenario: Designing a caching strategy.

First Critique:

Second Critique (after refinement):

Continuous Improvement Cycle

Integration with Other Plugins

With Code Review

With SDD

With Kaizen

Last updated