fabric
Native Fabric pattern execution for Claude Code. USE WHEN processing content with Fabric patterns (extract_wisdom, summarize, analyze_claims, threat modeling, etc.). Patterns run natively in Claude's context - no CLI spawning needed. Only use fabric CLI for YouTube transcripts (-y) or pattern updates (-U).
What this skill does
# Fabric Skill - Native Pattern Execution
## The Key Insight
**Fabric patterns are just markdown prompts.** Instead of spawning `fabric -p pattern_name` for every task, Claude Code reads and applies patterns directly from `${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/`. This gives you:
- **Your Claude subscription's full power** - Opus/Sonnet intelligence, not Fabric's default model
- **Full conversation context** - Patterns work with your entire session
- **No CLI overhead** - Faster execution, no process spawning
- **Same 248 patterns** - All the patterns you know, just applied natively
## When to Use Native Patterns (Default)
For any pattern-based processing:
1. Read `${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/{pattern_name}/system.md`
2. Apply the pattern instructions directly to the content
3. Return results without external CLI calls
**Examples:**
```
User: "Extract wisdom from this transcript"
→ Read ${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/extract_wisdom/system.md
→ Apply pattern to content
→ Return structured output (IDEAS, INSIGHTS, QUOTES, etc.)
User: "Create a threat model for this API"
→ Read ${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/create_threat_model/system.md
→ Apply pattern to the API description
→ Return threat model
User: "Summarize this article"
→ Read ${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/summarize/system.md
→ Apply pattern to article
→ Return summary
```
## When to Still Use Fabric CLI
Only use the `fabric` command for operations that require external services:
| Operation | Command | Why CLI Needed |
|-----------|---------|----------------|
| YouTube transcripts | `fabric -y "URL"` | Downloads video, extracts transcript |
| Update patterns | `fabric -U` | Pulls from GitHub |
| List patterns | `fabric -l` | Quick reference |
**For everything else, use native patterns.**
## Pattern Categories (248 Total)
### Threat Modeling & Security
- `create_threat_model` - General threat modeling
- `create_stride_threat_model` - STRIDE methodology
- `create_threat_scenarios` - Threat scenario generation
- `analyze_threat_report` - Threat report analysis
- `create_sigma_rules` - SIGMA detection rules
- `write_nuclei_template_rule` - Nuclei scanner templates
- `write_semgrep_rule` - Semgrep static analysis rules
### Summarization
- `summarize` - General summarization
- `create_5_sentence_summary` - Ultra-concise summary
- `summarize_paper` - Academic paper summary
- `summarize_meeting` - Meeting notes
- `youtube_summary` - Video summary
### Wisdom Extraction
- `extract_wisdom` - General wisdom extraction
- `extract_insights` - Key insights
- `extract_main_idea` - Core message
- `extract_recommendations` - Actionable recommendations
- `extract_alpha` - High-value insights
### Analysis
- `analyze_claims` - Claim verification
- `analyze_code` - Code analysis
- `analyze_malware` - Malware analysis
- `analyze_paper` - Academic paper analysis
- `analyze_debate` - Debate analysis
### Content Creation
- `create_prd` - Product Requirements Document
- `create_design_document` - Design documentation
- `create_mermaid_visualization` - Mermaid diagrams
- `write_essay` - Essay writing
- `create_report_finding` - Security findings
### Improvement
- `improve_writing` - Writing enhancement
- `improve_prompt` - Prompt engineering
- `review_code` - Code review
- `humanize` - Humanize AI text
## Updating Patterns
Run the update script to sync latest patterns from upstream:
```bash
./tools/update-patterns.sh
```
This will:
1. Run `fabric -U` to fetch upstream updates
2. Sync patterns to `${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/`
**Requirements:** `fabric` CLI must be installed (`go install github.com/danielmiessler/fabric@latest`)
## Pattern Structure
Each pattern directory contains:
- `system.md` - The main prompt/instructions (this is what gets applied)
- `README.md` - Documentation (optional)
- `user.md` - Example user input (optional)
## Why Native > CLI
| Aspect | Native Patterns | fabric CLI |
|--------|-----------------|------------|
| Model | Your subscription (Opus/Sonnet) | Fabric's configured model |
| Context | Full conversation history | Just the input |
| Speed | Instant (no process spawn) | ~1-2s CLI overhead |
| Integration | Seamless with Claude Code | External tool call |
**The patterns are identical.** The difference is execution context and model power.
## Full Pattern List
See all available patterns:
```bash
ls ${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/
```
Or browse: `${CLAUDE_PLUGIN_ROOT}/skills/fabric/tools/patterns/{pattern_name}/system.md`
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.