Pattern-000: Template for Pattern Documentation

Status

Template Proven Emerging Experimental Deprecated

Context

Brief description of the problem or situation that this pattern addresses. Include:

Pattern Description

Clear, concise description of the pattern itself:

Implementation

Structure

# Language-specific implementation structure
# Show key classes, interfaces, or components

Code Example

# Concrete implementation example
# Focus on the essential elements that demonstrate the pattern
class PatternExample:
    """Example implementation of this pattern."""

    def __init__(self):
        # Initialization logic
        pass

    def core_method(self):
        """Core pattern functionality."""
        # Implementation details
        pass

Configuration

# Configuration examples if applicable
pattern_config:
  enabled: true
  parameters:
    - setting: value

Usage Guidelines

When to Use

When NOT to Use

Best Practices

Examples in Codebase

Primary Usage

Test Examples

Complements

Alternatives

Dependencies

Migration Notes

If consolidating from existing documentation

From pattern-catalog.md

From PATTERN-INDEX.md

References

Documentation

Usage Analysis


Template Usage Instructions

For Consolidation (Agents A & B)

  1. Status: Set to “Proven” for established patterns, “Emerging” for new ones
  2. Context: Merge context from both pattern-catalog.md and PATTERN-INDEX.md
  3. Implementation: Prioritize working code examples from codebase
  4. Migration Notes: Document what was consolidated from each source
  5. References: Include links back to original sources

For New Patterns

  1. Status: Start with “Experimental” or “Emerging”
  2. Context: Clearly define the problem space
  3. Implementation: Provide working, tested examples
  4. Usage Guidelines: Be explicit about when to use/avoid
  5. References: Link to supporting documentation and decisions

Quality Checklist


Template created: September 15, 2025 For use in Pattern Catalog Consolidation project Agent coordination: Template by Agent B (Cursor), Implementation by Agent A (Code)