smithery.ai

braintrust

Runtime-agnostic adapter for the shared Braintrust prompt CLI. Use for prompt listing, retrieval, invoke/testing, diff/update, and promotion.

First seen Apr 2, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(python3 */bt_cli.py *)
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,325 B
  • docs SUMMARY.md 240 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Braintrust Prompt Management

This skill is a runtime-agnostic adapter for the shared CLI engine at skills/braintrust/bt_cli.py.

  • Codex/shell command: ./braintrust <command>
  • Claude runtime command: /braintrust <command>

Both call the same core engine.

Canonical Commands

Command Description Side Effects
list List prompts None
get --slug X View prompt details None
invoke --slug X --input '{...}' Run prompt with tracing Creates trace
diff --slug X --system "..." Preview message changes None
update --slug X --system "..." Apply message changes Modifies prompt
test --slug X --input '{...}' [--system "..."] Simple run or A/B test May create/promote/delete v2
promote --from X --to Y Copy X content into Y Modifies Y

Extended commands: create, delete, generate.

Usage

./braintrust list
./braintrust get --slug "my-prompt"
./braintrust invoke --slug "my-prompt" --input '{"question":"test"}'
./braintrust diff --slug "my-prompt" --system "New content"
./braintrust update --slug "my-prompt" --system "New content"
./braintrust test --slug "my-prompt" --input '{"q":"test"}' --system "New instructions" --force
./braintrust promote --from "my-prompt-v2" --to "my-prompt" --force

Non-Interactive Mode

Commands with confirmation prompts (test in A/B mode, promote, delete) support --force (-y). Use --force for automation and Claude Code execution.

Environment

BRAINTRUST_API_KEY=sk-your-api-key        # Required
BRAINTRUST_PROJECT_NAME=Your_Project_Name # Optional default project

The braintrust Python SDK is required for invoke and test:

pip install braintrust

Key Rules

  1. Always run diff before update.
  2. Use --force in non-interactive/automated workflows.
  3. Use A/B test mode for significant prompt changes.
  4. Keep prompt slugs explicit and versioned (my-prompt-v2).

Reference

See [reference.md](reference.md) for detailed examples and command options.