agentsclimarketplace

Planning with beads

Skill davdittrich/planning-with-beads

Persistent task & knowledge management for AI agents via Beads system. Based on Manus context engineering principles.

Install
npx -y skills add davdittrich/planning-with-beads

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when writing any ticket, issue, PR description, or bug report. Mandatory when starting complex task (3+ steps), research, multi-session work, or any multi-agent handoff.

SKILL.md

8.2 KB, ~2.0k tokens by cl100k_base, as published. Nobody here has run it

Planning with Beads

Beads (bd) = structured memory on disk. Use for complex work.

Hermetic copy: approval-gate and no-bundling rules below also live in CLAUDE.md (always-on authoritative). Duplication is intentional (load-scope) — do not dedup.

🛑 Audience Router (READ FIRST)

Pick structure by audience. NEVER mix styles in one ticket.

AudienceStructureSection
Internal (Beads task, sub-agent, handoff)Hermetic 6-SectionTicket Architecture Standards
External (GitHub issue, PR description)What/Why/HowExternal Ticket Standards
Bug report (external)What/Why/How + ReproExternal Ticket Standards

Conflict default: internal Hermetic protocol wins.

🛑 MANDATORY: Create → Validate → Fix Loop

No internal ticket is "created" until scripts/validate-templates.sh <id> exits 0. Hard gate, not advice. A terse one-paragraph blob is an automatic FAIL — the standard is non-negotiable.

