agentleFS
IyedBecheikhIyedBecheikh/bstack/AGENTS.md

bstack

AGENTS.md1 starsChanged 4 months agoMITView on GitHub

bstack is an evidence-gated AI engineering workflow. It is a collection of SKILL.md files that give AI agents structured roles for software development. Each skill is a specialist: CEO reviewer, eng manager, designer, QA lead, release engineer, debugger, and more. There are currently no scoped AGENTS.md files. If one is added later, the closest AGENTS.md wins for files in its subtree; that precedence overrides this root file where the instructions conflict. - New commercial idea or roadmap-level paid feature: run…

  • Deletes or force-pushes

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only a COMPLETE BUILD_NOW artifact permits an executable /spec, /autoplan, product-code edits, worktree creation, or /ship.

    line 21
  2. Very specific:

    Run bun run gen:skill-docs --host codex to regenerate Codex-specific output.

    line 155

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- Managed by agent: Codex -->

bstack — AI Engineering Workflow

bstack is an evidence-gated AI engineering workflow. It is a collection of SKILL.md files that give AI agents structured roles for software development. Each skill is a specialist: CEO reviewer, eng manager, designer, QA lead, release engineer, debugger, and more.

Index of scoped AGENTS.md

There are currently no scoped AGENTS.md files. If one is added later, the closest AGENTS.md wins for files in its subtree; that precedence overrides this root file where the instructions conflict.

Pre-execution contract

  • New commercial idea or roadmap-level paid feature: run /preflight.
  • Fuzzy commercial idea: run /office-hours, then /preflight.
  • Paying-user request: run /preflight --fast.
  • Only a COMPLETE BUILD_NOW artifact permits an executable /spec, /autoplan, product-code edits, worktree creation, or /ship.
  • VALIDATE_FIRST permits only its one recorded experiment.
  • PARK and REJECT block implementation.
  • Obvious bugs, outages, compliance emergencies, broken production behavior, and explicitly non-commercial learning work may record an exemption.
  • Scope beyond approved budgets or non-goals requires reduction or a new preflight.

Available skills

Skills live in .agents/skills/ (or ~/.claude/skills/bstack/ on Claude Code). Invoke them by name (e.g., /office-hours).

Plan-mode reviews

SkillWhat it does
/office-hoursStart here. Reframes your product idea before you write code.
/preflightValidate evidence, kill risks, roadmap displacement, and one of four verdicts.
/plan-ceo-reviewCEO-level review: find the 10-star product in the request.
/plan-eng-reviewLock architecture, data flow, edge cases, and tests.
/plan-design-reviewRate each design dimension 0-10, explain what a 10 looks like.
/plan-devex-reviewDX-mode review: TTHW, magical moments, friction points, persona traces.
/plan-tuneSelf-tune AskUserQuestion sensitivity per question.
/autoplanConditional router that runs only risk-relevant reviews after BUILD NOW.
/design-consultationBuild a complete design system from scratch.
/specTurn vague intent into a precise, executable spec in five phases. Files a GitHub issue, optionally spawns a Claude Code agent in a fresh worktree, and lets /ship close the source issue on merge.

Implementation + review

SkillWhat it does
/reviewPre-landing PR review. Finds bugs that pass CI but break in prod.
/codexSecond opinion via OpenAI Codex. Review, challenge, or consult modes.
/investigateSystematic root-cause debugging. No fixes without investigation.
/design-reviewLive-site visual audit + fix loop with atomic commits.
/design-shotgunGenerate multiple AI design variants, comparison board, iterate.
/design-htmlGenerate production-quality Pretext-native HTML/CSS.
/devex-reviewLive developer experience audit (TTHW measured against the real flow).
/qaOpen a real browser, find bugs, fix them, re-verify.
/qa-onlySame methodology as /qa but report only — no code changes.
/scrapePull data from a web page. First call prototypes; codified call runs in ~200ms.
/skillifyCodify the most recent successful /scrape flow into a permanent browser-skill.

Release + deploy

SkillWhat it does
/shipRun tests, review, push, open PR. Workspace-aware version queue.
/land-and-deployMerge the PR, wait for CI and deploy, verify production health.
/canaryPost-deploy monitoring loop using the browse daemon.
/measure-outcomeCompare observed product results to the predeclared metric and decide next action.
/landing-reportRead-only dashboard for the workspace-aware ship queue.
/document-releaseUpdate all docs to match what you just shipped.
/document-generateGenerate Diataxis docs (tutorial / how-to / reference / explanation) from code.
/setup-deployOne-time deploy config detection (Fly.io, Render, Vercel, etc.).
/bstack-upgradeUpdate bstack to the latest version.

