Analyze sources (blog posts, PDFs, YouTube videos, codebases, pasted text) for agentic patterns, match against 105+ existing patterns, create new patterns or update existing with new sources and insights.
This skill intelligently analyzes sources for agentic AI patterns, matches them against existing patterns in the repository, and either creates new patterns or updates existing ones with additional sources and insights.
Input: A source (URL, PDF file, YouTube link, codebase path, or pasted text)
Process:
Output: New pattern file OR updated existing pattern + build confirmation
Detect the input type and process accordingly:
Use mcp__web_reader__webReader with the URL:
{"url": "USER_PROVIDED_URL", "return_format": "markdown"}
Use Read tool with the PDF path.
Use mcp__web_reader__webReader with the YouTube URL (transcript extraction).
Use Glob to find key files, then Read to analyze:
**/*.md - Documentation**/*.py - Python implementation**/*.ts - TypeScript implementationAnalyze directly (no tool needed).
From the source content, extract:
Generate candidate metadata:
Search for similar patterns in patterns/ directory:
Use Glob to find all .md files in patterns/, then Grep with output_mode content to extract frontmatter from each:
grep -A 10 "^title:" patterns/*.md
Or read multiple pattern files in parallel to compare:
For each existing pattern, assess similarity using these signals:
Primary Signals (weight: 30% each)
Secondary Signals (weight: 10% each) 4. Tag Overlap - Shared keywords? 5. Source/Author - Same contributor's follow-up work? 6. Title - Similar naming/description?
Score = Σ(matching_signals × weights)
List top 3 matching patterns with:
Based on confidence score:
Update the top-matching existing pattern with new source.
Create a brand new pattern file.
Present the top match and ask:
This source seems related to:
- [Match Pattern] (X% confidence)
- Similar problem: [problem summary]
- Similar solution: [solution summary]
Should I:
1. Create a new pattern
2. Update the existing pattern with this new source
---