get-tbd 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -28
- package/dist/bin.mjs +410 -170
- package/dist/bin.mjs.map +1 -1
- package/dist/cli.mjs +202 -94
- package/dist/cli.mjs.map +1 -1
- package/dist/docs/README.md +47 -28
- package/dist/docs/SKILL.md +61 -18
- package/dist/docs/guidelines/bun-monorepo-patterns.md +2096 -0
- package/dist/docs/guidelines/cli-agent-skill-patterns.md +79 -5
- package/dist/docs/guidelines/error-handling-rules.md +66 -0
- package/dist/docs/guidelines/pnpm-monorepo-patterns.md +2868 -0
- package/dist/docs/guidelines/release-notes-guidelines.md +140 -0
- package/dist/docs/guidelines/{sync-troubleshooting.md → tbd-sync-troubleshooting.md} +1 -1
- package/dist/docs/guidelines/typescript-sorting-patterns.md +234 -0
- package/dist/docs/guidelines/typescript-yaml-handling-rules.md +195 -0
- package/dist/docs/install/claude-header.md +13 -6
- package/dist/docs/shortcuts/standard/agent-handoff.md +1 -0
- package/dist/docs/shortcuts/standard/checkout-third-party-repo.md +50 -0
- package/dist/docs/shortcuts/standard/{cleanup-all.md → code-cleanup-all.md} +3 -2
- package/dist/docs/shortcuts/standard/{cleanup-update-docstrings.md → code-cleanup-docstrings.md} +1 -0
- package/dist/docs/shortcuts/standard/{cleanup-remove-trivial-tests.md → code-cleanup-tests.md} +1 -0
- package/dist/docs/shortcuts/standard/{commit-code.md → code-review-and-commit.md} +1 -0
- package/dist/docs/shortcuts/standard/coding-spike.md +54 -0
- package/dist/docs/shortcuts/standard/create-or-update-pr-simple.md +1 -0
- package/dist/docs/shortcuts/standard/create-or-update-pr-with-validation-plan.md +1 -0
- package/dist/docs/shortcuts/standard/implement-beads.md +1 -0
- package/dist/docs/shortcuts/standard/merge-upstream.md +1 -0
- package/dist/docs/shortcuts/standard/new-architecture-doc.md +1 -0
- package/dist/docs/shortcuts/standard/new-guideline.md +8 -0
- package/dist/docs/shortcuts/standard/new-plan-spec.md +1 -0
- package/dist/docs/shortcuts/standard/new-research-brief.md +1 -0
- package/dist/docs/shortcuts/standard/new-shortcut.md +27 -1
- package/dist/docs/shortcuts/standard/new-validation-plan.md +1 -0
- package/dist/docs/shortcuts/standard/plan-implementation-with-beads.md +1 -0
- package/dist/docs/shortcuts/standard/precommit-process.md +1 -0
- package/dist/docs/shortcuts/standard/review-code-python.md +1 -0
- package/dist/docs/shortcuts/standard/review-code-typescript.md +1 -0
- package/dist/docs/shortcuts/standard/review-code.md +1 -0
- package/dist/docs/shortcuts/standard/review-github-pr.md +89 -17
- package/dist/docs/shortcuts/standard/revise-all-architecture-docs.md +1 -0
- package/dist/docs/shortcuts/standard/revise-architecture-doc.md +1 -0
- package/dist/docs/shortcuts/standard/setup-github-cli.md +1 -0
- package/dist/docs/shortcuts/standard/sync-failure-recovery.md +6 -53
- package/dist/docs/shortcuts/standard/update-specs-status.md +1 -0
- package/dist/docs/shortcuts/standard/welcome-user.md +2 -1
- package/dist/docs/shortcuts/system/skill-brief.md +1 -1
- package/dist/docs/shortcuts/system/skill.md +48 -12
- package/dist/docs/skill-brief.md +1 -1
- package/dist/docs/tbd-design.md +13 -1
- package/dist/index.d.mts +20 -6
- package/dist/index.mjs +2 -2
- package/dist/{src-BfhjLZXE.mjs → src-Ct16P2Ox.mjs} +154 -22
- package/dist/src-Ct16P2Ox.mjs.map +1 -0
- package/dist/tbd +410 -170
- package/package.json +1 -1
- package/dist/docs/guidelines/typescript-monorepo-patterns.md +0 -72
- package/dist/src-BfhjLZXE.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# tbd
|
|
2
2
|
|
|
3
|
-
**Task
|
|
4
|
-
agents.**
|
|
3
|
+
**Task tracking, spec-driven planning, and knowledge injection for AI coding agents.**
|
|
5
4
|
|
|
6
5
|
**tbd** (short for “To Be Done,” or “TypeScript beads” if you prefer) combines four
|
|
7
6
|
things that are each powerful on their own but work even better together:
|
|
@@ -138,12 +137,12 @@ status or context or knowledge and know what to do next:
|
|
|
138
137
|
| "Let's work on current beads" | Agent finds ready beads and starts working | `tbd ready` |
|
|
139
138
|
| "Review this code" | Agent performs comprehensive code review with all guidelines | [`tbd shortcut review-code`](packages/tbd/docs/shortcuts/standard/review-code.md) |
|
|
140
139
|
| "Review this PR" | Agent reviews a GitHub pull request and can comment/fix | [`tbd shortcut review-github-pr`](packages/tbd/docs/shortcuts/standard/review-github-pr.md) |
|
|
141
|
-
| "Use the shortcut to commit" | Agent runs full pre-commit checks, code review, and commits | [`tbd shortcut commit
|
|
140
|
+
| "Use the shortcut to commit" | Agent runs full pre-commit checks, code review, and commits | [`tbd shortcut code-review-and-commit`](packages/tbd/docs/shortcuts/standard/code-review-and-commit.md) |
|
|
142
141
|
| "Create a PR" | Agent creates or updates the pull request | [`tbd shortcut create-or-update-pr-simple`](packages/tbd/docs/shortcuts/standard/create-or-update-pr-simple.md) |
|
|
143
142
|
| "Let's create a research brief on …" | Agent creates a research document using a template | [`tbd shortcut new-research-brief`](packages/tbd/docs/shortcuts/standard/new-research-brief.md) |
|
|
144
143
|
| "How could we test this better?" | Agent loads TDD and testing guidelines | [`tbd guidelines general-tdd-guidelines`](packages/tbd/docs/guidelines/general-tdd-guidelines.md) |
|
|
145
144
|
| "How can we make this a well-designed TypeScript CLI?" | Agent loads TypeScript CLI guidelines | [`tbd guidelines typescript-cli-tool-rules`](packages/tbd/docs/guidelines/typescript-cli-tool-rules.md) |
|
|
146
|
-
| "Can you review if this TypeScript package setup follows best practices" | Agent loads monorepo patterns | [`tbd guidelines
|
|
145
|
+
| "Can you review if this TypeScript package setup follows best practices" | Agent loads monorepo patterns | [`tbd guidelines pnpm-monorepo-patterns`](packages/tbd/docs/guidelines/pnpm-monorepo-patterns.md) |
|
|
147
146
|
| "How can we do a better job of testing?" | Agent loads golden testing guidelines | [`tbd guidelines golden-testing-guidelines`](packages/tbd/docs/guidelines/golden-testing-guidelines.md) |
|
|
148
147
|
|
|
149
148
|
Under the hood, your agent runs these `tbd` commands automatically.
|
|
@@ -168,7 +167,7 @@ You just talk naturally.
|
|
|
168
167
|
[FAQ: How does `tbd` compare to Beads?](#how-does-tbd-compare-to-beads)).
|
|
169
168
|
- **Shortcuts:** Over a dozen reusable workflow documents—plan specs, code reviews,
|
|
170
169
|
commit processes, PR creation, research briefs, and more.
|
|
171
|
-
- **Guidelines:** [
|
|
170
|
+
- **Guidelines:** [20+ guideline docs](packages/tbd/docs/guidelines/) of coding rules
|
|
172
171
|
and best practices (see
|
|
173
172
|
[Built-in Engineering Knowledge](#built-in-engineering-knowledge)).
|
|
174
173
|
- **Templates:** Document templates for planning specs, research briefs, architecture
|
|
@@ -213,7 +212,7 @@ And yes, all the code *and* all the specs of `tbd` are agent written—see
|
|
|
213
212
|
## Built-in Engineering Knowledge
|
|
214
213
|
|
|
215
214
|
When you run `tbd setup`, your agent gets instant access to
|
|
216
|
-
[
|
|
215
|
+
[20+ guideline documents](packages/tbd/docs/guidelines/) covering real-world engineering
|
|
217
216
|
practices. These aren’t generic tips; they’re mostly my own detailed and sometimes
|
|
218
217
|
opinionated rules with concrete examples, built from months of heavy agentic coding.
|
|
219
218
|
|
|
@@ -235,8 +234,12 @@ opinionated rules with concrete examples, built from months of heavy agentic cod
|
|
|
235
234
|
| [general-testing-rules](packages/tbd/docs/guidelines/general-testing-rules.md) | Minimal tests for maximum coverage, avoiding redundant test cases |
|
|
236
235
|
| [typescript-code-coverage](packages/tbd/docs/guidelines/typescript-code-coverage.md) | Code coverage best practices with Vitest and v8 provider |
|
|
237
236
|
| [typescript-rules](packages/tbd/docs/guidelines/typescript-rules.md) | Strict type safety, no `any`, type guards, null safety, async patterns |
|
|
238
|
-
| [typescript-
|
|
237
|
+
| [typescript-sorting-patterns](packages/tbd/docs/guidelines/typescript-sorting-patterns.md) | Deterministic sorting, comparison chains for multi-field sorts |
|
|
238
|
+
| [pnpm-monorepo-patterns](packages/tbd/docs/guidelines/pnpm-monorepo-patterns.md) | pnpm workspaces, tsdown, Vitest, Changesets, publint, dual ESM/CJS |
|
|
239
|
+
| [bun-monorepo-patterns](packages/tbd/docs/guidelines/bun-monorepo-patterns.md) | Bun workspaces, Bunup, Biome, bun test, standalone executables |
|
|
239
240
|
| [typescript-cli-tool-rules](packages/tbd/docs/guidelines/typescript-cli-tool-rules.md) | Commander.js patterns, picocolors, terminal formatting |
|
|
241
|
+
| [cli-agent-skill-patterns](packages/tbd/docs/guidelines/cli-agent-skill-patterns.md) | Building CLIs that function as agent skills in Claude Code |
|
|
242
|
+
| [typescript-yaml-handling-rules](packages/tbd/docs/guidelines/typescript-yaml-handling-rules.md) | YAML parsing/serialization with the `yaml` package, Zod validation, consistent formatting |
|
|
240
243
|
| [python-rules](packages/tbd/docs/guidelines/python-rules.md) | Type hints, docstrings, exception handling, resource management |
|
|
241
244
|
| [python-cli-patterns](packages/tbd/docs/guidelines/python-cli-patterns.md) | Modern Python CLI stack: uv, Typer, Rich, Ruff, BasedPyright |
|
|
242
245
|
| [backward-compatibility-rules](packages/tbd/docs/guidelines/backward-compatibility-rules.md) | Compatibility across code, APIs, file formats, and database schemas |
|
|
@@ -267,7 +270,7 @@ npm install -g get-tbd@latest
|
|
|
267
270
|
### Setup
|
|
268
271
|
|
|
269
272
|
```bash
|
|
270
|
-
# Fresh project (--prefix is REQUIRED—
|
|
273
|
+
# Fresh project (--prefix is REQUIRED—2-8 alphabetic chars, e.g. myapp-a1b2)
|
|
271
274
|
tbd setup --auto --prefix=myapp
|
|
272
275
|
|
|
273
276
|
# Joining an existing tbd project (no prefix needed—reads existing config)
|
|
@@ -318,8 +321,9 @@ GH_PROMPT_DISABLED=1
|
|
|
318
321
|
Create a [Personal Access Token](https://github.com/settings/tokens?type=beta)
|
|
319
322
|
(fine-grained recommended) with **Contents** and **Pull requests** read/write
|
|
320
323
|
permissions. For Claude Code Cloud, set these in your project’s environment variables.
|
|
321
|
-
For local CLI usage, add them to your shell profile (`~/.zshrc` or `~/.bashrc`). See
|
|
322
|
-
[
|
|
324
|
+
For local CLI usage, add them to your shell profile (`~/.zshrc` or `~/.bashrc`). See the
|
|
325
|
+
[setup-github-cli shortcut](packages/tbd/docs/shortcuts/standard/setup-github-cli.md)
|
|
326
|
+
for details.
|
|
323
327
|
|
|
324
328
|
To disable automatic `gh` installation, pass `--no-gh-cli` during setup or set
|
|
325
329
|
`use_gh_cli: false` in `.tbd/config.yml` under `settings:`.
|
|
@@ -388,26 +392,41 @@ tbd template --add=<url> --name=<name>
|
|
|
388
392
|
|
|
389
393
|
**Available shortcuts:**
|
|
390
394
|
|
|
391
|
-
| Shortcut | Purpose |
|
|
392
|
-
| --- | --- |
|
|
393
|
-
| `new-plan-spec` | Create a feature planning spec |
|
|
394
|
-
| `
|
|
395
|
-
| `
|
|
396
|
-
| `new-validation-plan` | Create a test/validation plan |
|
|
397
|
-
| `
|
|
398
|
-
| `
|
|
399
|
-
| `
|
|
400
|
-
| `
|
|
401
|
-
| `
|
|
402
|
-
| `review-code
|
|
403
|
-
| `
|
|
404
|
-
| `
|
|
405
|
-
| `
|
|
406
|
-
| `
|
|
395
|
+
| Category | Shortcut | Purpose |
|
|
396
|
+
| --- | --- | --- |
|
|
397
|
+
| **Planning** | `new-plan-spec` | Create a feature planning spec |
|
|
398
|
+
| | `plan-implementation-with-beads` | Break a spec into implementation beads |
|
|
399
|
+
| | `implement-beads` | Implement beads from a spec |
|
|
400
|
+
| | `new-validation-plan` | Create a test/validation plan |
|
|
401
|
+
| | `update-specs-status` | Review active specs and sync with tbd issues |
|
|
402
|
+
| **Documentation** | `new-research-brief` | Create a research document |
|
|
403
|
+
| | `new-architecture-doc` | Create an architecture document |
|
|
404
|
+
| | `revise-architecture-doc` | Update an architecture doc to match current code |
|
|
405
|
+
| | `revise-all-architecture-docs` | Revise all current architecture documents |
|
|
406
|
+
| **Review** | `review-code` | Comprehensive code review (uncommitted, branch, or PR) |
|
|
407
|
+
| | `review-github-pr` | Review a GitHub PR with commenting and CI checks |
|
|
408
|
+
| | `review-code-typescript` | TypeScript-focused code review |
|
|
409
|
+
| | `review-code-python` | Python-focused code review |
|
|
410
|
+
| **Git** | `precommit-process` | Pre-commit review and testing |
|
|
411
|
+
| | `code-review-and-commit` | Commit with pre-commit checks |
|
|
412
|
+
| | `create-or-update-pr-simple` | Basic PR creation |
|
|
413
|
+
| | `create-or-update-pr-with-validation-plan` | PR with a validation plan |
|
|
414
|
+
| | `merge-upstream` | Merge origin/main with conflict resolution |
|
|
415
|
+
| **Cleanup** | `code-cleanup-all` | Full code cleanup (duplicates, dead code, quality) |
|
|
416
|
+
| | `code-cleanup-tests` | Remove trivial/low-value tests |
|
|
417
|
+
| | `code-cleanup-docstrings` | Add docstrings to major functions |
|
|
418
|
+
| **Session** | `agent-handoff` | Generate handoff prompt for another agent |
|
|
419
|
+
| | `welcome-user` | Welcome message after tbd installation |
|
|
420
|
+
| | `setup-github-cli` | Ensure GitHub CLI is installed and working |
|
|
421
|
+
| | `sync-failure-recovery` | Handle tbd sync failures |
|
|
422
|
+
| | `checkout-third-party-repo` | Clone library source code for review |
|
|
423
|
+
| **Exploration** | `coding-spike` | Prototype to validate a spec through implementation |
|
|
424
|
+
| **Meta** | `new-guideline` | Create a new coding guideline for tbd |
|
|
425
|
+
| | `new-shortcut` | Create a new shortcut for tbd |
|
|
407
426
|
|
|
408
427
|
**Available guidelines:** See
|
|
409
428
|
[Built-in Engineering Knowledge](#built-in-engineering-knowledge) for the full list of
|
|
410
|
-
|
|
429
|
+
20+ guidelines covering TypeScript, Python, testing, TDD, and more.
|
|
411
430
|
|
|
412
431
|
**Available templates:**
|
|
413
432
|
|
|
@@ -564,7 +583,7 @@ $
|
|
|
564
583
|
|
|
565
584
|
### Can I add my own guidelines?
|
|
566
585
|
|
|
567
|
-
Yes. `tbd` comes with
|
|
586
|
+
Yes. `tbd` comes with 20+ bundled guidelines, but you can add your own team’s docs from
|
|
568
587
|
any URL:
|
|
569
588
|
|
|
570
589
|
```bash
|