ensemble-implement-bead

ensemble-implement-bead is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 33 tokens per session (1,930 once invoked), scanned A, original, MIT.

A workflow for implementing one beads task, where a bead is a tracked work item identified by an ID.

In plain words
What is it for?
Use it to validate a bead, create a branch, analyze the repository, implement the requested change, run tests, update the bead, and open a pull request.
Why use it?
It keeps the task's status and progress visible while guiding the work from task lookup through coding, testing, and pull-request creation.

Skill for Claude CodeCodex

Part of the ensemble-codex plugin — 40 skills shipped together

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/fortiumpartners/ensemble/ensemble-implement-bead
Any agent
npx skills add FortiumPartners/ensemble --skill ensemble-implement-bead
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-codex, the plugin that ships this one along with the rest of its 40 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ensemble-implement-bead

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/ensemble-implement-bead.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/ensemble-implement-bead)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/ensemble-implement-bead"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/ensemble-implement-bead.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,930 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.00033 $0.01930
Opus 5 $0.00016 $0.00965
Sonnet 5 $0.00007 $0.00386
Haiku 4.5 $0.00003 $0.00193

Measured 5d ago against content hash 315f194c73b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ensemble-implement-bead 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 5d ago.

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/codex/.codex/skills/commands/ensemble-implement-bead/SKILL.md · 155 lines

How it starts

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

Ensemble Command: /ensemble:implement-bead

This Codex skill mirrors the Ensemble slash command /ensemble:implement-bead. Follow the workflow below, adapt to the current repository, and keep outputs structured.

Implement a single beads task identified by its bead ID. Fetches bead details, creates a feature branch, analyses the codebase, implements the required changes, runs tests, then closes the bead and creates a pull request.

Designed for focused single-task execution — use /ensemble:beads-build for multi-task epic-level orchestration. Records all state transitions in beads for cross-session visibility.

Key behaviors:

  • Validates bead exists and is not already closed before starting
  • Warns (does not halt) on dirty working directory
  • Derives branch name from bead title with bead/- prefix
  • Marks bead in_progress before implementing; closed on success
  • Records br comments at each state transition
  • Creates PR via gh pr create on completion

Workflow

Phase 1: Preflight

1. Argument Parsing Extract bead ID from arguments or prompt user if missing

  • Parse $ARGUMENTS: extract first token as BEAD_ID (e.g., "beads-042" or "42"); if $ARGUMENTS is empty, prompt user: "Please provide a bead ID (e.g., beads-042):" and store response as BEAD_ID
  • Normalise BEAD_ID: if numeric only (e.g., "42"), leave as-is — br accepts bare integers; store original input as BEAD_ID_RAW

2. Tool Availability Check Verify br is installed and functional

  • "which br || { echo 'ERROR: br (beads_rust) not installed. Install from https://github.com/Dicklesworthstone/beads_rust'; exit 1; }"
  • "br list --status=open > /dev/null 2>&1 || { echo 'ERROR: br not functional — check beads store'; exit 1; }"

3. Bead Validation Fetch bead details and verify it is actionable

  • Run: br show <BEAD_ID> — if exit code != 0 print "ERROR: Bead <BEAD_ID> not found." and EXIT
  • Parse bead fields from output: store BEAD_TITLE, BEAD_STATUS, BEAD_TYPE, BEAD_DESCRIPTION
  • If BEAD_STATUS == "closed": print "Bead <BEAD_ID> is already closed." and EXIT
  • Print bead summary: "Bead: <BEAD_ID> | Status: <BEAD_STATUS> | Type: <BEAD_TYPE> | Title: <BEAD_TITLE>"

Read the full file on GitHub · 155 lines

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. 5d ago First seen · 155 lines · 33 tokens per session scan A 315f194c73b4

Subscribe to this mod's changes

ensemble-implement-bead is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 1,930 once invoked, about $0.0002 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

saas-auth

Implement production-ready authentication for SaaS applications including email/password, OAuth social login, session management, and security best practices. This skill covers the complete auth lifecycle from signup through password recovery.

TheWayWithin/agent-11 · 3 tokens

saas-payments

Implement production-ready payment processing with Stripe including one-time payments, recurring subscriptions, customer portal, metered billing, and webhook handling. This skill covers the complete billing lifecycle from checkout through subscription management.

TheWayWithin/agent-11 · 4 tokens

saas-analytics

Implement product analytics for understanding user behavior, tracking key metrics, and making data-driven decisions. Covers event tracking, user identification, cohort analysis, and integration with analytics platforms like PostHog, Mixpanel, or custom solutions.

TheWayWithin/agent-11 · 4 tokens

saas-onboarding

Implement effective user onboarding flows that drive activation and reduce churn. Covers setup wizards, progress checklists, contextual tooltips, and tracking of key activation milestones. Focus on getting users to their "aha moment" quickly.

TheWayWithin/agent-11 · 4 tokens

saas-billing

Implement subscription lifecycle management, plan enforcement, usage tracking, and billing operations. Covers trial periods, plan changes, quota enforcement, and subscription status synchronization with payment providers.

TheWayWithin/agent-11 · 4 tokens

saas-email

Implement reliable transactional email delivery for SaaS applications including templating, queuing, delivery tracking, and provider abstraction. Covers common email types: welcome, verification, password reset, notifications, and invoices.

TheWayWithin/agent-11 · 3 tokens