Pattern Scout
When to Use
- •User asks to "find examples"
- •Starting new feature without precedent
- •Need to research best practices
- •References docs/prompts/SCOUT-*
Process
- •Read PRP from docs/prps/ for context
- •Search for 3-5 public examples (MIT/Apache licenses)
- •For each, document:
- •PATTERN name
- •USE WHEN scenarios
- •KEY CONCEPTS
- •Minimal compilable stub
- •VALIDATION approach
- •Save to examples/[category]/
- •Include Source URL
- •Run npm run sync to update CLAUDE.md
Output Format
Create files in examples/[category]/:
code
// PATTERN: [name] // USE WHEN: [scenarios] // SOURCE: [URL] // VALIDATION: [how to test] [minimal compilable code]
Anti-patterns
- •Don't paste proprietary code
- •Don't include non-working examples
- •Always provide source attribution