Run this loop for EVERY bd create / bd update of an internal task or epic:

  1. Read the template. templates/task_template.md (task) or templates/epic_template.md (epic). EVERY call — "I remember it" = FAIL. Templates evolve.
  2. Fill ALL sections verbatim. Task = the 6 literal headers (## I. Context & Objective## VI. Definition of Done) + a fenced ```toon schema block. Epic = the 4 headers. Every section populated with real content; no placeholders left from the template.
  3. bd create / bd update with that full body.
  4. Validate immediately: scripts/validate-templates.sh <id>.
  5. FAIL or exit≠0 → STOP. Rewrite body → bd update <id> --description "$(...)" → re-validate. Loop until green. Do NOT create the next ticket, announce completion, or enter plan-review-gate while any ticket is red.

Batch creates: validate EVERY id. One red ticket = the batch is unfinished.

Why? Sub-agents have "Goldfish Memory" — they lose context every ~50 turns. The Hermetic Ticket is the only way they get the logic, schema, and constraints to succeed without asking the orchestrator. The validate gate is what stops a summary-blob from masquerading as a hermetic ticket.

Core Rules

0. Hermetic Tickets (MANDATORY)

Ticket = hermetic env. All logic, schema, constraints inside. Output A → Output B without orchestrator intervention.

1. Epic First

Complex task? Create Epic FIRST. Use scripts/init-session.sh scaffold. Update Epic body using templates/epic_template.md.

2. Atomic Tasks

One task = one atomic ticket. NO bundles. Found bug? Create ticket NOW. Track every deviation.

3. 2-Action Rule

After 2 view/browser/search ops: save to Beads. bd comment (task).

4. Prime Before Decide

Major decision? Run bd prime. Refresh context. No stale goal.

5. Update After Act

Phase done? Update Beads. Log error. Note change file.

6. Verify Completion & Quality

  • Create/Update Task or Epic? Run the Create → Validate → Fix Loop. Ticket is not done until validate-templates.sh <id> exits 0.
  • Close Epic? Run scripts/check-complete.sh.

7. Global Invariants Only (bd remember)

Reserve bd remember strictly for permanent project-wide invariants (environment setup, architectural constraints). NEVER use bd remember for task research, code snippets, debug output, or transient discoveries—use bd comments add <id> or task descriptions instead.

8. active-plan.md = Pointer, Not Copy

active-plan.md carries ONLY a provenance header + epic/task IDs + exec order — NEVER restated ticket bodies; hermetic tickets are the sole source of WHAT/HOW. Keep the status: in-progress header so metaswarm recovery (orchestrated-execution:564) still fires. Recovery reload chain: active-plan.md IDs -> bd prime --work-type recovery + bd show <ids> re-derives full bodies from beads. This fills metaswarm's :529 placeholder (WU decomposition = the ID list) — not an override of the frozen recovery reader.

Ticket Architecture Standards

Internal tickets only. You = TPM & Architect. Every task MUST follow the 6 sections in templates/task_template.md.

SectionContentRequirement
I. Objective1 sentence In/Out.Mandatory
II. InputSource and Format.Mandatory
III. GuardsLogic, Format, Boundary.Mandatory
IV. LogicNumbered execution steps.Mandatory
V. SchemaStrict TOON block.Mandatory
VI. DoDVerification checklist.Mandatory

External Ticket Standards

GitHub issues, PR descriptions, bug reports. SYSTEM DIRECTIVE: STRICTLY enforce What/Why/How.

Execution Rules

  • Structure: Exclusively ## What, ## Why, ## How.
  • Approval Gate: Plan cannot be approved without planning-with-beads usage.
  • Tone (Neutrality): Factual, objective. ZERO marketing language or subjective superlatives.
  • Framing (Positive): Describe desired states, not just absence of errors.
  • Brevity: Max 1-3 sentences per paragraph.
  • Formatting: Bulleted lists for steps. References as Markdown links: [#123](url).
  • Terse: Drop articles (a/an/the) and filler. Keep technical terms exact.

Template

## What

  • Requirement: 1-3 sentences stating exact subject. Link to related issues/PRs and docs.
  • Example: Add dark mode support to web interface. Related to #789. Reference: CSS color-scheme.

## Why

  • Requirement: Context and motivation without subjective claims.
  • Example: Users require low-light alternative to reduce eye strain. Aligns with accessibility standards.

## How

  • Requirement: Concrete implementation steps. No abstract goals.
  • Example:
    • Add theme toggle component to navigation
    • Create CSS custom properties for color scheme
    • Implement system preference detection

Command Reference

GoalCommand
Setup Sessionscripts/init-session.sh "Goal"
Start Epicbd create "Title" --type epic --description "$(cat templates/epic_template.md)"
Add Taskbd create "Title" --parent <id> --description "$(cat templates/task_template.md)"
Validatescripts/validate-templates.sh <id>
Load Contextbd prime

Rationalization Table

ExcuseReality
"Too small"Task grow. 3+ step = Beads.
"I'll fill later"Info volatile. Save NOW.
"Summary is enough"FAIL. Sub-agent needs full context. READ template.
"I remember"No you don't. Context compaction will eat your goals.
"External, skip Beads"Plan still gated on planning-with-beads.
Internal task → What/Why/HowWRONG. Internal = Hermetic 6-Section.
External issue → 6-SectionWRONG. External = What/Why/How.

Red Flags - STOP

  • Mixing Hermetic and What/Why/How styles in one ticket.
  • Creating/Updating internal task WITHOUT reading templates/task_template.md.
  • bd create/bd update for an internal ticket NOT immediately followed by validate-templates.sh <id>. Auto-violation.
  • Proceeding (next ticket, completion claim, plan-review-gate) with any ticket where validate exits≠0.
  • 5+ call, no Beads task.
  • Task description < 10 lines (Missing Schema/Guards).
  • Validation script fails.
  • Marketing fluff in external ticket ("beautiful", "fast", "powerful").
  • Bundling multiple unrelated changes into one ticket.
  • Missing Markdown links for references (external).
  • Using bd remember for task-level research, debug output, or transient findings (Use bd comments add <id>).

5-Question Reboot

Lost context? Answer via bd ready, bd prime, bd show <id>.

What ships with it: 10 files

12.8 KB alongside SKILL.md, 3 of them executable

scripts/

Keep looking

Skills are one crate of 326,984. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.