Intelligent pattern selection for Fabric CLI. Automatically selects the right pattern from 242+ specialized prompts based on your intent - threat modeling, analysis, summarization, content creation, extraction, and more. USE WHEN processing content, analyzing data, creating summaries, threat modeling, or transforming text.
Instrucciones de origen · Vista previa de solo lectura
name
fabric
description
Intelligent pattern selection for Fabric CLI. Automatically selects the right pattern from 242+ specialized prompts based on your intent - threat modeling, analysis, summarization, content creation, extraction, and more. USE WHEN processing content, analyzing data, creating summaries, threat modeling, or transforming text.
Fabric Skill
Setup Check - Fabric Repository
IMPORTANT: Before using this skill, verify the Fabric repository is available:
# Check if Fabric repo existsif [ ! -d "$HOME/.claude/skills/fabric/fabric-repo" ]; thenecho"Fabric repository not found. Cloning..."cd"$HOME/.claude/skills/fabric"
git clone https://github.com/danielmiessler/fabric.git fabric-repo
echo"Fabric repository cloned successfully."elseecho"Fabric repository found at $HOME/.claude/skills/fabric/fabric-repo"fi
If the repo doesn't exist, clone it immediately before proceeding with any pattern selection.
When to Activate This Skill
Primary Use Cases:
"Create a threat model for..."
"Summarize this article/video/paper..."
"Extract wisdom/insights from..."
"Analyze this [code/malware/claims/debate]..."
"Improve my writing/code/prompt..."
"Create a [visualization/summary/report]..."
"Rate/review/judge this content..."
The Goal: Select the RIGHT pattern from 242+ available patterns based on what you're trying to accomplish.
🎯 Pattern Selection Strategy
When a user requests Fabric processing, follow this decision tree:
1. Identify Intent Category
Threat Modeling & Security:
Threat model → create_threat_model or create_stride_threat_model
The Fabric repository is included in this skill at ${PAI_DIR}/skills/fabric/fabric-repo/.
To update patterns:
cd${PAI_DIR}/skills/fabric/fabric-repo
git pull origin main
To see all available patterns:
ls${PAI_DIR}/skills/fabric/fabric-repo/data/patterns/
# OR from your local Fabric install:ls ~/.config/fabric/patterns/
💡 Usage Examples
Threat Modeling:
# User: "Create a threat model for our new API"
fabric "API that handles user authentication and payment processing" -p create_threat_model
Summarization:
# User: "Summarize this blog post"
fabric -u "https://example.com/blog-post" -p summarize
# User: "Give me a 5-sentence summary"
fabric -u "https://example.com/article" -p create_5_sentence_summary
Wisdom Extraction:
# User: "Extract wisdom from this video"
fabric -y "https://youtube.com/watch?v=..." -p extract_wisdom
# User: "What are the main ideas?"
fabric -u "URL" -p extract_main_idea
Analysis:
# User: "Analyze this code for issues"
fabric "$(cat code.py)" -p analyze_code
# User: "Analyze these security claims"
fabric "security claims text" -p analyze_claims
Full Pattern List:ls ${PAI_DIR}/skills/fabric/fabric-repo/data/patterns/Fabric Repo:${PAI_DIR}/skills/fabric/fabric-repo/Fabric Documentation:https://github.com/danielmiessler/fabricPattern Templates: See ${PAI_DIR}/skills/fabric/fabric-repo/data/patterns/official_pattern_template/
🔑 Key Insight
The skill's value is in selecting the RIGHT pattern for the task.
When user says "Create a threat model using Fabric", your job is to:
Recognize "threat model" intent
Know available options: create_threat_model, create_stride_threat_model, create_threat_scenarios
Select the best match (usually create_threat_model unless STRIDE specified)