birwin93/bstack/bstack-runtime

Claude Code and agent skill by birwin93/bstack

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Internal runtime contract for bstack skills. Use only when Poteto Mode or another bstack orchestration skill needs host capabilities, model roles, reasoning levels, limits, or authorization state.

Install

npx vskill@latest install birwin93/bstack/bstack-runtime

SKILL.md

The same SKILL.md was published earlier as birwin93/bstack/bstack-runtime.

bstack runtime

Resolve execution mechanics before an orchestration skill delegates, waits, reads conversation history, or mutates external state.

Load configuration

Load configuration in this order. Later, higher-authority instructions override earlier configuration regardless of file order.

  1. Built-in defaults from this skill.
  2. User configuration at $XDG_CONFIG_HOME/bstack/config.yaml, or

~/.config/bstack/config.yaml when XDG_CONFIG_HOME is unset.

  1. Repository configuration at <repo>/.bstack/config.yaml.
  2. Instructions in the current conversation.
  3. Host system and developer instructions.

Missing files are normal. Never create configuration during an ordinary task. Use setup-bstack when the user asks to configure bstack.

Default limits are max-parallel: 3, max-review-rounds: 2, and panel-size: 2. A lower limit from the host wins.

Resolve executor routes

Each semantic role may use either the version 1 scalar form or a version 2 route:

yaml
models:
deep-code:
executor: codex
model: gpt-5.6-sol
reasoning: high

Normalize a scalar as {executor: auto, model: <scalar>}. reasoning is optional in a version 2 route. Omission and reasoning: auto both preserve the route's default: a native auto route inherits the parent session's reasoning level, while an explicit CLI route uses the provider's configured default. Executor values have literal meanings:

  • auto uses native host delegation and inherits the parent model when the

route omits a model.

  • codex runs the configured model through codex exec.
  • claude runs the configured model through claude -p.

A host adapter may run an explicit codex or claude route through the host's own delegation when it runs the same model at the same reasoning level and keeps each worker visible to the user. The BillyBot adapter does this.

Configuration must not become an arbitrary command or provider-flag escape hatch. reasoning is the only configurable provider control beyond model selection. The runtime owns its translation and the scoped permission controls described in the executor reference. Never silently replace an explicit executor or model with another one. Change an explicit reasoning level only through the per-job step in Match reasoning to the job. If the host cannot run an explicit CLI route or apply an explicit reasoning level, follow the recovery rule below.

Read references/executors.md before starting an explicit CLI route. Start the fixed command through the host's process capability, send the prompt over stdin, and let the host own waiting and cancellation. Never impose a wall-clock deadline on an LLM call. A tool yield or progress polling interval must not terminate the CLI process.

Choose permissions from the assignment before launching. Inspection and review use read-only mode. A request to implement, fix, or create a local artifact already authorizes the necessary local writes; pass that authority to the worker and use workspace-write in its isolated worktree. Do not ask again merely because work is delegated. Use only the scoped permission controls in the executor reference, never approval-bypass flags or arbitrary provider flags. Every CLI worker counts against both bstack's max-parallel limit and any lower host limit.

Resolve the host

Inspect the tools and instructions available in the current session. Build a capability map for these operations:

  • delegate: start one bounded worker with an owned scope.
  • delegate-parallel: start independent workers without shared writes.
  • wait: wait for worker completion or a meaningful state change.
  • ask: request a genuinely missing product or preference decision.
  • schedule: wake later or monitor an external predicate.
  • history: read the current task's completed conversation history.
  • connected-tools: discover source control, ticket, document, chat,

observability, error-tracking, and analytics tools.

Read exactly one adapter under references/adapters/ when the host is known. A session that offers run_subtask or delegate_task is BillyBot: read billybot.md. Read generic.md when the host is not known. Adapter files are examples of mappings, not authority to use a capability the current session does not expose.

When native delegation is unavailable for an auto route, execute serially and preserve the playbook. An unavailable or failed explicit claude or codex route must follow the recovery rule below. When scheduling is unavailable, use bounded waits within the current turn and report the remaining predicate. When history or a connected-tool category is unavailable, name the gap instead of inventing evidence.

Resolve model roles and reasoning

bstack uses semantic roles rather than provider model slugs:

  • fast-code for narrow mechanical implementation.
  • deep-code for precise or technically difficult implementation.
  • judgment for architecture, synthesis, and ambiguous decisions.
  • critic for independent review.

For auto routes, map a configured role only to a model and reasoning level that the active host confirms are available together. Pass an explicit reasoning level through the host's native delegation control. For explicit CLI routes, use the provider model from configuration and start from its configured reasoning level; the active host's catalog does not need to contain values owned by another CLI. Omit model and reasoning overrides when their configured value is auto. If the host or CLI rejects a configured model/reasoning combination, report the error without substitution. Never guess a model slug or reasoning value. Panel size determines reviewer count; repeated roles still count toward limits.

