# Fabric — AI Automation Patterns & Prompt Library > Curated collection of 100+ reusable AI prompt patterns for summarizing, extracting wisdom, writing, and coding. Run any pattern from CLI with one command. 30,000+ GitHub stars. ## Install Paste the prompt below into your AI tool: ## Quick Use 1. Install: `go install github.com/danielmiessler/fabric@latest` 2. Setup: `fabric --setup` (configure your LLM API key) 3. Run any pattern: ```bash # Extract insights from a YouTube video yt --transcript https://youtube.com/watch?v=abc | fabric --pattern extract_wisdom # Summarize an article cat article.txt | fabric --pattern summarize # Improve code quality cat code.py | fabric --pattern improve_code ``` --- ## Intro Fabric is an open-source framework with 100+ curated AI prompt patterns that turn complex AI tasks into simple one-line CLI commands, with 30,000+ GitHub stars. Each pattern is a battle-tested system prompt for tasks like extracting key insights, summarizing articles, improving code, and analyzing security threats. Best for power users who want repeatable, high-quality AI outputs without writing prompts from scratch. Works with: OpenAI, Anthropic, Ollama, any OpenAI-compatible API. Setup time: under 5 minutes. --- ## Popular Patterns ### `extract_wisdom` The signature pattern — extracts key ideas, insights, quotes, and recommendations: ```bash cat transcript.txt | fabric --pattern extract_wisdom ``` ### `summarize` Creates a concise summary with key points: ```bash cat article.md | fabric --pattern summarize ``` ### `improve_code` Reviews and improves code quality: ```bash cat main.py | fabric --pattern improve_code ``` ### `create_keynote` Turns content into presentation slides: ```bash cat research.md | fabric --pattern create_keynote ``` ### `analyze_threat` Security threat analysis from vulnerability reports: ```bash cat cve_report.txt | fabric --pattern analyze_threat ``` ### `write_essay` Generates well-structured essays on any topic: ```bash echo "The future of AI agents" | fabric --pattern write_essay ``` ### Building Custom Patterns Create your own in `~/.config/fabric/patterns/my_pattern/system.md`: ```markdown # IDENTITY and PURPOSE You are an expert at [your specialty]. # STEPS 1. Read the input carefully 2. [Your specific instructions] # OUTPUT - [Expected format] ``` Then: `cat input.txt | fabric --pattern my_pattern` ### Key Stats - 30,000+ GitHub stars - 100+ built-in patterns - 500+ community contributors - Supports 10+ LLM providers - Written in Go — fast and portable ### FAQ **Q: What is Fabric?** A: Fabric is a CLI framework with 100+ curated AI prompt patterns that turn complex tasks like summarization, analysis, and code improvement into simple one-line commands. **Q: Is Fabric free?** A: Yes, fully open-source under MIT license. You need your own LLM API key. **Q: Can I use Fabric with local models?** A: Yes, Fabric supports Ollama and any OpenAI-compatible local inference server. --- ## Source & Thanks > Created by [Daniel Miessler](https://github.com/danielmiessler). Licensed under MIT. > > [fabric](https://github.com/danielmiessler/fabric) — ⭐ 30,000+ Thanks to Daniel Miessler for making AI prompt engineering accessible through reusable patterns. --- ## Quick Use 1. Install: `go install github.com/danielmiessler/fabric@latest` 2. Set up: `fabric --setup` (configure LLM API keys) 3. Run any pattern: ```bash # Extract insights from a video yt --transcript https://youtube.com/watch?v=abc | fabric --pattern extract_wisdom # Summarize an article cat article.txt | fabric --pattern summarize ``` --- ## Intro Fabric is an open-source framework with 100+ curated AI prompt patterns, 30,000+ GitHub stars. Each pattern is a battle-tested system prompt for tasks like extracting insights, summarizing articles, and improving code. Ideal for power users who want high-quality AI output without writing prompts from scratch. Supports OpenAI, Anthropic, Ollama, and more. --- ## Source & Thanks > Created by [Daniel Miessler](https://github.com/danielmiessler). Licensed under MIT. > > [fabric](https://github.com/danielmiessler/fabric) — ⭐ 30,000+ --- Source: https://tokrepo.com/en/workflows/fabric-ai-automation-patterns-prompt-library-23b1fdf9 Author: Prompt Lab