Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Bstack

ASecurity

bstack primer — the Broomva Stack: twenty irreducible automation primitives (P1–P20) that turn an agent-driven workspace into a self-operating system. This is the AGENT-READABLE PRIMER (primitive contract + short-name index + when each fires), NOT the CLI. The bstack CLI + governance substrate (bin/, doctor, templates, hooks) is a separate product installed by clone + bootstrap (git clone https://github.com/broomva/bstack && ./bin/bstack bootstrap) — do NOT `npx skills add broomva/bstack` (it...

4 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsgobashgit

Works with

cli

Security Analysis

A100/100

Scanned 9/28/2026

$npx -y skills add broomva/skills --skill bstack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bstack?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Bstack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/broomva-bstack/badge)](https://www.skillsdirectory.com/skills/broomva-bstack)

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

Download with Pro
Files
SKILL.md
---
name: bstack
category: governance
latent_only: true
description: "bstack primer — the Broomva Stack: twenty irreducible automation primitives (P1–P20) that turn an agent-driven workspace into a self-operating system. This is the AGENT-READABLE PRIMER (primitive contract + short-name index + when each fires), NOT the CLI. The bstack CLI + governance substrate (bin/, doctor, templates, hooks) is a separate product installed by clone + bootstrap (git clone https://github.com/broomva/bstack && ./bin/bstack bootstrap) — do NOT `npx skills add broomva/bstack` (it drops bin/scripts, the repo-root SKILL.md case of vercel-labs/skills#1523). Use this primer to reason with the primitives: Bridge (P1), Gate (P2), Tickets (P3), Pipeline (P4), Fanout (P5), Bookkeeping (P6), Freshness (P7), Janitor (P8), Wait (P9), Hygiene (P10), Empirical (P11), Persist (P12), Dream (P13), Dep-Chain (P14), Snapshot (P15), Crystallize (P16), Lens (P17), Audience (P18), Orchestrate (P19), Cross-Review (P20). Triggers on 'bstack', 'Broomva Stack', 'the primitives', 'P1'..'P20', 'primitive contract', 'bstack bootstrap', 'governance metalayer', 'self-operating workspace', 'how do I install bstack', 'what does Pn mean'."
---

# bstack — the Broomva Stack (primitives primer)

**A portable harness metalayer for AI-native development.** Twenty irreducible
primitives that turn any agent-driven workspace into a self-operating system. Each
primitive closes one failure mode that otherwise drifts into entropy in unsupervised
agent sessions.

> **This file is the agent-readable *primer*, not the CLI.** It teaches you the
> primitive contract so you can reason with it. The bstack CLI + governance substrate
> (the `bstack` binary, `doctor`, templates, hooks, schemas) is a **separate product**:
>
> ```bash
> git clone https://github.com/broomva/bstack.git
> cd bstack && ./bin/bstack bootstrap
> ```
>
> Do **not** `npx skills add broomva/bstack` — bstack has a repo-root `SKILL.md`
> beside `bin/`, so skills.sh copies only that file and drops the CLI
> ([vercel-labs/skills#1523](https://github.com/vercel-labs/skills/issues/1523)).
> `bstack bootstrap` installs the companion-skill roster from **this monorepo**:
> `npx skills add broomva/skills --skill <name>` per entry.

## Referencing primitives

Use the `Name (Pn)` form in prose — *"applying Snapshot (P15)"*, *"via Dep-Chain
(P14)"*, *"running Bookkeeping (P6)"*. The number is the canonical id; the name is
the human handle.

**Short-name index:** Bridge (P1) · Gate (P2) · Tickets (P3) · Pipeline (P4) ·
Fanout (P5) · Bookkeeping (P6) · Freshness (P7) · Janitor (P8) · Wait (P9) ·
Hygiene (P10) · Empirical (P11) · Persist (P12) · Dream (P13) · Dep-Chain (P14) ·
Snapshot (P15) · Crystallize (P16) · Lens (P17) · Audience (P18) · Orchestrate (P19) ·
Cross-Review (P20).

## The twenty primitives

| # | Primitive | Closes / does |
|---|-----------|---------------|
| **P1** | **Bridge** — Conversation Bridge | Session amnesia. Stop hook → JSONL → docs → vault; capture is automatic. |
| **P2** | **Gate** — Control Gate | Destructive ops the model didn't authorize. PreToolUse hook → `.control/policy.yaml`; G1–G4 never bypassed. |
| **P3** | **Tickets** — Linear Tickets | Invisible work. Every unit tracked Backlog → Done; no significant work without a ticket. |
| **P4** | **Pipeline** — PR Pipeline | Merging unreviewed code. Branch → PR → CI → merge → deploy; never merge on red. |
| **P5** | **Fanout** — Parallel Agents | Serial bottlenecks. Concurrent isolated agents via worktrees; no shared mutable file writes. |
| **P6** | **Bookkeeping** — Knowledge Bookkeeping | Lost knowledge. Score → promote → entity pages → synthesize. Capture is a reflex, **never a question** — file it, report after. |
| **P7** | **Freshness** — Skill Freshness Check | Silent skill rot. SessionStart nudge when installed skills are ≥7d stale. Never blocks. |
| **P8** | **Janitor** — Branch + Worktree Janitor | Dead branches/worktrees. `make janitor` removes squash-merged + orphaned safely; default dry-run. |
| **P9** | **Wait** — Productive Wait | Sleeping on CI. `gh pr checks --watch` via background; drain a work-queue while blocked. Never `sleep`. |
| **P10** | **Hygiene** — Worktree Hygiene | Dirty trees. Decide worktree-or-not before the first file; a clean `git status` is the only reliable reset point. |
| **P11** | **Empirical** — Empirical Feedback | Reasoning mistaken for validation. Validate by *interacting* — log-tails, E2E, screenshots, deploy verification. |
| **P12** | **Persist** — Persistent Loop | Work that must outlive one session losing its state. State lives in the filesystem; each iteration spawns a fresh context. |
| **P13** | **Dream** — Dream Cycle | Dense low-tier signal corrupting sparse high-tier rules. Cross-tier consolidation replays against a frozen substrate (stop-gradient). |
| **P14** | **Dep-Chain** — Dependency-Chain Reasoning | "Think deeply" as ritual. Enumerate upstream + downstream (concrete file paths, function names) in the response — not in your head. |
| **P15** | **Snapshot** — State-Snapshot Before Action | Plans built on stale state. Surface `git status` + branch + ahead/behind + open PRs + CI/deploy state *before* planning. |
| **P16** | **Crystallize** — Crystallization (the engine) | Patterns staying in the operator's head. Recurs ≥3× → promote to skill / rule / gate. The meta-primitive that produces the others. |
| **P17** | **Lens** — Lens-Routed Articulation | `act as X` persona theater. Route input through a lens registry that loads *substantive* context, not a persona rewrite. |
| **P18** | **Audience** — Format-Follows-Audience | Wrong format by habit. Agent-read → markdown; human-read (specs, reports) → rich HTML. Format follows audience. |
| **P19** | **Orchestrate** — Mechanism Selection | "Continue please" handoffs. Pick the autonomous-continuation mechanism by the 2×2×2 cube before substantive work. |
| **P20** | **Cross-Review** — Cross-Model Adversarial Gate | Single-model echo chambers. The writer cannot be the final judge; fire a cross-model gate (≥7/10) before merging substantive PRs. |

## When to use this primer

- You're operating in a bstack-governed workspace and need the primitive contract to reason with.
- Someone references `Pn` / a primitive short-name and you need its meaning + invariant.
- You're deciding **how** to install bstack (answer: clone + `bstack bootstrap`, not skills.sh).
- You want the discipline without the CLI (this primer is enough to *apply* the primitives by hand).

The full mechanism specs, the `bstack doctor` primitive-contract linter, the RCS
control-loop math, and the governance templates all live in the CLI repo
(`github.com/broomva/bstack`). This primer is the entry point; the substrate is the product.

Attribution

broomvabroomva
View sourceSee grades on GitHubMore from broomva →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698431 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →