Loading...
Loading...
AI prompt orchestration CLI using reusable Patterns. Use for YouTube summarization, document analysis, content extraction, code explanation, writing assistance, and any AI task via stdin/stdout piping across 20+ providers.
npx skill4agent add supercent-io/skills-template fabric# macOS/Linux (one-liner)
curl -fsSL https://raw.githubusercontent.com/danielmiessler/fabric/main/scripts/installer/install.sh | bash
# macOS via Homebrew
brew install fabric-ai
# Windows
winget install danielmiessler.Fabric
# After install — configure API keys and default model
fabric --setup# Summarize a file
cat article.txt | fabric -p summarize
# Stream output in real time
cat document.txt | fabric -p extract_wisdom --stream
# Pipe any command output through a pattern
git log --oneline -20 | fabric -p summarize
# Process clipboard (macOS)
pbpaste | fabric -p summarize
# Pipe from curl
curl -s https://example.com/article | fabric -p summarize# List all available patterns
fabric -l
# Update patterns from the repository
fabric -u
# Search patterns by keyword
fabric -l | grep summary
fabric -l | grep code
fabric -l | grep security| Pattern | Purpose |
|---|---|
| Summarize any content into key points |
| Extract insights, quotes, habits, and lessons |
| Break down academic papers into actionable insights |
| Explain code in plain language |
| Write essays from a topic or rough notes |
| Remove noise and formatting from raw text |
| Fact-check and assess credibility of claims |
| Create a structured, markdown summary |
| Rate and score content quality |
| Categorize and score content |
| Polish and improve text clarity |
| Generate relevant tags for content |
| Review code or systems for security issues |
| Extract the core ideas of a thinker or author |
| Create a visual map of complex investigations |
# Summarize a YouTube video
fabric -y "https://youtube.com/watch?v=VIDEO_ID" -p summarize
# Extract key insights from a video
fabric -y "https://youtube.com/watch?v=VIDEO_ID" -p extract_wisdom
# Get transcript only (no pattern applied)
fabric -y "https://youtube.com/watch?v=VIDEO_ID" --transcript
# Transcript with timestamps
fabric -y "https://youtube.com/watch?v=VIDEO_ID" --transcript-with-timestampssystem.md~/.config/fabric/patterns/mkdir -p ~/.config/fabric/patterns/my-pattern
cat > ~/.config/fabric/patterns/my-pattern/system.md << 'EOF'
# IDENTITY AND PURPOSE
You are an expert at [task]. Your job is to [specific goal].
Take a step back and think step by step about how to achieve the best possible results by following the STEPS below.
# STEPS
1. [Step 1]
2. [Step 2]
# OUTPUT INSTRUCTIONS
- Only output Markdown.
- [Format instruction 2]
- Do not give warnings or notes; only output the requested sections.
# INPUT
INPUT:
EOFecho "input text" | fabric -p my-pattern
cat file.txt | fabric -p my-pattern --stream# Run as REST API server (port 8080 by default)
fabric --serve
# Use web search capability
fabric -p analyze_claims --search "claim to verify"
# Per-pattern model routing in ~/.config/fabric/.env
FABRIC_MODEL_PATTERN_SUMMARIZE=anthropic|claude-opus-4-5
FABRIC_MODEL_PATTERN_EXTRACT_WISDOM=openai|gpt-4o
FABRIC_MODEL_PATTERN_EXPLAIN_CODE=google|gemini-2.0-flash
# Create shell aliases for frequently used patterns
alias summarize="fabric -p summarize"
alias wisdom="fabric -p extract_wisdom"
alias explain="fabric -p explain_code"
# Chain patterns
cat paper.txt | fabric -p summarize | fabric -p extract_wisdom
# Save output
cat document.txt | fabric -p extract_wisdom > insights.md# Analyze test failures
npm test 2>&1 | fabric -p analyze_logs
# Summarize git history for a PR description
git log --oneline origin/main..HEAD | fabric -p create_summary
# Explain a code diff
git diff HEAD~1 | fabric -p explain_code
# Summarize build errors
make build 2>&1 | fabric -p summarize
# Analyze security vulnerabilities in code
cat src/auth.py | fabric -p ask_secure_by_design
# Process log files
cat /var/log/app.log | tail -100 | fabric -p analyze_logs# Start server
fabric --serve --port 8080
# Call via HTTP
curl -X POST http://localhost:8080/chat \
-H "Content-Type: application/json" \
-d '{"prompts":[{"userInput":"Summarize this","patternName":"summarize"}]}'fabric -u--streamalias wisdom="fabric -p extract_wisdom"~/.config/fabric/patterns/