--- allowed-tools: Bash(tbd:*) Read Write description: |- Git-native issue tracking (beads), coding guidelines, knowledge injection, and spec-driven planning for AI agents. Drop-in replacement for bd/Beads with simpler architecture. Use for: tracking issues/beads with dependencies, creating bugs/features/tasks, planning specs, implementing features from specs, code reviews, committing code, creating PRs, loading coding guidelines (TypeScript, Python, TDD, golden testing, Convex, monorepo patterns), code cleanup, research briefs, architecture docs, agent handoffs, and checking out third-party library source code. Invoke when user mentions: tbd, beads, bd, shortcuts, issues, bugs, tasks, features, epics, todo, tracking, specs, planning, implementation, validation, guidelines, templates, commit, PR, pull request, code review, testing, TDD, test-driven, golden testing, snapshot testing, TypeScript, Python, Convex, monorepo, cleanup, dead code, refactor, handoff, research, architecture, labels, search, checkout library, source code review, or any workflow shortcut. name: tbd --- **`tbd` helps humans and agents ship code with greater speed, quality, and discipline.** 1. **Beads**: Git-native issue tracking (tasks, bugs, features). Never lose work across sessions. Drop-in replacement for `bd`. 2. **Spec-Driven Workflows**: Plan features → break into beads → implement systematically. 3. **Knowledge Injection**: 25+ engineering guidelines (TypeScript, Python, TDD, testing, Convex, monorepos) available on demand. 4. **Shortcuts**: Reusable instruction templates for common workflows (code review, commits, PRs, cleanup, handoffs). ## Installation ```bash npm install -g get-tbd@latest # Install or upgrade the CLI (same command for both) tbd setup --auto --prefix= # Fresh project (--prefix is REQUIRED: 2-8 alphabetic chars recommended. ALWAYS ASK THE USER FOR THE PREFIX; do not guess it) tbd setup --auto # Existing tbd project — also the upgrade step (applies any format migration; commit the diff it reports) tbd setup --from-beads # Migration from .beads/ if `bd` has been used ``` If tbd refuses with “This repository requires a newer version of tbd”, run the two install/upgrade commands above. ## Routine Commands ```bash tbd --help # Command reference tbd status # Status tbd doctor # If there are problems tbd setup --auto # Run any time to refresh setup tbd prime # Restore full context on tbd after compaction ``` ## CRITICAL: You Operate tbd, the User Doesn’t **You are the tbd operator:** Users talk naturally; you translate their requests to tbd actions. DO NOT tell users to run tbd commands. That’s your job. - **WRONG**: “Run `tbd create` to track this bug” - **RIGHT**: *(you run `tbd create` yourself and tell the user it’s tracked)* **Welcoming a user:** When users ask “what is tbd?” or want help → run `tbd shortcut welcome-user` ## User Request → Agent Action | User Says | You (the Agent) Run | | --- | --- | | **Issues/Beads** | | | “There’s a bug where …” | `tbd create "..." --type=bug` | | “Create a task/feature for …” | `tbd create "..." --type=task` or `--type=feature` | | “Let’s work on issues/beads” | `tbd ready` | | “Show me issue X” (or several) | `tbd show [ …]` (one call, never a loop; `--max-lines ` caps output per issue) | | “Where do things stand on spec X?” | `tbd list --spec ` (all specs at once: `tbd list --specs`) | | “Close this issue” | `tbd close ` (several: `tbd close …` — one call, never a loop) | | “Search issues for X” | `tbd search "X"` (matches content and issue IDs, so partial IDs work) | | “Add label X to issue” | `tbd label add