Match reasoning to the job

The configured reasoning level is each role's starting point, not a fixed value. Before each spawn, start from the role's configured level, or from the inherited level when the route omits reasoning. Then adjust it for the job:

  • Raise it one step for the hardest or subtlest work, up to the highest level

the host confirms for that model.

  • Lower it one step for judgment-only work.
  • Lower it two or more steps for routine or mechanical work.

Use a fast or priority speed mode only when the job is urgent, meaning CI or trunk is red or a person is blocked on the result right now. Otherwise use standard speed. Independent verification, meaning critic lanes and swarm verifier lanes, stays on its configured level and speed.

Change only reasoning and speed. Never change the model or its family, so a diverse panel stays diverse. Use only levels the host or provider CLI confirms for that model, and never guess a value. A role on auto inherits the parent model and level and is not adjusted. If the host or CLI rejects the adjusted level, use the configured level and say so. Do not try another adjusted value. A rejected adjusted level is not an executor failure and does not count as a retry.

Recover explicit executor failures

For a recoverable claude or codex failure, retry the same route up to three times after the initial attempt, four attempts total per worker assignment. Do not ask permission for these retries. Keep the executor, model, reasoning, scope, and existing authorization. Record the attempt count, concrete error, and correction in the task's working record; respawning or resuming does not reset the budget. A tool yield or progress poll is not a failed attempt.

Before retrying, inspect the failure and fix its cause when possible:

  • Missing stdin, bad quoting, wrong working directory, or an incorrect launch

option: repair the invocation and resend the complete prompt.

  • A worker launched read-only for authorized local edits, or a needed tool

omitted from the launch: correct the worker's mode or scoped tool allowance within the authority already granted by the task and host.

  • A transient connection, rate-limit, or provider error: honor provider retry

guidance and use increasing delays between attempts. Missing or malformed final output also warrants a retry after inspecting the process result.

Before each retry, confirm the previous process has exited and inspect any artifacts or side effects. Preserve completed work and retry only unfinished work. If an external mutation may have succeeded, verify its outcome before replaying it; an unknown outcome is a reason to stop, not to duplicate it.

Stop early for failures a same-route retry cannot fix: missing credentials that require user login, a confirmed unavailable model or reasoning level, an unavailable host capability, or a genuine access or policy denial. Do not weaken host restrictions, override an explicit deny, enable bypass flags, or change persistent permission settings to make a retry succeed. A mistaken worker launch mode is distinct from an actual denial of authority.

After three unsuccessful retries, or a nonrecoverable failure, stop the dependent workflow and report the role, executor, model, attempts, concrete error, preserved artifacts, and unfinished steps. Continue independent authorized work when useful. Do not switch routes, inherit the parent model, do the failed assignment yourself, shrink the panel, or claim completion with missing required review. Ask only for the specific access or decision needed to unblock the remaining work.

This rule takes precedence over serial execution, dropout, and unavailable delegation fallbacks in consuming skills and playbooks. Check exit status, provider error indicators, final output, and required tool access; a zero exit code alone does not establish success. Ordinary findings from a completed review or failing project tests are task results, not executor failures.

Authorization

Workflow selection never grants publication or external-write authority. Determine authorization from the user's current request and higher-priority host instructions immediately before each action.

These actions require explicit authorization by default:

  • commit;
  • push;
  • open or modify a pull request;
  • merge or enable merge automation;
  • deploy;
  • write to tickets, team chat, documents, production systems, or customer

communication channels;

  • delete data or perform destructive cleanup.

Read-only inspection, local edits inside the requested scope, tests, builds, and reversible scratch artifacts are allowed when they are normal steps in the requested task. Preserve unrelated worktree changes. Never reset or clean a dirty checkout to make a playbook convenient.

An autonomous or overnight request removes the need for progress prompts. It does not broaden action scope. Record blocked publication actions in the decision trail and continue any useful authorized work.

Delegate safely

Give each worker a concrete objective, owned files or read-only scope, success criteria, and the relevant authorization subset. Pass file paths instead of large inlined payloads when the host shares a filesystem. Workers must not publish, contact external systems, or mutate shared state unless the user authorized that exact action.

The parent owns the outcome. Inspect worker artifacts and evidence directly, resolve conflicts, and write the final synthesis. Do not substitute worker self-report for verification.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/birwin93/bstack/bstack-runtime/badge)](https://verified-skill.com/skills/birwin93/bstack/bstack-runtime)

Something wrong with this skill or its page? Tell us.