# Fabric

> Open-source framework to apply modular AI prompt patterns via the CLI.

Fabric is an open-source framework written in Go that organizes AI prompts into modular, task-focused "Patterns". It connects directly to your terminal pipeline, letting you pipe text, code, or video transcripts through AI models using community or custom prompt templates.

Website: https://github.com/danielmiessler/fabric

## What it is for

- Extract key insights, wisdom, and takeaways from YouTube videos or podcast transcripts
- Summarize long academic papers, essays, or articles from the command line
- Pipe code snippets directly into patterns to generate explanations or documentation
- Automate markdown note generation straight into personal vaults like Obsidian

## Features

- Extensive library of curated prompt 'Patterns' for work, coding, and analysis
- Direct terminal piping support (e.g. \`cat file.txt \| fabric -p summarize\`)
- Built-in YouTube transcript extraction and speech-to-text processing
- Support for dozens of AI providers including Anthropic, OpenAI, Ollama, and Bedrock
- Built-in REST API server with Ollama compatibility mode
- Custom pattern creation and per-pattern model configuration

## Pricing

Open source. Free and open source; requires your own API keys or local LLM instances.

## Details

- Type: GitHub repo
- Category: [AI](https://xiry.app/topics/ai.md)
- Open source: yes
- Platforms: Command line, macOS, Linux, Windows, API
- For: Developers, technical writers, and terminal power users looking to integrate LLMs into CLI workflows.
- Alternative to: Aider, llm (Simon Willison)
- Tags: cli, prompts, prompt engineering, llm, automation, go

## Why it was saved

- [@tom_doerr, 28 January 2025](https://x.com/tom_doerr/status/1884197839560982737): Well-known project by Daniel Miessler providing structured AI prompt patterns for tasks like summarizing and problem-solving; CLI usage with pip install.

## Related

- [Prompt Engineering (Google Whitepaper)](https://xiry.app/resources/prompt-engineering-google-whitepaper-2086): A comprehensive guide to prompt engineering techniques and LLM parameters by Google. (Article or course, Free)
- [Hermes Agent](https://xiry.app/resources/hermes-agent): Open-source, self-hosted AI agent with persistent memory and messaging integrations. (Open source)
- [ACU - Awesome Agents for Computer Use](https://xiry.app/resources/acu-awesome-agents-for-computer-use): Curated collection of papers, tools, and frameworks for computer-controlling AI agents (Website, Free)
- [AutoGPT](https://xiry.app/resources/autogpt): Open-source platform and framework for building autonomous AI agents (GitHub repo, Freemium)
- [awesome-nanobanana-pro](https://xiry.app/resources/awesome-nanobanana-pro): Curated repository of prompts and styles for the Gemini Nano Banana model (GitHub repo, Open source)
- [DeepSeek Chat](https://xiry.app/resources/deepseek-chat): Conversational AI assistant with open-weights reasoning and general language models (Web app, Freemium)

Updated 10 October 2026. Page: https://xiry.app/resources/fabric

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
