fabric
БесплатноБез исполняемых скриптовНе проверенFabric is a command-line tool that runs a library of reusable AI prompts, called patterns, over any text you pipe in, such as summarize, extract_wisdom or…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Fabric — Reusable AI Prompt Patterns in the Terminal
Overview
Fabric turns prompts into named, versioned files called patterns and runs them from the shell. Text arrives on stdin (or from a URL or a YouTube video), Fabric wraps it with the chosen pattern's system prompt, sends it to the configured model and prints Markdown to stdout, so it composes with pipes, redirects and other CLI tools. The project ships about 260 patterns (summarize, extract_wisdom, analyze_claims, summarize_paper, create_flash_cards, summarize_git_diff, write_pull-request, ...), and users add private ones in a custom directory.
Fabric was rewritten from Python to Go in 2024. Old tutorials that use pipx install, fabric --setup screens from the Python era or the yt helper as a separate binary are out of date; the current CLI is a single fabric binary.
Instructions
Install
Use a package manager or the Go toolchain. Homebrew and the AUR install the binary as fabric-ai, so add an alias for interactive use (Scoop's fabric-ai package installs it as fabric).
# macOS / Linux with Homebrew
brew install fabric-ai
alias fabric='fabric-ai'
# Any OS with Go 1.26+ (binary lands in $(go env GOPATH)/bin)
go install github.com/danielmiessler/fabric/cmd/fabric@latest
# Windows
winget install danielmiessler.Fabric
Release archives with a checksum file are on GitHub if no package manager is available:
VER=1.4.505 # the release to install; each one publishes a checksum file
curl -LO https://github.com/danielmiessler/Fabric/releases/download/v$VER/fabric_Linux_x86_64.tar.gz
curl -LO https://github.com/danielmiessler/Fabric/releases/download/v$VER/fabric_${VER}_checksums.txt
sha256sum --ignore-missing -c fabric_${VER}_checksums.txt # must print "fabric_Linux_x86_64.tar.gz: OK"
tar -xzf fabric_Linux_x86_64.tar.gz fabric && ./fabric --version
YouTube input needs yt-dlp on PATH (brew install yt-dlp or pipx install yt-dlp).
Configure a model
fabric --setup (-S) is an interactive menu: pick providers, paste keys, choose the default vendor and model, download patterns and strategies. It writes everything to ~/.config/fabric/.env. An agent that cannot drive the menu can write the same keys directly:
mkdir -p ~/.config/fabric
cat >> ~/.config/fabric/.env <<'EOF'
DEFAULT_VENDOR=Anthropic
DEFAULT_MODEL=claude-sonnet-4-5
EOF
# The provider key itself: export ANTHROPIC_API_KEY in your shell profile
# (create it at console.anthropic.com), or let `fabric --setup` store it.
fabric -U # download or refresh the built-in patterns
fabric -l | head # confirm patterns are installed
Other key names follow the vendor: OPENAI_API_KEY, GEMINI_API_KEY, GROQ_API_KEY, OPENROUTER_API_KEY. For a local model, set DEFAULT_VENDOR=Ollama, DEFAULT_MODEL=llama3.1:8b and OLLAMA_API_URL=http://localhost:11434. List every provider with fabric --listvendors and the models your keys can reach with fabric -L.
Override per call with -V (vendor) and -m (model), or per pattern with an environment variable named FABRIC_MODEL_<PATTERN>:
export FABRIC_MODEL_SUMMARIZE='Ollama|llama3.1:8b' # cheap local model for summaries
export FABRIC_MODEL_ANALYZE_CLAIMS='Anthropic|claude-sonnet-4-5'
Run patterns
# stdin -> pattern -> stdout
cat meeting-2026-09-29.txt | fabric -p summarize_meeting
# Stream tokens as they arrive, save to a file, or copy to the clipboard
cat rfc-draft.md | fabric -sp analyze_claims
cat rfc-draft.md | fabric -p summarize -o rfc-summary.md
git diff --staged | fabric -p summarize_git_diff -c
# Preview the exact prompt without spending tokens
cat rfc-draft.md | fabric --dry-run -p summarize
# Read a pattern before trusting it
fabric --readpattern extract_wisdom
Useful chat flags: -t temperature, --thinking=low|medium|high for reasoning models, -g es answer language, --strategy cot to add a prompt strategy (install strategies through --setup, list with --liststrategies), --show-metadata to print token counts to stderr.
Pull input from the web and YouTube
# Web page -> Markdown via Jina AI Reader (works without a key; JINA_AI_API_KEY raises limits)
fabric -u https://go.dev/blog/go1.25 -p summarize
# YouTube transcript (uses yt-dlp), then a pattern
fabric -y "https://www.youtube.com/watch?v=uXs-zPc63kM" -p extract_wisdom
fabric -y "https://www.youtube.com/watch?v=uXs-zPc63kM" --transcript-with-timestamps -p summarize_lecture
# Transcript only, no model call, for saving or grepping
fabric -y "https://www.youtube.com/watch?v=uXs-zPc63kM" > talk-transcript.txt
--comments and --metadata need a YouTube Data API key (YOUTUBE_API_KEY, set through --setup). --yt-dlp-args="..." passes extra options to yt-dlp. Local audio or video goes through --transcribe-file meeting.m4a --transcribe-model whisper-1 (OpenAI speech-to-text; --split-media-file handles files over 25 MB
Установить fabric в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fabric?
Fabric is a command-line tool that runs a library of reusable AI prompts, called patterns, over any text you pipe in, such as summarize, extract_wisdom or analyze_claims. Use it to summarize articles, pull key ideas from YouTube talks and podcasts, fact-check claims, write custom prompt patterns, or chain patterns into a workflow, with OpenAI, Anthropic, Gemini or local Ollama models. Trigger phrases: "summarize this article with fabric", "extract wisdom from this YouTube video", "run a fabric pattern", "create a custom fabric pattern", "pipe this into an LLM from the terminal".
Как установить скилл fabric?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fabric запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic