///
Fabric's core innovation lies in its concept of **Patterns**, which are fundamentally well-structured AI prompts designed to augment human capabilities by solving specific real-world tasks. Instead of
1461 views
~1461 views from guests
Guest views are estimated from total page views. These include anonymous visitors and users who weren't logged in when they viewed the page.
Fabric's core innovation lies in its concept of Patterns, which are fundamentally well-structured AI prompts designed to augment human capabilities by solving specific real-world tasks. Instead of focusing on AI as a standalone entity, Fabric prioritizes the "human problem" it aims to solve, breaking down complex challenges into manageable components that AI can assist with. This approach addresses what Fabric identifies as AI's primary challenge: not a capabilities problem, but an integration problem. Patterns serve as organized, reusable units of AI intelligence, allowing users to collect, create, and deploy their most effective AI solutions across various tools and interfaces.
Fabric's prompting methodology is distinct and emphasizes clarity, readability, and modularity. Unlike many traditional prompts, Fabric Patterns are designed with several key principles:
A typical Fabric Pattern follows a consistent Markdown-based structure, designed for clarity and comprehensive instruction. While the exact content varies by task, the foundational sections are usually:
Let's break down these sections:
# IDENTITY and PURPOSE: This section defines the AI's persona and its overarching goal. It establishes the context and role the AI should adopt (e.g., "You are an expert summarizer," or "You are a creative writer assisting with story ideas.").# STEPS: This section outlines the sequence of actions or thought processes the AI should follow to achieve the stated purpose. These are usually presented as numbered or bulleted lists, guiding the AI through the task step-by-step.# OUTPUT INSTRUCTIONS: This section specifies the desired format, length, tone, and any other constraints for the AI's final output. It ensures the response is delivered in a usable and consistent manner, often including examples or specific formatting requirements.You can explore a wide variety of pre-built patterns in the data/patterns directory of the Fabric repository, or create your own as detailed in the Custom Patterns page.
Beyond individual Patterns, Fabric introduces Prompt Strategies to further refine and enhance AI interactions. These strategies are meta-prompts that modify the behavior of a basic pattern, enabling more advanced reasoning techniques. Examples include "Chain of Thought" or "Chain of Draft," which guide the AI through a series of internal steps before producing a final output.
Each strategy is defined in a small JSON file. These files are located in the data/strategies directory within the Fabric repository, and once installed, they reside in your ~/.config/fabric/strategies directory.
To install these strategies, you can use the Fabric setup command:
During the setup process, you'll be prompted to select the "Strategies" option from the "Tools" menu, which will download and install the available strategies into your configuration directory. Once installed, you can leverage these strategies to modify the behavior of your chosen patterns, unlocking more sophisticated AI capabilities. For more information on how to utilize these strategies in your commands, refer to the CLI Usage Guide and Advanced Features pages.