Prompts2026年4月1日·1 分钟阅读

Fabric — 100+ AI Prompt Patterns for Everything

Fabric organizes 100+ AI prompt patterns for real-world tasks. 40.3K+ GitHub stars. 20+ providers, CLI + REST API, custom patterns. MIT.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

# Install
brew install fabric-ai
# Or: curl -fsSL .../install.sh | bash

# Setup (choose your AI provider)
fabric --setup

# Use a pattern
echo "Long article text..." | fabric --pattern summarize
cat code.py | fabric --pattern explain_code
fabric --pattern write_essay "AI in 2026"

介绍

Fabric is an open-source framework that organizes AI prompts (called Patterns) for solving specific real-world tasks. With 40,300+ GitHub stars and MIT license, it provides 100+ pre-built patterns for summarization, code explanation, content creation, security analysis, and more. Supports 20+ AI providers (OpenAI, Claude, Gemini, Ollama, Azure, Bedrock), includes a REST API server, custom pattern creation, shell aliases, and Docker support.

Best for: Anyone who wants curated, reusable AI prompts for common tasks Works with: Claude Code, OpenAI Codex, Cursor, Gemini CLI, Windsurf


Key Features

  • 100+ pre-built patterns for real tasks
  • 20+ AI providers supported
  • CLI with piping support
  • REST API server with Swagger docs
  • Custom pattern creation
  • Per-pattern model mapping
  • Shell aliases for quick access

FAQ

Q: What is Fabric? A: AI prompt pattern framework with 40.3K+ stars. 100+ patterns, 20+ providers, CLI + API. MIT.

Q: How do I install Fabric? A: brew install fabric-ai. Then fabric --setup to configure your provider.


🙏

来源与感谢

danielmiessler/fabric — 40,300+ GitHub stars

相关资产