Skip to content

Skill: Pattern Research

Capability

Find design patterns applicable to a specific problem or domain.

Fulfills Activity

identify-patterns

Tool Workflow

┌─────────────────────────────────────┐
│ 1. concept_search(pattern domain)   │◄──────────────────┐
│    Find pattern concepts            │                   │
│    → preserve: pattern names        │                   │
└────────────┬────────────────────────┘                   │
             │                                            │
             ▼                                            │
┌─────────────────────────────────────┐                   │
│ 2. source_concepts(patterns)        │                   │
│    Get authoritative sources        │                   │
│    → preserve: source paths         │                   │
└────────────┬────────────────────────┘                   │
             │                                            │
             ▼                                            │
┌─────────────────────────────────────┐                   │
│ 3. chunks_search(source, pattern)   │◄──┐               │
│    Extract pattern details          │   │ LOOP: for     │
│    → preserve: descriptions         │   │ each source   │
└────────────┬────────────────────────┘   │               │
             │                            │               │
             ├── more sources? ───────────┘               │
             │                                            │
             ├── found related patterns? ─────────────────┘
             │   (refine search)
┌─────────────────────────────────────┐
│ 4. SYNTHESIZE                       │
│    Pattern catalog with trade-offs  │
└─────────────────────────────────────┘

Tool Details

Step 1: Find Pattern Concepts

Tool: concept_search
Input: pattern domain (e.g., "caching patterns", "error handling")
Output: Concepts related to patterns

Step 2: Get Sources

Tool: source_concepts
Input: pattern concept names
Output: Documents discussing patterns

Step 3: Extract Details

Tool: chunks_search
Input: source path, pattern query
Output: Pattern descriptions and trade-offs

Context to Preserve

Item Purpose
Pattern names Track which patterns found
Source documents For citations
Trade-offs For recommendations

Stop Conditions

  • Found 2-3 applicable patterns
  • Have descriptions and trade-offs
  • Maximum 5-6 tool calls