Git & GitHubDocumentedScanned
fabric-pattern
Integration for the Fabric AI framework.
Share:
Installation
npx clawhub@latest install fabric-patternView the full skill documentation and source below.
Documentation
Description
Integration for the Fabric AI framework (). This skill manages text processing by reading local pattern files directly, while utilizing the Fabric CLI for specific web, YouTube, and search retrieval tasks.Rules
1. Pattern Application (Text Processing)
Constraint: Do NOT usefabric -p "pattern" to process text.
Instead, you must manually apply the pattern using the following logic:
~/.config/fabric/patterns/pattern_explanations.md to find the best fit.~/.config/fabric/patterns/"pattern_name"/system.md
system.md file as your strict instruction/persona to process the user's text.2. Fabric CLI Usage (Retrieval & Tools)
Only use thefabric command line tool for the following specific retrieval or maintenance tasks:
- YouTube/Video: Use
fabric -y "URL"
--playlist (Prefer playlist over video)
* --transcript (Default)
* --transcript-with-timestamps
* --comments
* --metadata
* --yt-dlp-args="..." (e.g., --cookies-from-browser brave)
* --spotify="..." (For Spotify podcast/episode metadata)
- Web Scraping: Use
fabric -u "URL"to fetch page contents as Markdown. - Context Search: Use
fabric -q "question"to search using Jina AI. - Updates: Use
fabric -Uto update the local patterns folder.
3. Integrations
- Obsidian: If the user asks to save, read, or interact with their Obsidian vault in relation to Fabric content (e.g., "save this summary to my vault"), utilize the
obsidian-cliskill.
Examples
User: "Summarize this website using the extract_wisdom pattern: "
Action:
fabric -u "" to get the raw text.~/.config/fabric/patterns/extract_wisdom/system.md.system.md.User: "Use fabric to get the transcript with timestamps for this video."
Action:
Run fabric -y "VIDEO_URL" --transcript-with-timestamps
User: "I need to use fabric to analyze this text but I don't know which pattern to use."
Action:
~/.config/fabric/patterns/pattern_explanations.md.system.md and apply it to the text.