cbt

star 2

Operate Cory's build/test/run workflow through the `./cbt` command only. Use when Codex needs to configure builds, compile targets, run tests, run demos, format/lint/analyze code, inspect toolchain status, or troubleshoot environment/build issues in this repository.

TheHugeManatee By TheHugeManatee schedule Updated 2/8/2026

name: cbt description: Operate Cory's build/test/run workflow through the ./cbt command only. Use when Codex needs to configure builds, compile targets, run tests, run demos, format/lint/analyze code, inspect toolchain status, or troubleshoot environment/build issues in this repository.

CBT

Use ./cbt as the single entrypoint for project tasks. Avoid direct cmake, ctest, or binary execution unless explicitly requested.

Core Workflow

  1. Start each new session with a readiness check
  • Run ./cbt start from repo root.
  • If it fails, stop and report the failure instead of attempting ad-hoc environment fixes.
  1. Choose the smallest command sequence for the task
  • Environment/setup issue: ./cbt doctor, then ./cbt configure or ./cbt reconfigure.
  • Build only: ./cbt build [--target <name>].
  • Test: ./cbt test <regex> (prefer focused tests over full suites).
  • Run target: ./cbt run <target> --frames <N> -- <args> for interactive apps.
  • Formatting/static checks: ./cbt fmt, ./cbt lint, ./cbt analyze.
  1. Respect platform/build-root constraints
  • On Linux/WSL, keep build roots on native Linux storage (typically ~/cory-work/), not the mounted source tree.
  • Reuse configured profiles/build dirs unless the task explicitly needs a new one.
  • Sanitizer-enabled builds are supported through cbt-managed Conan variants. Prefer ./cbt configure or ./cbt reconfigure with --cmake-define CORY_SANITIZERS_<Config>=... instead of invoking Conan/CMake directly.
  1. Handle failures deterministically
  • Use ./cbt status, ./cbt tests, ./cbt targets, and ./cbt which to inspect state.
  • Fix the first root cause first (missing toolchain/configuration before downstream command failures).

Playbooks

Configure + build

./cbt start
./cbt doctor
./cbt configure
./cbt build

Configure a sanitizer variant

./cbt configure --cmake-define CORY_SANITIZERS_Debug=ASAN

Notes:

  • cbt resolves the active sanitizer set before Conan and CMake.
  • Sanitized and non-sanitized dependency graphs use different CONAN_HOME directories.
  • Direct non-cbt sanitizer builds are not considered supported, especially on Windows/MSVC.

Run one test scope

./cbt test "<regex>"

Run an interactive example safely

./cbt run <target> --frames=120

Validate shader edits

./cbt slang <shader-path>

Guardrails

  • Run only the specific test or regex needed.
  • Do not run interactive targets without --frames=N.
  • Prefer ./cbt command outputs over guessing paths or tool invocations.
  • Keep command usage repo-root relative.
  • Use an empty value to disable a per-config sanitizer override, e.g. --cmake-define CORY_SANITIZERS_Debug=.

Resource Map

  • Command digest and decision notes: references/cbt-guide.md
  • Extended repository-level background: CBT.md
Install via CLI
npx skills add https://github.com/TheHugeManatee/Cory --skill cbt
Repository Details
star Stars 2
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator
TheHugeManatee
TheHugeManatee Explore all skills →