Skip to content
Back to skills

Site

ASecurity

Usage briefing for an agent operating an installed `fab` from any repo. `fab` drives a six-stage, spec-first change pipeline (intake → apply → review → hydrate → ship, then review-pr only as a manual `/git-pr-review` triage step) plus workspace, batch, and multi-agent coordination tooling. Plain-markdown prompts, no SDK. This is the offline, version-locked companion to `fab -h` (flag reference) and the [shll.ai command tree](https://shll.ai/tools/fab-kit/commands/): `-h` tells you a command's...

  • 35 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoshellgitdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add sahil87/fab-kit --skill fab --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Site?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Site
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sahil87-site-fab-kit/badge)](https://www.skillsdirectory.com/skills/sahil87-site-fab-kit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# fab skill bundle

Usage briefing for an agent operating an installed `fab` from any repo. `fab` drives a
six-stage, spec-first change pipeline (intake → apply → review → hydrate → ship, then
review-pr only as a manual `/git-pr-review` triage step)
plus workspace, batch, and multi-agent coordination tooling. Plain-markdown prompts, no SDK.

This is the offline, version-locked companion to `fab -h` (flag reference) and the
[shll.ai command tree](https://shll.ai/tools/fab-kit/commands/): `-h` tells you a command's
shape; this tells you *which* command to reach for and how the pieces compose.

## When to use fab

- Reach for fab when a repo has a `fab/` directory (a fab-managed project) and you are
  moving a change through the pipeline, querying its state, or coordinating agents.
- Reach for it for the query commands (`resolve`, `preflight`, the `status` read-only
  queries, `impact`, `pane map --json`) whenever you need machine-readable state.
- Do **not** use fab to author code directly — it orchestrates *you* (the agent) through a
  workflow; the actual editing is still your job, driven by the skills fab deploys.
- Do **not** invoke fab in a repo with no `fab/` directory for project-state commands: they
  fail closed with `ERROR: fab/ directory not found`. Config-free commands still work —
  `fab dispatch resolve`, `fab config show` and `fab config explain`
  resolve the **project-free cascade** there (`env > system > built-in defaults`, project tier dropped),
  so a machine-wide `~/.config/fab-kit/config.yaml` still applies; agent choice itself comes from `gig`
  (`gig who`, `gig start`, `gig preset`, `gig models`). Bare `config` writes stay
  project-gated, while the `--system` forms of `set`, `unset`, `init`, and `upgrade`
  target `~/.config/fab-kit/config.yaml` without requiring a fab repo. `upgrade --all` still
  requires a project because it reconciles both tiers.

## Capabilities map

One line per capability, keyed to its command:

- **Change lifecycle** — `fab change {new,switch,rename,list,archive,restore,…}` creates and
  moves changes; `fab preflight [<change>]` validates init and resolves the active change to
  a YAML state block (id, stage, progress, plan, confidence).
- **State machine** — `fab status {finish,advance,start,reset,skip,fail,refresh,set-*,…}`
  drives `.status.yaml`; its read-only queries (`progress-map`, `confidence`, `plan`, …)
  take `--json`. `refresh` recomputes artifact-derived fields (pull-based, no hooks).
- **Confidence** — `fab score [--check-gate] [--stage intake] <change>` computes the SRAD
  gate score from `intake.md`.
- **Resolution** — `fab resolve [--id|--folder|--dir|--status|--pane|--base-branch] [--or-none] [<change>]`
  converts a change reference to canonical output. With `--or-none`, a missing change or ambiguous
  bare lookup yields `(none)` and exit 0. Other errors stay non-zero. Use `fab resolve --default-branch`
  for the current Git worktree's default branch. Before dispatch, use
  `fab dispatch resolve <stage> -o yaml` for gig's agent selection and fab's dispatch rung.
- **Dispatch** — `fab dispatch {resolve,start,open,ready,deliver,restart,status,wait,logs,kill,reap,clean}`
  runs a stage as a worker (the cross-harness CLI adapter), in two modes with two entries:
  `start` launches a detached, tmux-independent one, while a watchable tmux-pane worker is
  `open`ed, gated with `ready` (can it accept typed input?), then handed its prompt by
  `deliver`. `restart` relaunches a non-running stage from its persisted prompt, `wait`
  blocks until the stage's state leaves `running` so the caller is woken by a change
  instead of polling for one, and `reap` reclaims a done pane worker's pane (a reported
  no-op for every other dispatch).
- **Panes / operator** — `fab pane {map,capture,process,open,ready,deliver,kill}` inspects and
  drives tmux panes; `rk operator` launches the coordination tab.
- **Config** — `fab config {show,explain,set,unset,init,upgrade}` inspects and
  surgically updates `config.yaml`; `show <key> --origin` gives provenance (add
  `--json` for typed machine-readable rows), `set` refuses out-of-range values, and
  `reference` remains a compatibility alias for `explain`.
- **Documentation** — `fab docs-index [root-path] [--check [--json]]` regenerates configured
  roots (default `docs/memory`); FKF logs are opt-in. Accepted README landings preserve prose
  outside generated blocks. Advisories: 5/kind; JSON `warnings_total` counts before sampling.
  `memory-index` is a deprecated memory-only alias (stderr notice).
- **Batch** — `fab batch {new,switch,archive}` fans changes out across worktree tmux tabs.
- **Workspace lifecycle** — `fab {init,sync,upgrade-repo,update,doctor,migrations-status}`
  (these route to the `fab-kit` binary — see Gotchas).
- **Introspection** — `fab kit-path`, `fab impact <base> <head>`, `fab fab-help`,
  `fab shell-init <shell>`, the read-only setup-state doctor `fab setup check`
  (exit 1 only on real problems — CI-able), and this bundle via `fab skill`.

## Composition patterns

fab is one member of the [shll toolkit](https://shll.ai) and composes with its siblings
(toolkit principle: tools shell out to tools):

- **`wt`** (worktrees) — `fab batch new`/`switch` shell out to `wt create` to spin up a
  worktree per change before opening its tmux tab. Add `eval "$(wt shell-init)"` to your shell
  profile once so `cd`-on-open works.
- **`idea`** (backlog) — `fab batch new` reads backlog items; `fab batch archive` (and the
  `/fab-archive` skill) mark the matching backlog entry done.
- **`gh`** (GitHub CLI) — the ship/review-pr stages use `gh` for PR creation and comment
  triage. Authenticate with `gh auth login` first.
- **`rk` (HexoKit)** — fab is a pure *consumer* of HexoKit's `@rk_pane_agent_state` tmux
  pane-option convention (written by `rk agent setup`); `fab pane` reads it to gate `send`.
- **The `/fab-*` skills** — `fab sync` deploys markdown skills (`/fab-new`, `/fab-continue`,
  `/fab-ff`, `/fab-fff`, `/git-pr`, …) into the repo's agent directories. Those skills are
  how a harness actually drives the pipeline; the `fab` binary is their engine.

Typical flow: `/fab-new <desc>` → `/fab-continue` (repeat per stage) or `/fab-fff` (run
unattended through `ship`, gated on the single intake confidence gate; `review-pr` is then
entered manually via `/git-pr-review`).

## Output & exit-code contracts

- **stdout is data.** Command output on stdout is meant to be consumed (parsed, piped);
  diagnostics and progress go to stderr. A command that succeeds writes only its data.
- **`--json`** is available on the machine-readable query surfaces — the `fab status`
  read-only queries (all but `progress-line`), `fab pane map`, `fab config explain`,
  `fab dispatch status`, and `fab docs-index --check` — with additive, stable keys.
  `fab preflight` and `fab resolve` emit YAML/plain text and take no JSON flag.
- **Exit codes** follow the toolkit convention for `fab-go` commands: **`0`** success,
  **`1`** operational failure (missing change, failed preflight, below-gate, tmux/gh/fs
  error), **`2`** usage error (unknown/malformed flag, arg-count violation, unknown
  subcommand, mutually-exclusive flags). Classification is by execution phase, not message
  text — a malformed invocation never reaches its handler.
- **Special in-handler codes coexist** (not renumbered): `fab pane` verbs use `2` = pane
  missing, `3` = other tmux failure; `fab docs-index --check` uses `0`/`1`/`2` with
  `2` = destructive loss; `fab sync` and `fab migrations-status` use `3` = "not a
  fab-managed repo" (a branchable "not applicable here", distinct from the generic `1`).

## Gotchas

- **`fab` is two binaries.** The router forwards `init`, `upgrade-repo`, `sync`, `update`,
  `doctor`, and `migrations-status` to the `fab-kit` workspace binary; everything else goes
  to the version-pinned `fab-go` engine. You never call `fab-kit`/`fab-go` directly.
- **Agent directories hold deployed copies.** `fab sync` always writes `.agents/skills/`;
  `.claude/skills/` requires `claude`, and `.opencode/commands/` requires `opencode`. It never writes user-level skills; stale fab-generated `fab-operator` pointers are removed instead. Never hand-edit a deployed skill — your edit is lost on the next sync. In the fab-kit repo itself, the canonical source is `src/kit/skills/`.
- **`fab skill` ≠ fab's kit-skills.** *This* command (the toolkit-standard bundle you are
  reading) is unrelated to fab's own "skills" — the `/fab-*` markdown prompts `fab sync`
  deploys. Same word, two concepts: `fab skill` prints this one static page; the kit-skills
  are the many pipeline prompts.
- **`<change>` is flexible everywhere.** Any command taking a change accepts a 4-char ID
  (`yobi`), a folder substring (`fix-kit`), or the full folder name — not a bare path.
- **Skills go stale after an upgrade.** After `brew upgrade fab-kit`, run `fab sync` (or
  `fab upgrade-repo`) so deployed copies match the new engine; preflight warns on skew.
- **This bundle is static.** `fab skill` prints byte-identical bytes on every machine for a
  release — no environment or session state. For live, environment-derived context use the
  dedicated query commands above (`fab preflight`, `fab pane map`), not this page.

Files in this skill

  • fkf.md23.9 KB
  • install.md5.6 KB
  • merge-topologies.md4 KB
  • skill.md9.1 KB
  • workflows.md6.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.