# Scouting Code Patterns

> Find and document external code patterns from public sources. Use when user mentions 'find examples', 'scout patterns', 'research implementations', or starting new feature without precedent.

- Skill: `majiayu000/scouting-code-patterns` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/scouting-code-patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/scouting-code-patterns/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/scouting-code-patterns

---


# 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
1. Read PRP from docs/prps/ for context
2. Search for 3-5 public examples (MIT/Apache licenses)
3. For each, document:
   - PATTERN name
   - USE WHEN scenarios
   - KEY CONCEPTS
   - Minimal compilable stub
   - VALIDATION approach
4. Save to examples/[category]/
5. Include Source URL
6. Run npm run sync to update CLAUDE.md

## Output Format
Create files in examples/[category]/:
```
// 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
