repobenchmarks // ai prompt patterns
AI TOOLS
$ pbpaste | fabric --pattern extract_wisdom

Fabric Prompt Engineering Framework

Daniel Miessler's open-source framework that integrates granular, battle-tested AI prompt patterns directly into the Unix terminal pipeline.

Integration: Standard Unix Pipes Patterns: >100 Curated Prompts Stars: >26,000
Input Stream YouTube transcript Markdown file Fabric Pattern extract_wisdom Markdown Output

Most developers use AI through ad-hoc chat boxes, typing vague prompts like "summarize this article" that return superficial, generic bullet points. Fabric (created by cybersecurity researcher Daniel Miessler) treats prompt engineering as modular software components called Patterns. It brings these curated patterns into the Unix terminal so you can pipe YouTube videos, podcast transcripts, research papers, and git diffs into AI with mathematical repeatability.

Everyday Fabric Unix Pipelines

# Extract key insights, quotes, and habits from a YouTube video
fabric --youtube "https://www.youtube.com/watch?v=..." --pattern extract_wisdom

# Explain a complex git diff before committing
git diff | fabric --pattern explain_code

# Summarize a web article from the clipboard
pbpaste | fabric --pattern summarize

Fabric Unix Pipe Model

Fabric Unix Pipe Composition Shows raw input piped through Fabric CLI pattern and streaming structured markdown insights into terminal. stdin stream cat meeting.txt Fabric Engine (Go) Applies system.md Pattern Routes to Claude / OpenAI Structured Markdown Actionable synthesis

Top Curated Fabric Patterns

Pattern Function
extract_wisdom Extracts core ideas, surprising facts, quotes, and habits from content
create_micro_summary Condenses long documents into a single actionable paragraph
write_essay Transforms raw bullet point notes into a cohesive, structured article
⚠ Setup Gotcha: `fabric --setup`

After installing the binary, you must run fabric --setup once to configure your API keys (stored securely in ~/.config/fabric/.env) and download the latest pattern library. If this step is skipped, running patterns will fail with missing directory errors.

Explore the pattern library at the official Fabric GitHub repository.