bernstein-plan

A tool for breaking a complex coding task into ordered stages and smaller steps in Bernstein. It can describe which stages depend on earlier work and wait for approval before agents begin.

In plain words
What is it for?
Use it to plan features such as authentication, split work between stages, and review the execution plan.
Why use it?
It makes large tasks easier to review and coordinate before implementation starts.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sipyourdrink-ltd/bernstein/bernstein-plan
Any agent
npx skills add sipyourdrink-ltd/bernstein --skill bernstein-plan
Clone the repo
git clone --depth 1 https://github.com/sipyourdrink-ltd/bernstein

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.00601
Opus 5 $0.00026 $0.00300
Sonnet 5 $0.00010 $0.00120
Haiku 4.5 $0.00005 $0.00060

Measured yesterday against content hash b1f48eba1d84, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bernstein-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/plan.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cursor-plugin/skills/bernstein-plan/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bernstein Plan Mode

Create structured execution plans that get human approval before agents start.

When to Use

  • User describes a complex feature: "implement user authentication with OAuth"
  • User wants to break down a large task into stages
  • User says "plan this out" or "create a plan for..."
  • User wants to review what agents will do before they start

Instructions

Creating a plan

  1. Analyze the user's request and decompose it into stages and tasks.
  2. Write a plan YAML file using this structure:
name: "{descriptive plan name}"
description: "{what this plan achieves}"
stages:
  - name: foundation
    steps:
      - goal: "Create database models for user and session"
        role: backend
        scope: small
        complexity: low
      - goal: "Add migration scripts"
        role: backend
        scope: tiny

  - name: implementation
    depends_on: [foundation]
    steps:
      - goal: "Implement OAuth2 flow with Google provider"
        role: backend
        scope: medium
        complexity: medium
      - goal: "Create login/signup UI components"
        role: frontend
        scope: medium

  - name: verification
    depends_on: [implementation]
    steps:
      - goal: "Write integration tests for auth flow"
        role: qa
        scope: medium
      - goal: "Security review of token handling"
        role: security
        scope: small
  1. Save the plan to plans/{plan-name}.yaml in the project root.
  2. Tell the user to execute it: bernstein run plans/{plan-name}.yaml

Or submit via API

  1. Run scripts/plan.sh submit plans/{plan-name}.yaml to submit for approval.
  2. The plan enters pending state - use /bernstein-approve to review and approve.
  3. Once approved, planned tasks promote to open and agents start picking them up.

Reviewing plans

  1. Run scripts/plan.sh list to see all plans and their status.
  2. Show the plan with stages, dependencies, and estimated cost/time.

Tips

  • Keep stages to 2-5 tasks each
  • Use depends_on to enforce ordering (foundation before implementation)
  • Assign appropriate roles: backend, frontend, qa, security, devops, docs
  • Mark risky tasks with complexity: high - they'll get more capable models
  • Foundation stages should be tiny or small scope

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 85 lines · 51 tokens per session scan A b1f48eba1d84

Subscribe to this mod's changes

bernstein-plan is a skill published in the GitHub repository sipyourdrink-ltd/bernstein (1,038 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 601 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

bug-triage

Triage bugs reported in chat/issues, search for duplicates, file or update GitHub issues with full context, and push fix PRs.

Untrivial-ai/agent-orchestrator · 33 tokens

ao-desktop-dev

Launch, restart, or troubleshoot the real AO Electron desktop app from this repository; run a checkout against isolated or real local AO data; combine PR branches for local UI review; and diagnose stale Electron processes, port conflicts, or preload bridge mismatches. Use whenever asked to run, open, show, or visually…

Untrivial-ai/agent-orchestrator · 88 tokens

using-ao

Catalog of the AO (Agent Orchestrator) ao CLI: spawning workers, managing sessions and projects, sending messages, controlling the shared browser, previewing pages, and daemon control. Use when using the ao CLI, spawning workers, or managing AO sessions in an AO workspace.

Untrivial-ai/agent-orchestrator · 62 tokens

agent-reach

MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X / 搜搜 X / 看看大家怎么评价 X / X 上有什么讨论 / research this topic。 Also MUST USE when user mentions any platform or shares any URL/链接: 小红书/xiaohongshu/xhs, Twitter/推特/X, B站/bilibili, Reddit, Facebook, Instagram…

Panniantong/Agent-Reach · 349 tokens

skill-audit

Audit codebases for quality, consistency, and broken patterns — use for pre-release or tech debt review.

nyldn/claude-octopus · 24 tokens

skill-context-detection

Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type.

nyldn/claude-octopus · 25 tokens