Install
Install with PiG
pig install npm:bad-agent-kitInstall with Pi
pi install npm:bad-agent-kitPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"skills": [
"./skills/bak",
"./skills/go-plan",
"./skills/go-tdd",
"./skills/go-review",
"./skills/babysit"
],
"changelogPath": "CHANGELOG.md"
}README
Written by the package's publisher, shown as published in version 0.3.0 (README.md). PiG does not review it.
🦇 BAK — bad-agent-kit
The skill router that keeps your agent from shipping the bad one. A curated skills marketplace + workflow orchestrator. Compose, never own.
Never mutate on inspect. Never publish without authority.
What is it
- Marketplace — pins and composes battle-tested upstream skills (mattpocock, pstack). Never vendors them.
- Orchestrator — the
bakrouter drives plan → implement → review → mr through a self-contained builtin lane. Works with zero external suites.
Install
# pi — everything builtin
pi install npm:bad-agent-kit
# Cursor / Claude Code / Codex (skills.sh) — the 5 builtin skills
npx skills@latest add aniqaqill/bad-agent-kit -g --skill bak --agent cursor -y
npx skills@latest add aniqaqill/bad-agent-kit -g --skill go-plan --agent cursor -y
npx skills@latest add aniqaqill/bad-agent-kit -g --skill go-tdd --agent cursor -y
npx skills@latest add aniqaqill/bad-agent-kit -g --skill go-review --agent cursor -y
npx skills@latest add aniqaqill/bad-agent-kit -g --skill babysit --agent cursor -y
# optional providers (opt-in)
bash scripts/bootstrap.sh cursor --providers mattpocock
Pick ONE channel per agent per provider.
The workflow
Start every task the same way:
<agent>, repo is <path>. Goal: <one sentence>. Run bak and follow its route.
Grant authority only when it asks.
bak drives five phases. What each phase must produce never changes — only
who executes it changes (a present provider or the builtin lane).
- orient — read-only.
bakreads the repo, applies the go.mod fence, and detects providers. Nothing mutates. - plan — a design naming every seam and acceptance condition. You approve the spec before code starts.
- implement — test-first at the agreed seams. Local only; nothing is pushed.
- review — standards and spec reported separately. Report only; no push, no merge.
- mr —
babysitdrives the PR (conflicts → threads → CI). Push/merge/ close only on your explicit "go".
flowchart LR
bak --> F{go.mod?}
F -- yes --> G[go-plan → go-tdd → go-review]
F -- no --> P[plan] --> I[implement] --> R[review] --> M[mr / babysit]
G --> R
MP[mattpocock] -. optional .-> P
MP -. optional .-> I
MP -. optional .-> R
PS[pstack] -. optional .-> P
PS -. optional .-> R
M -- your authority --> D((push / merge))
Go fence: if the repo has a go.mod, Go work always uses the builtin
go-plan/go-tdd/go-review — never a provider.
Providers (optional)
A provider runs only when pinned AND detected; otherwise bak falls back to
the builtin lane with a skip note.
| Provider | What it adds | Install |
|---|---|---|
| mattpocock | plan / implement / review stack | catalog |
| pstack | plan / adversarial review + evidence discipline | catalog |
Full catalog: docs/catalog.md.
Plug in any suite
A provider is any suite that owns a workflow phase. To plug one in, add exactly three data-only artifacts — no router changes:
| Artifact | File |
|---|---|
| Pin | one line in manifest/providers.toml |
| Adapter | adapters/<id>.md — maps namespaced skills to phase contracts |
| Detection | detect_<id>() in scripts/detect-providers.sh |
bak routes only by namespaced id (mp:*, pstack:*, local:*), never by
bare name or discovery order. The contract a suite must satisfy:
skills/bak/references/contracts.md.
Connect pstack
Two ways to connect pstack:
- Plugin channel (canonical) —
/add-plugin pstack(Cursor) or/plugin install pstack@cursor-plugins. - Manual clone (fallback, never canonical) —
git clone cursor/pluginsto a pinned location and record the root. No npx.
Full spec: adapters/pstack.md.
License
MIT — skills listed here remain property of their authors.