Bernstein bernstein-plan
install
source · Clone the upstream repo
git clone https://github.com/chernistry/bernstein
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/chernistry/bernstein "$T" && mkdir -p ~/.claude/skills && cp -r "$T/packages/cursor-plugin/skills/bernstein-plan" ~/.claude/skills/chernistry-bernstein-bernstein-plan && rm -rf "$T"
manifest:
packages/cursor-plugin/skills/bernstein-plan/SKILL.mdsource content
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
- Analyze the user's request and decompose it into stages and tasks.
- 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
- Save the plan to
in the project root.plans/{plan-name}.yaml - Tell the user to execute it:
bernstein run plans/{plan-name}.yaml
Or submit via API
- Run
to submit for approval.scripts/plan.sh submit plans/{plan-name}.yaml - The plan enters
state — usepending
to review and approve./bernstein-approve - Once approved, planned tasks promote to
and agents start picking them up.open
Reviewing plans
- Run
to see all plans and their status.scripts/plan.sh list - Show the plan with stages, dependencies, and estimated cost/time.
Tips
- Keep stages to 2-5 tasks each
- Use
to enforce ordering (foundation before implementation)depends_on - Assign appropriate roles: backend, frontend, qa, security, devops, docs
- Mark risky tasks with
— they'll get more capable modelscomplexity: high - Foundation stages should be
ortiny
scopesmall