一键导入
demo-2-1-features
// Demo skill showing all Claude Code 2.1 features. Use when asked to "demo 2.1" or "show new skill features".
// Demo skill showing all Claude Code 2.1 features. Use when asked to "demo 2.1" or "show new skill features".
| name | demo-2-1-features |
| description | Demo skill showing all Claude Code 2.1 features. Use when asked to "demo 2.1" or "show new skill features". |
| context | fork |
| agent | general-purpose |
| model | haiku |
| allowed-tools | ["Read","Glob","Grep","Task","TaskOutput","AskUserQuestion"] |
| user-invocable | true |
| hooks | {"PreToolUse":[{"matcher":"Task","hooks":[{"type":"command","command":"echo '🚀 Launching parallel agent...'"}]}],"PostToolUse":[{"matcher":"TaskOutput","hooks":[{"type":"command","command":"echo '✅ Agent results received'"}]}],"Stop":[{"hooks":[{"type":"command","command":"echo '📊 Demo complete! All 2.1 features demonstrated.'"}]}]} |
This skill demonstrates Claude Code 2.1's parallel agent capabilities by analyzing your Second Brain knowledge base.
Launch exactly 3 Explore agents IN A SINGLE MESSAGE (this is critical - all 3 Task calls must be in one response to demonstrate parallelism):
Agent 1 - Content Stats: Prompt: "Count markdown files in content/ directory by their frontmatter 'type' field. Read 10-15 sample files to identify the types used (book, podcast, article, til, moc, etc.), then use Glob to count files. Report a breakdown table of type → count."
Agent 2 - Orphan Detection: Prompt: "Find markdown files in content/ that contain NO wiki-links (no [[...]] patterns). These are 'orphan' notes that could benefit from connections. Use Grep to find files WITHOUT the [[ pattern. Report the top 5 candidates with their titles."
Agent 3 - Recent Activity: Prompt: "Find the 5 most recently modified markdown files in content/. Use Glob with sorting by modification time. Report their titles and relative dates (e.g., '2 days ago')."
Use TaskOutput (with block=true) to wait for all 3 agents.
Present findings in a summary:
## 📊 Knowledge Graph Quick Scan Results
### Content Breakdown
[Agent 1 results as table]
### Orphan Notes (Need Links)
[Agent 2 results as list]
### Recently Modified
[Agent 3 results as list]
Use AskUserQuestion with these options:
If user selects options 1-3, spawn another targeted Explore agent. If user selects option 4 or after completing a follow-up, proceed to Phase 4.
End by displaying:
## 2.1 Features Demonstrated
✓ context: fork - Isolated execution (main conversation unchanged)
✓ agent: general-purpose - Enabled Task tool for parallelism
✓ model: haiku - Cost-optimized execution
✓ Parallel Task agents - 3 agents launched simultaneously
✓ hooks.PreToolUse - "🚀 Launching..." on each Task call
✓ hooks.PostToolUse - "✅ Results received" on each TaskOutput
✓ hooks.Stop - Completion message at end
✓ AskUserQuestion - Interactive follow-up options
✓ YAML allowed-tools - Cleaner list syntax
Must read guide on creating/editing mermaid charts with validation tools and syntax reference for all diagram types
Generate interactive HTML walkthroughs with clickable Mermaid diagrams (flowcharts and ER diagrams) that explain codebase features, flows, architecture, and database schemas. Use when asked to "walkthrough", "explain this flow", "how does X work", "trace the code path", "annotated diagram", "code walkthrough", "explain the architecture of", "walk me through", "database schema", "explain the tables", "data model".
Create a note from any resource: URL, book, podcast, article, video, GitHub repo, Reddit thread, PDF, quote, or raw idea. Trigger on "add", "save", "capture", "note this", "take notes on", or any request to record content in the knowledge base.
Add tweets to the Second Brain. Use when the user provides a Twitter/X URL and pasted tweet content, asking to "add a tweet", "save this tweet", or "capture this tweet".
Query your Second Brain with keyword search. Use when asked to "ask my notes", "what do I know about", "query my knowledge", "/ask", or when the user has a question that their notes might answer.
Create Obsidian templates for the Second Brain vault. Use when asked to "create a template", "make a template for", "add an Obsidian template", or "template for X".