Skip to content

Commit 2e512fd

Browse files
authored
Merge pull request #24 from jlevy/claude/wonderful-albattani-Z7hLr
Docs cleanup and type-checker research for release readiness
2 parents 869a252 + 7e86f5c commit 2e512fd

15 files changed

Lines changed: 743 additions & 155 deletions

File tree

.agents/skills/tbd/SKILL.md

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
---
2+
allowed-tools: Bash(tbd:*), Read, Write
3+
description: |-
4+
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.
5+
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.
6+
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.
7+
name: tbd
8+
---
9+
<!-- DO NOT EDIT: Generated by tbd setup (format=f04).
10+
Run 'tbd setup' to update.
11+
-->
12+
13+
**`tbd` helps humans and agents ship code with greater speed, quality, and discipline.**
14+
15+
1. **Beads**: Git-native issue tracking (tasks, bugs, features).
16+
Never lose work across sessions.
17+
Drop-in replacement for `bd`.
18+
2. **Spec-Driven Workflows**: Plan features → break into beads → implement
19+
systematically.
20+
3. **Knowledge Injection**: 17+ engineering guidelines (TypeScript, Python, TDD,
21+
testing, Convex, monorepos) available on demand.
22+
4. **Shortcuts**: Reusable instruction templates for common workflows (code review,
23+
commits, PRs, cleanup, handoffs).
24+
25+
## Installation
26+
27+
```bash
28+
npm install -g get-tbd@latest
29+
tbd setup --auto --prefix=<name> # Fresh project (--prefix is REQUIRED: 2-8 alphabetic chars recommended. ALWAYS ASK THE USER FOR THE PREFIX; do not guess it)
30+
tbd setup --auto # Existing tbd project (prefix already set)
31+
tbd setup --from-beads # Migration from .beads/ if `bd` has been used
32+
```
33+
34+
## Routine Commands
35+
36+
```bash
37+
tbd --help # Command reference
38+
tbd status # Status
39+
tbd doctor # If there are problems
40+
41+
tbd setup --auto # Run any time to refresh setup
42+
tbd prime # Restore full context on tbd after compaction
43+
```
44+
45+
## CRITICAL: You Operate tbd — The User Doesn’t
46+
47+
**You are the tbd operator:** Users talk naturally; you translate their requests to tbd
48+
actions. DO NOT tell users to run tbd commands.
49+
That’s your job.
50+
51+
- **WRONG**: “Run `tbd create` to track this bug”
52+
53+
- **RIGHT**: *(you run `tbd create` yourself and tell the user it’s tracked)*
54+
55+
**Welcoming a user:** When users ask “what is tbd?”
56+
or want help → run `tbd shortcut welcome-user`
57+
58+
## User Request → Agent Action
59+
60+
| User Says | You (the Agent) Run |
61+
| --- | --- |
62+
| **Issues/Beads** | |
63+
| “There’s a bug where …” | `tbd create "..." --type=bug` |
64+
| “Create a task/feature for …” | `tbd create "..." --type=task` or `--type=feature` |
65+
| “Let’s work on issues/beads” | `tbd ready` |
66+
| “Show me issue X” | `tbd show <id>` |
67+
| “Close this issue” | `tbd close <id>` |
68+
| “Search issues for X” | `tbd search "X"` |
69+
| “Add label X to issue” | `tbd label add <id> <label>` |
70+
| “What issues are stale?” | `tbd stale` |
71+
| **Planning & Specs** | |
72+
| “Plan a new feature” / “Create a spec” | `tbd shortcut new-plan-spec` |
73+
| “Break spec into beads” | `tbd shortcut plan-implementation-with-beads` |
74+
| “Implement these beads” | `tbd shortcut implement-beads` |
75+
| **Code Review & Commits** | |
76+
| “Review this code” / “Code review” | `tbd shortcut review-code` |
77+
| “Review this PR” | `tbd shortcut review-github-pr` |
78+
| “Commit this” / “Use the commit shortcut” | `tbd shortcut code-review-and-commit` |
79+
| “Create a PR” / “File a PR” | `tbd shortcut create-or-update-pr-simple` |
80+
| “Merge main into my branch” | `tbd shortcut merge-upstream` |
81+
| **Guidelines & Knowledge** | |
82+
| “Use TypeScript best practices” | `tbd guidelines typescript-rules` |
83+
| “Use Python best practices” | `tbd guidelines python-rules` |
84+
| “Build a TypeScript CLI” | `tbd guidelines typescript-cli-tool-rules` |
85+
| “Improve monorepo setup” | `tbd guidelines pnpm-monorepo-patterns` or `bun-monorepo-patterns` |
86+
| “Add golden/e2e testing” | `tbd guidelines golden-testing-guidelines` |
87+
| “Use TDD” / “Test-driven development” | `tbd guidelines general-tdd-guidelines` |
88+
| “Convex best practices” | `tbd guidelines convex-rules` |
89+
| **Documentation** | |
90+
| “Research this topic” | `tbd shortcut new-research-brief` |
91+
| “Document architecture” | `tbd shortcut new-architecture-doc` |
92+
| **Cleanup & Maintenance** | |
93+
| “Clean up this code” / “Remove dead code” | `tbd shortcut code-cleanup-all` |
94+
| “Fix repository problems” | `tbd doctor --fix` |
95+
| **Sessions & Handoffs** | |
96+
| “Hand off to another agent” | `tbd shortcut agent-handoff` |
97+
| “Check out this library’s source” | `tbd shortcut checkout-third-party-repo` |
98+
| *(your choice whenever appropriate)* | `tbd list`, `tbd dep add`, `tbd close`, `tbd sync`, etc. |
99+
100+
**Note:** Never gitignore `.tbd/workspaces/` — the outbox must be committed to your
101+
working branch. See `tbd guidelines tbd-sync-troubleshooting` for details.
102+
103+
## CRITICAL: Session Closing Protocol
104+
105+
**Before saying “done”, you MUST complete this checklist:**
106+
107+
```
108+
[ ] 1. git add + git commit
109+
[ ] 2. git push
110+
[ ] 3. gh pr checks <PR> --watch 2>&1 (IMPORTANT: WAIT for final summary, do NOT tell user it is done until you confirm it passes CI!)
111+
[ ] 4. tbd close/update <id> for all beads worked on
112+
[ ] 5. tbd sync
113+
[ ] 6. CONFIRM CI passed (if failed: fix, run tests, re-push, restart from step 3)
114+
```
115+
116+
**Work is not done until pushed, CI passes, and tbd is synced.**
117+
118+
## Bead Tracking Rules
119+
120+
- Track all task work not done immediately as beads (discovered work, TODOs,
121+
multi-session work)
122+
- When in doubt, create a bead
123+
- Check `tbd ready` when not given specific directions
124+
- Always close/update beads and run `tbd sync` at session end
125+
126+
## Commands
127+
128+
### Finding Work
129+
130+
| Command | Purpose |
131+
| --- | --- |
132+
| `tbd ready` | Beads ready to work (no blockers) |
133+
| `tbd list --status open` | All open beads |
134+
| `tbd list --status in_progress` | Your active work |
135+
| `tbd show <id>` | Bead details with dependencies |
136+
137+
### Creating & Updating
138+
139+
| Command | Purpose |
140+
| --- | --- |
141+
| `tbd create "title" --type=bug --priority=1` | New bead; run `tbd create --help` for all types and priorities (P0-P4, not “high/medium/low”) |
142+
| `tbd update <id> --status in_progress` | Claim work |
143+
| `tbd close <id> [--reason "..."]` | Mark complete |
144+
145+
### Dependencies & Sync
146+
147+
| Command | Purpose |
148+
| --- | --- |
149+
| `tbd dep add <bead> <depends-on>` | Add dependency |
150+
| `tbd blocked` | Show blocked beads |
151+
| `tbd sync` | Sync with git remote (run at session end) |
152+
| `tbd stats` | Project statistics |
153+
| `tbd doctor` | Check for problems |
154+
| `tbd doctor --fix` | Auto-fix repository problems |
155+
156+
### Labels & Search
157+
158+
| Command | Purpose |
159+
| --- | --- |
160+
| `tbd search <query>` | Search issues by text |
161+
| `tbd label add <id> <label>` | Add label to issue |
162+
| `tbd label remove <id> <label>` | Remove label from issue |
163+
| `tbd label list` | List all labels in use |
164+
| `tbd stale` | List issues not updated recently |
165+
166+
### Documentation
167+
168+
| Command | Purpose |
169+
| --- | --- |
170+
| `tbd shortcut <name>` | Run a shortcut |
171+
| `tbd shortcut --list` | List shortcuts |
172+
| `tbd guidelines <name>` | Load coding guidelines |
173+
| `tbd guidelines --list` | List guidelines |
174+
| `tbd template <name>` | Output a template |
175+
176+
## Quick Reference
177+
178+
- **Priority**: P0=critical, P1=high, P2=medium (default), P3=low, P4=backlog
179+
- **Types**: issues default to `task`; run `tbd create --help` for the valid types
180+
- **Status**: open, in_progress, closed
181+
- **JSON output**: Add `--json` to any command
182+
183+
<!-- BEGIN SHORTCUT DIRECTORY -->
184+
## Available Shortcuts
185+
186+
Run `tbd shortcut <name>` to use any of these shortcuts:
187+
188+
| Name | Description |
189+
| --- | --- |
190+
| agent-handoff | Generate a concise handoff prompt for another coding agent to continue work |
191+
| checkout-third-party-repo | Get source code for libraries and third-party repos using git. Essential for reliable source code review. Prefer this to web searches or fetching of web pages from github.com as it is far more effective (github.com blocks web scraping from main website). |
192+
| code-cleanup-all | Full cleanup cycle including duplicate removal, dead code, and code quality improvements |
193+
| code-cleanup-docstrings | Review and add concise docstrings to major functions and types |
194+
| code-cleanup-tests | Review and remove tests that do not add meaningful coverage |
195+
| code-review-and-commit | Run pre-commit checks, review changes, and commit code |
196+
| coding-spike | Prototype to validate a spec through hands-on implementation |
197+
| create-or-update-pr-simple | Create or update a pull request with a concise summary |
198+
| create-or-update-pr-with-validation-plan | Create or update a pull request with a detailed test/validation plan |
199+
| implement-beads | Implement beads from a spec, following TDD and project rules |
200+
| merge-upstream | Merge origin/main into current branch with conflict resolution |
201+
| new-architecture-doc | Create an architecture document for a system or component design |
202+
| new-guideline | Create a new coding guideline document for tbd |
203+
| new-plan-spec | Create a new feature planning specification document |
204+
| new-qa-playbook | Create a QA test playbook for manual validation workflows |
205+
| new-research-brief | Create a research document for investigating a topic or technology |
206+
| new-shortcut | Create a new shortcut (reusable instruction template) for tbd |
207+
| new-validation-plan | Create a validation/test plan showing what’s tested and what remains |
208+
| plan-implementation-with-beads | Create implementation beads from a feature planning spec |
209+
| precommit-process | Full pre-commit checklist including spec sync, code review, and testing |
210+
| review-code | Comprehensive code review for uncommitted changes, branch work, or GitHub PRs |
211+
| review-code-python | Python-focused code review (language-specific rules only) |
212+
| review-code-typescript | TypeScript-focused code review (language-specific rules only) |
213+
| review-github-pr | Review a GitHub pull request with follow-up actions (comment, fix, CI check) |
214+
| revise-all-architecture-docs | Comprehensive revision of all current architecture documents |
215+
| revise-architecture-doc | Update an architecture document to reflect current codebase state |
216+
| setup-github-cli | Ensure GitHub CLI (gh) is installed and working |
217+
| sync-failure-recovery | Handle tbd sync failures by saving to workspace and recovering later |
218+
| update-specs-status | Review active specs and sync their status with tbd issues |
219+
| welcome-user | Welcome message for users after tbd installation or setup |
220+
221+
## Available Guidelines
222+
223+
Run `tbd guidelines <name>` to apply any of these guidelines:
224+
225+
| Name | Description |
226+
| --- | --- |
227+
| backward-compatibility-rules | Guidelines for maintaining backward compatibility across code, APIs, file formats, and database schemas |
228+
| bun-monorepo-patterns | Modern patterns for Bun-based TypeScript monorepo architecture |
229+
| cli-agent-skill-patterns | How to write skills and agent-integrated CLIs that work across Claude Code, Codex, and the broader coding-agent ecosystem — a simple baseline plus references for advanced, multi-subcommand tools |
230+
| commit-conventions | Conventional Commits format with extensions for agentic workflows |
231+
| common-doc-guidelines | Common cross-project standards for writing and organizing docs, code comments, and text files — how to organize, structure, write, and format documents, plus the guideline footer convention. Downstream of github.com/jlevy/practical-prose. Use whenever writing or editing any documentation, README, guideline, or design doc. |
232+
| convex-limits-best-practices | Comprehensive reference for Convex platform limits, workarounds, and performance best practices |
233+
| convex-rules | Guidelines and best practices for building Convex projects, including database schema design, queries, mutations, and real-world examples |
234+
| electron-app-development-patterns | Guidelines for Electron development ecosystems including npm, pnpm, and Bun, with security baselines and framework comparisons |
235+
| error-handling-rules | Rules for handling errors, failures, and exceptional conditions |
236+
| general-coding-rules | Rules for constants, magic numbers, and general coding practices |
237+
| general-comment-rules | Language-agnostic rules for writing clean, maintainable comments |
238+
| general-eng-assistant-rules | Rules for AI assistants acting as senior engineers, including objectivity and communication guidelines |
239+
| general-tdd-guidelines | Test-Driven Development methodology and best practices |
240+
| general-testing-rules | Rules for writing minimal, effective tests with maximum coverage |
241+
| golden-testing-guidelines | Guidelines for implementing golden/snapshot testing for complex systems |
242+
| pnpm-monorepo-patterns | Modern patterns for pnpm-based TypeScript monorepo architecture |
243+
| python-cli-patterns | Modern patterns for Python CLI application architecture |
244+
| python-modern-guidelines | Guidelines for modern Python projects using uv, with a few more opinionated practices |
245+
| python-rules | General Python coding rules and best practices |
246+
| release-notes-guidelines | Guidelines for writing clear, accurate release notes |
247+
| supply-chain-hardening | Strongly recommended for EVERY repo — apply it if a repo has not been hardened yet. Cross-ecosystem policy for installing dependencies safely (the 14-day cool-off, disabled install scripts, lockfile discipline, untrusted-repo handling). Use whenever a user mentions hardening, security, supply chain, or setting up a new repo; before adding/upgrading dependencies; when auditing for compromised packages; or when reviewing install/build/run commands across npm/pnpm, PyPI, Cargo, or Go. |
248+
| tbd-sync-troubleshooting | Common issues and solutions for tbd sync and workspace operations |
249+
| typescript-cli-tool-rules | Rules for building CLI tools with Commander.js, picocolors, and TypeScript |
250+
| typescript-code-coverage | Best practices for code coverage in TypeScript with Vitest and v8 provider |
251+
| typescript-rules | TypeScript coding rules and best practices |
252+
| typescript-sorting-patterns | Deterministic sorting patterns and comparison chains for TypeScript |
253+
| typescript-yaml-handling-rules | Best practices for parsing and serializing YAML in TypeScript |
254+
255+
<!-- END SHORTCUT DIRECTORY -->

0 commit comments

Comments
 (0)