Operational + memory

SkillWhat it does
/context-saveSave working context (git state, decisions, remaining work).
/context-restoreResume from a saved context, even across Conductor workspaces.
/learnManage what bstack learned across sessions.
/retroWeekly retro with per-person breakdowns and shipping streaks.
/healthCode quality dashboard (type checker, linter, tests, dead code).
/benchmarkPerformance regression detection (page load, Core Web Vitals).
/benchmark-modelsCross-model benchmark for skills (Claude, GPT, Gemini side-by-side).
/csoOWASP Top 10 + STRIDE security audit.

Browser + agent integration

SkillWhat it does
/browseHeadless browser — real Chromium, real clicks, ~100ms/command.
/open-bstack-browserLaunch the visible BStack Browser with sidebar + stealth.
/setup-browser-cookiesImport cookies from your real browser for authenticated testing.
/pair-agentPair a remote AI agent (OpenClaw, Codex, etc.) with your browser.

iOS QA — drive real iPhones over USB or Tailscale (v1.43.0.0+)

SkillWhat it does
/ios-qaLive-device iOS QA via USB CoreDevice tunnel + embedded StateServer. Optionally exposes the device over Tailscale so remote agents can drive it.
/ios-fixAutonomous iOS bug fixer with regression snapshot capture.
/ios-design-reviewDesigner's-eye QA on a real iPhone — 10-dimension Apple HIG rubric.
/ios-cleanConvenience: strip DebugBridge + #if DEBUG wiring before a Release build.
/ios-syncRegenerate the iOS debug bridge against the latest upstream templates.

Companion CLIs (run on the Mac that's plugged into the device):

CommandWhat it does
bstack-ios-qa-daemonMac-side broker. Loopback by default; --tailnet adds a Tailscale-facing listener with capability tiers and audit logging.
bstack-ios-qa-mintOwner-grant CLI for the tailnet allowlist (grant/revoke/list).
bstack-ios-qa-regenRegenerate the canonical local DebugBridge package and typed accessors (--app-source / --bridge-dir).

End-to-end walkthrough: docs/howto-ios-testing-with-bstack.md.

Safety + scoping

SkillWhat it does
/carefulWarn before destructive commands (rm -rf, DROP TABLE, force-push).
/freezeLock edits to one directory. Hard block, not just a warning.
/guardActivate both careful + freeze at once.
/unfreezeRemove directory edit restrictions.
/make-pdfTurn any markdown file into a publication-quality PDF.
/diagramEnglish in, diagram out: mermaid source + editable .excalidraw + SVG/PNG, offline.

Build commands

bun install              # install dependencies
bun test                 # run free tests (no API spend)
bun run test:windows     # curated Windows-safe subset (runs on windows-latest)
bun run build            # generate docs + compile binaries
bun run gen:skill-docs   # regenerate SKILL.md files from templates
bun run skill:check      # health dashboard for all skills

Platform support

  • macOS + Linux: full test suite supported.
  • Windows: curated Windows-safe subset runs on windows-latest via the windows-free-tests CI job. Setup script (./setup) requires Git Bash or MSYS today; native PowerShell support is a future expansion. The bin/bstack-paths helper resolves state roots through CLAUDE_PLUGIN_DATA / BSTACK_HOME so plugin installs work on every platform.

Key conventions

  • SKILL.md files are generated from .tmpl templates. Edit the template, not the output.
  • Run bun run gen:skill-docs --host codex to regenerate Codex-specific output.
  • The browse binary provides headless browser access. Use $B <command> in skills.
  • Safety skills (careful, freeze, guard) use inline advisory prose — always confirm before destructive operations.
  • State paths resolve via bin/bstack-paths (sourced via eval "$(...)"). Honors BSTACK_HOME, CLAUDE_PLUGIN_DATA, CLAUDE_PLANS_DIR.
  • The claude CLI binary resolves via browse/src/claude-bin.ts (Bun.which() + BSTACK_CLAUDE_BIN override). Set BSTACK_CLAUDE_BIN=wsl plus BSTACK_CLAUDE_BIN_ARGS='["claude"]' to run Claude through WSL on Windows.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.