Fabric

From akillness/jeo-skills · View interactive version

Fabric is an AI agent skill from the GitHub repository akillness/jeo-skills. Routing-first Fabric operator skill for reusable named AI transforms over stdin, files, transcripts, notes, logs, and cleaned web text. Use when the user wants Fabric patterns, custom pattern packs, shell-pipe composition, or `fabric --serve` workflows — not generic one-off chat prompting, repo-awar

How to use this skill

Skill file

Fabric

Use this skill when the real job is running a reusable named AI transform over existing text/content with Fabric.

Fabric is strongest when three things are true:

  1. the input already exists or can be cleaned first,
  2. the transform is repeatable enough to deserve a named pattern,
  3. the output should be delivered through a CLI, shell pipeline, or lightweight HTTP surface.

Read these support docs before going deeper:

When to use this skill

When not to use this skill

Core boundary

Offline readiness

Before recommending an install, a --setup run, or fabric --serve, check the host with the offline helper. It reads host facts and, with --repo, a checkout; it never runs Fabric, a model, yt-dlp, ffmpeg, or the network, reads no credential value, and writes nothing:

python3 .agent-skills/fabric/scripts/preflight.py --json
python3 .agent-skills/fabric/scripts/preflight.py --repo /path/to/fabric --expect-commit 8e8511c770b2589a6066398a86343fbf8c2a56a3 --json

An installed skill uses python3 "$SKILLS_ROOT/fabric/scripts/preflight.py". It accepts the binary as fabric or fabric-ai (Homebrew, Arch and Scoop name it fabric-ai), reports whether ~/.config/fabric/.env exists and whether others can read it, and lists audited behaviors from references/upstream.md: the server binds loopback by default and refuses a non-loopback address without an API key, patterns are downloaded from GitHub at setup time, and --scrape_url uses Jina AI. A blocked check means a prerequisite is missing, not that Fabric is broken; installing, fabric --setup, and serving remain separate approvals.

Instructions

Step 1: Classify the request into one primary lane

Choose exactly one lane:

fabric_intake:
  primary_lane: quick-transform | pattern-selection | custom-pattern | shell-pipeline | serve-api | boundary-review
  input_shape: stdin-text | file | clipboard | transcript | url-derived-text | logs | code-snippet | mixed | unknown
  output_shape: summary | extraction | rewrite | explanation | classification | structured-markdown | custom
  repetition_level: one-off | recurring | team-shared | embedded-in-script
  provider_need: default | specific-provider | local-model | server-mode | unknown
  input_ready: yes | no | unclear

Lane chooser:

Step 2: Verify the input layer before talking about patterns

Answer these first:

  1. Where does the text come from?
  2. Is the text already clean enough for Fabric?
  3. Is this a one-shot transform or a reusable workflow?
  4. Is provider/model setup already available?

If the text is still messy HTML, OCR noise, bad transcripts, or missing entirely, say so explicitly. Do not pretend Fabric owns the upstream cleanup problem.

Step 3: Run the correct lane

A. Quick-transform

Return:

Examples:

cat transcript.txt | fabric -p summarize
pbpaste | fabric -p extract_wisdom
git diff HEAD~1 | fabric -p explain_code
B. Pattern-selection

Return the top 1-3 plausible patterns and why.

Use job shape, not novelty:

Do not dump the whole catalog.

C. Custom-pattern

Use when the workflow will recur.

Minimum scaffold:

IDENTITY AND PURPOSE
STEPS
RESPONSE FORMAT
INPUT

Good custom-pattern output includes:

D. Shell-pipeline

Treat Fabric as one stage in a pipeline:

fetch or prepare input → optional cleanup → fabric pattern → save / chain / post-edit

Return:

E. Serve-api

Use when another app/script needs HTTP access.

Baseline commands:

fabric --serve
curl http://localhost:8080/patterns/names

Also call out:

F. Boundary-review

Compare by workflow shape:

If the user is mixing use cases, keep Fabric only for the transform layer.

Step 4: Return a short operator packet

Default output should contain:

Use this structure:

# Fabric Workflow Packet

## Lane
- quick-transform | pattern-selection | custom-pattern | shell-pipeline | serve-api | boundary-review

## Input
- source: ...
- cleanup needed: ...
- assumptions: ...

## Recommended Fabric move
- pattern / custom pattern / server mode: ...
- why this fits: ...

## Command or artifact
- exact command(s) or `system.md` scaffold

## Output shape
- summary / extraction / rewrite / explanation / structured markdown / custom

## Friction
- provider setup / token limits / noisy input / post-editing / custom-pattern drift

## Route-outs
- next tool or workflow layer if Fabric is not the whole answer

Step 5: Keep the advice reusable

Prefer:

Examples

Example 1: Transcript summary

Input

I already have transcript.txt. Show me how to use Fabric to summarize it and keep the workflow reusable.

Output sketch

Example 2: Weekly custom pattern

Input

We summarize competitor articles every week. Help me make a reusable Fabric pattern pack.

Output sketch

Example 3: Fabric or something else?

Input

Should I use Fabric, a general LLM CLI, or a coding assistant for this workflow?

Output sketch

Best practices

  1. Treat Fabric as a pattern-first transform layer, not a generic terminal chatbot.
  2. Solve messy input acquisition before blaming the pattern.
  3. Return the top 1-3 pattern choices instead of the full catalog.
  4. Fork a custom pattern when the workflow repeats or the output shape must stay stable.
  5. Only recommend fabric --serve when another tool genuinely needs HTTP access.
  6. Keep provider/setup friction explicit instead of hiding it behind pattern talk.
  7. If the task is really coding-assistant work or deterministic automation, route out early.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.