AI工作流 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
AI工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g tbd # 方式二:npx 直接运行(无需安装) npx tbd --help # 方式三:项目依赖安装 npm install tbd # 方式四:从源码运行 git clone https://github.com/jlevy/tbd cd tbd npm install npm start
# 命令行使用
tbd --help
# 基本用法
tbd [options] <input>
# Node.js 代码中使用
const tbd = require('tbd');
const result = await tbd.run(options);
console.log(result);
# tbd 配置说明 # 查看配置选项 tbd --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export TBD_CONFIG="/path/to/config.yml"
Task tracking, spec-driven planning, and knowledge injection for AI coding agents.
tbd (short for “To Be Done,” or “TypeScript beads” if you prefer) combines four things that are each powerful on their own but work even better together:
1. Task tracking (beads): Agent-friendly, CLI-native issue tracking for bugs, features, epics, and dependencies that persist across sessions in git. This alone is a step change in what agents can do. Beads are fantastic and unreasonably effective at scaling an agent’s capacity from ~5-10 ad-hoc tasks to hundreds of structured beads. 2. Spec-driven planning: Templates and workflows for writing specs, breaking them into beads, and implementing systematically. With a good spec and beads, you can leave an agent running overnight and come back to solid code. 3. Knowledge injection: Instant availability of in-depth engineering guidelines and rules docs. These are essentially “self-injected context” for an agent to get smarter when it needs it. 4. Shortcuts: Reusable instructions for common tasks like code review, PR creation, and writing planning specs, architecture docs, and research briefs.
tbd comes pre-installed with in-depth guidelines docs on many topics, including TypeScript and Python best practices and common agent pitfalls, red-green TDD, golden testing, Convex, monorepo project setup, error handling practices, and backward compatibility rules. (But you can use your own guidelines if you prefer.)
I use tbd most frequently in Claude Code since it’s most powerful as a skill, but it will work in Cursor, Codex, or any agent environment that can use the tbd CLI.
[!NOTE] For full technical details, see the reference docs (runtbd docs) or the full design doc (tbd design).
- Git-native: Beads live in your repo, synced to a separate, dedicated tbd-sync branch. Your code history stays clean—no bead churn polluting your logs. - Agent friendly: JSON output, simple commands that agents understand. Installs itself as a skill in Claude Code. - Markdown + YAML frontmatter: One file per bead, human-readable and editable. This eliminates most merge conflicts. - Beads alternative: Largely compatible with bd at the CLI level, but with a simpler architecture: no JSONL merge conflicts, no daemon modifying your working tree, no SQLite file locking on network filesystems (see FAQ: How does tbd compare to Beads?). - Shortcuts: Over a dozen reusable workflow documents—plan specs, code reviews, commit processes, PR creation, research briefs, and more. - Guidelines: 20+ guideline docs of coding rules and best practices (see Built-in Engineering Knowledge). - Templates: Document templates for planning specs, research briefs, architecture docs.
tbd dep add proj-b3m9 proj-a7k2 # b3m9 depends on a7k2
tbd blocked # Show blocked beads
tbd label add proj-a7k2 urgent backend
tbd label remove proj-a7k2 urgent
tbd label list # All labels in use
tbd search "authentication" # Search beads
Requirements: - Node.js 20+ - Git 2.42+ (for orphan worktree support)
npm install -g get-tbd@latest
```bash
tbd is designed for teams where one person sets up the project and others join later.
First contributor:
npm install -g get-tbd@latest
tbd setup --auto --prefix=proj # Short alphabetic prefix for issue IDs
git add .tbd/ .claude/ && git commit -m "Initialize tbd"
git push
Joining contributors:
git clone <repo>
npm install -g get-tbd@latest
tbd setup --auto # No --prefix needed—reads existing config
[!TIP] If running on your own machine, install thetbdCLI yourself:npm install -g get-tbd@latestThen tell your agent: “run tbd for instructions to set up this project” If running on a fresh cloud instance (like Claude Code Cloud), tell the agent: “install tbd (npm install -g get-tbd@latest) and run tbd prime for instructions to set up this project”
That’s it. Running tbd prime gives agents full workflow context on how to use tbd and how to help you. It will then bootstrap a SKILL.md into your project by running tbd setup --auto (which will add a .tbd directory and add itself to your .claude skills and hooks). And then it will use shortcuts to welcome you and get you started.
Running tbd with no arguments shows help with a prominent reminder for agents to run tbd prime.
You can then always ask questions like: “what can I do with tbd?”
You talk to your agent in natural language. The agent translates your requests into tbd commands.
The tbd CLI blends task tracking and context injection. Some tbd commands do things, like create or update beads, and some help the agent get status or context or knowledge and know what to do next:
| What you say | What happens | What runs |
|---|---|---|
| “Let’s plan a new feature that …” | Agent creates a spec from a template | [tbd shortcut new-plan-spec](packages/tbd/docs/shortcuts/standard/new-plan-spec.md) |
| “Break this spec into beads” | Agent creates implementation beads from the spec | [tbd shortcut plan-implementation-with-beads](packages/tbd/docs/shortcuts/standard/plan-implementation-with-beads.md) |
| “Implement these beads” | Agent works through beads systematically | [tbd shortcut implement-beads](packages/tbd/docs/shortcuts/standard/implement-beads.md) |
| “Create a bead for the bug where …” | Agent creates and tracks a bead | tbd create "..." --type=bug |
| “Let’s work on current beads” | Agent finds ready beads and starts working | tbd ready |
| “Review this code” | Agent performs comprehensive code review with all guidelines | [tbd shortcut review-code](packages/tbd/docs/shortcuts/standard/review-code.md) |
| “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) |
| “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) |
| “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) |
| “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) |
| “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) |
| “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) |
| “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) |
| “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) |
Under the hood, your agent runs these tbd commands automatically. You just talk naturally.
tbd bundles three types of documentation your agent can invoke on demand:
```bash
tbd guidelines --list # List all guidelines tbd guidelines typescript-rules # Get TypeScript rules
Yes. tbd comes with 20+ bundled guidelines, but you can add your own team’s docs from any URL:
tbd guidelines --add=<url> --name=my-team-rules
tbd shortcut --add=<url> --name=my-team-workflow
tbd template --add=<url> --name=my-team-template
You can also configure which docs are available in .tbd/config.yml. I put my favorite guidelines and shortcuts in by default, but you’re not locked into using them.
tbd setup --auto
tbd setup --auto configures SessionStart hooks that run at the beginning of each Claude Code session:
tbd prime—injects workflow context so the agent knows how to use tbdensure-gh-cli.sh—installs the GitHub CLI (gh) if not already availableGitHub authentication: For gh to work, set these environment variables before starting your agent session:
GH_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GH_PROMPT_DISABLED=1
Create a Personal Access Token (fine-grained recommended) with Contents and Pull requests read/write permissions. For Claude Code Cloud, set these in your project’s environment variables. For local CLI usage, add them to your shell profile (~/.zshrc or ~/.bashrc). See the setup-github-cli shortcut for details.
To disable automatic gh installation, pass --no-gh-cli during setup or set use_gh_cli: false in .tbd/config.yml under settings:.
tbd shortcut --list # List all shortcuts tbd shortcut new-plan-spec # Get the plan spec workflow
tbd was inspired by Beads by Steve Yegge, and I’m grateful for the idea—it genuinely changed how I work with agents. If you’re not familiar with Beads, the core insight is that git-native issue tracking raises an agent’s capacity for structured work from ~5-10 to-do items to hundreds of beads.
tbd builds on that foundation with a simpler architecture: plain Markdown files instead of JSONL, no daemon, no SQLite, no 4-way sync. This avoids the edge cases I ran into with network filesystems (Claude Code Cloud), merge conflicts, and multi-agent workflows.
If you already use Beads, tbd setup --from-beads migrates you to tbd. This imports and sets up your .tbd directory and preserves the IDs of all issues.
Scope: tbd focuses on the durable layer—issue tracking, specs, and knowledge that persist across sessions and live in git. It does not aim to solve real-time multi-agent coordination, which is a separate problem requiring sub-second messaging and atomic claims. Tools like Agent Mail and Gas Town address that space and are complementary to tbd—you could layer real-time coordination on top of tbd’s durable tracking. See the design doc for a detailed comparison.
tbd 是一个集任务追踪、规格驱动规划(spec-driven planning)与知识管理于一体的工具。它旨在通过结构化的方式,帮助开发者和 AI Agent 在项目开发过程中保持目标一致性,确保任务执行与设计文档同步。
tbd 具有原生 Git 支持,所有的任务记录(Beads)都存储在仓库中,并通过独立的 `tbd-sync` 分支进行同步,确保主代码提交历史的整洁。同时,它对 AI Agent 非常友好,提供 JSON 格式的输出和简洁的命令行指令,方便 Agent 理解上下文并执行任务。
在使用 tbd 进行依赖管理和标签操作时,请确保已安装相关依赖。你可以使用 `tbd dep add` 管理项目间的依赖关系,通过 `tbd label` 进行标签的添加与移除,并利用 `tbd search` 功能在 Beads 中快速检索特定内容(如 authentication)。
安装 tbd 非常简单。首先,确保你的环境满足 Node.js 20+ 和 Git 2.42+(需支持 orphan worktree)的要求。随后,通过 npm 全局安装最新版本:`npm install -g get-tbd@latest`。对于团队协作,首位贡献者需使用 `--prefix` 参数进行初始化设置,后续成员只需运行 `tbd setup --auto` 即可加入项目。
tbd 的核心理念是让开发者通过自然语言与 AI Agent 进行交互。Agent 会将你的需求转化为 `tbd` 命令。你可以直接对 Agent 说“让我们规划一个新功能”,Agent 会自动调用 `tbd` 来创建或更新 Beads,实现任务追踪与上下文注入的无缝结合。在云端环境(如 Claude Code Cloud)使用时,请先安装 tbd 并运行 `tbd prime`。
tbd 提供了丰富的文档包,包括快捷方式(Shortcuts)、指南(Guidelines)和模板(Templates),Agent 可以根据需要按需调用。通过 `tbd shortcut` 命令,你可以查看所有可用的工作流指令,例如 `new-plan-spec`,从而实现标准化的开发流程。
tbd 与 Claude Code 深度集成。通过 `tbd setup --auto`,系统会在每次 Claude Code 会话开始时配置 SessionStart 钩子:运行 `tbd prime` 以注入工作流上下文,让 Agent 掌握如何使用 tbd;同时通过 `ensure-gh-cli.sh` 自动检查并安装 GitHub CLI (`gh`),确保 Agent 具备完整的操作能力。
高质量的AI工作流项目,值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,AI工作流 在Agent工作流赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | tbd |
| 原始描述 | 开源AI工作流:Beads, planning, and knowledge injection for AI coding agents。⭐59 · TypeScript |
| Topics | AI工作流TypeScript |
| GitHub | https://github.com/jlevy/tbd |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端