id: "optimize-agent-prompt"
kind: "skill"
name: "optimize-agent-prompt"
title: "Optimize Agent Prompt"
description: "Builds and improves Browserbase Agent API demos through an Autobrowse-style outer loop: run a fixed task, collect Agent messages and session logs, score the result, revise one system-prompt heuristic, and confirm convergence. Use when creating a Browserbase Agents demo or POC, optimizing an Agent system prompt, diagnosing flaky Agent runs, or applying auto-research/autobrowse to the Browserbase Agents API."
category: "ai-ml"
source:
  repository: "browserbase/skills"
  path: "skills/optimize-agent-prompt/SKILL.md"
  commit: "bac30e266488dc133cb8fa6d45638a05600acfe4"
  url: "https://github.com/browserbase/skills/tree/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt"
license:
  spdx: "MIT"
  from: "skills/optimize-agent-prompt/LICENSE.txt"
  redistributable: true
stars: 3756
updated_at: "2026-11-17T01:20:31Z"
score: 0.8746
rank: 59
files_count: 7
bytes: 26713
has_scripts: true
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T11:09:53Z"
  model: "claude-sonnet-5-5"
  score: 0.8746
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.8467
    smoke: "not_run"
    popularity: 0.5616
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 5
    instructions: 4
    safety: 4
    injection: 5
    references: 5
    overall: 8
    verdict: "feature"
    rationale: "The description names the job (optimizing Browserbase Agent system prompts) and when to use it. The workflow is concrete: init, run, inspect and report commands, a defined run directory layout, a one-change-per-iteration rule, and a convergence rule requiring an unchanged confirmation run. Every referenced file exists. It uses only an API key and local Node, and it caps messages to limit spend. Safety loses a point because it never says to confirm paid runs with the user. No injection."
  smoke:
    status: "not_run"
requires:
  tools: ["Bash", "Edit", "Glob", "Grep", "Read", "Write"]
  runtimes: ["node"]
  network: true
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "no"
    reasons: ["runs-bundled-code"]
    source: "derived"
  - client: "chat-mcp"
    status: "no"
    reasons: ["runs-bundled-code"]
    source: "derived"
files:
  - path: "LICENSE.txt"
    bytes: 1074
    sha256: "a7f98ba58237657d1f06d32903af0e4ef28a757eed4f0cd01c72191e4220083c"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/LICENSE.txt"
  - path: "SKILL.md"
    bytes: 5589
    sha256: "8d9d5636b89e2c78f94b7b992bf59d750f3d4fea6c0006bb4110e1e93e911a4a"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/SKILL.md"
  - path: "agents/openai.yaml"
    bytes: 232
    sha256: "9d1cf2e8ff4ea50d4eddf81cd4398dafd52fe93a4a24338cb812b6c7f59187f5"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/agents/openai.yaml"
  - path: "evals/evals.json"
    bytes: 2273
    sha256: "7ff38bc3a7b77916b80a7f0ad76dae3c48f8a0e42082c2f845a3c50011d8b577"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/evals/evals.json"
  - path: "references/api.md"
    bytes: 3052
    sha256: "29495333afd984e36060be02d401a117106ac956c90b4c335fe8b6a06c3d23d3"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/references/api.md"
  - path: "references/evaluation.md"
    bytes: 2375
    sha256: "386faf16be485ba385539b773789fafbf0bc23f8b24bc0cd041d60cf53191a42"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/references/evaluation.md"
  - path: "scripts/optimize_agent_prompt.mjs"
    bytes: 12118
    sha256: "005fd5811753599650ba4ee245c5c2f3596eff9769b9adecd87b628934db9c38"
    url: "https://raw.githubusercontent.com/browserbase/skills/bac30e266488dc133cb8fa6d45638a05600acfe4/skills/optimize-agent-prompt/scripts/optimize_agent_prompt.mjs"
alternates:
  - name: "prompt-optimize"
    repository: "gaasher/Agent-Loop-Skills"
    path: "loops/prompt-optimize/SKILL.md"
    commit: "f1169e6db0b0f8a83ced3a18562b7c57e14a748a"
    url: "https://github.com/gaasher/Agent-Loop-Skills/tree/f1169e6db0b0f8a83ced3a18562b7c57e14a748a/loops/prompt-optimize"
    license: "MIT"
    stars: 184
    score: 0.6988
    similarity: 1.0
    reason: "same name"
icon: "https://versatile.sh/avatars/browserbase.png"
