.agents/skills/fabric/SKILL.md
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 skillsauth add Reinasboo/Bountylab fabricInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fabric is an open-source AI prompt orchestration framework by Daniel Miessler. It provides a library of reusable AI prompts called Patterns — each designed for a specific real-world task — wired into a simple Unix pipeline with stdin/stdout.
# 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
Fabric works as a Unix pipe. Feed content through stdin and specify a pattern:
# 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
Key patterns:
| Pattern | Purpose |
|---------|---------|
| summarize | Summarize any content into key points |
| extract_wisdom | Extract insights, quotes, habits, and lessons |
| analyze_paper | Break down academic papers into actionable insights |
| explain_code | Explain code in plain language |
| write_essay | Write essays from a topic or rough notes |
| clean_text | Remove noise and formatting from raw text |
| analyze_claims | Fact-check and assess credibility of claims |
| create_summary | Create a structured, markdown summary |
| rate_content | Rate and score content quality |
| label_and_rate | Categorize and score content |
| improve_writing | Polish and improve text clarity |
| create_tags | Generate relevant tags for content |
| ask_secure_by_design | Review code or systems for security issues |
| capture_thinkers_work | Extract the core ideas of a thinker or author |
| create_investigation_visualization | 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-timestamps
Each pattern is a directory with a system.md file inside ~/.config/fabric/patterns/. The body should follow this structure:
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:
EOF
Use it immediately:
echo "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
Fabric is a powerful utility for AI agents — pipe any tool output through patterns for intelligent analysis:
# 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
Run Fabric as a microservice and call it from other tools:
# 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 before first use and regularly to get the latest community patterns.--stream for long content to see results progressively instead of waiting.alias wisdom="fabric -p extract_wisdom") for your most-used patterns.~/.config/fabric/patterns/ — they persist across updates.development
Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit security", "OWASP review", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.
development
Implement security best practices for web applications and infrastructure. Use when securing APIs, preventing common vulnerabilities, or implementing security policies. Handles HTTPS, CORS, XSS, SQL Injection, CSRF, rate limiting, and OWASP Top 10.
development
Create responsive web designs that work across all devices and screen sizes. Use when building mobile-first layouts, implementing breakpoints, or optimizing for different viewports. Handles CSS Grid, Flexbox, media queries, viewport units, and responsive images.
content-media
Produce programmable videos with Remotion using scene planning, asset orchestration, and validation gates for automated, brand-consistent video content.