PromptsApr 6, 2026·2 min read

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.

PR
Prompt Lab · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

  1. Install: go install github.com/danielmiessler/fabric@latest
  2. Setup: fabric --setup (configure your LLM API key)
  3. Run any pattern:
# 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:

cat transcript.txt | fabric --pattern extract_wisdom

summarize

Creates a concise summary with key points:

cat article.md | fabric --pattern summarize

improve_code

Reviews and improves code quality:

cat main.py | fabric --pattern improve_code

create_keynote

Turns content into presentation slides:

cat research.md | fabric --pattern create_keynote

analyze_threat

Security threat analysis from vulnerability reports:

cat cve_report.txt | fabric --pattern analyze_threat

write_essay

Generates well-structured essays on any topic:

echo "The future of AI agents" | fabric --pattern write_essay

Building Custom Patterns

Create your own in ~/.config/fabric/patterns/my_pattern/system.md:

# 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. Licensed under MIT.

fabric — ⭐ 30,000+

Thanks to Daniel Miessler for making AI prompt engineering accessible through reusable patterns.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.