Skip to content
atomic-bead-filing logo

Atomic Bead Filing

atomic-bead-filing

Use when noticing something off (code smell, design smell, workaround) while working and want to capture it without losing flow - grounds observation in codebase and files a proper bead that future agents can execute

SKILL.md

Full skill instructions

Atomic Bead Filing

Overview

File beads that future agents can execute with zero shared context. You receive an observation, ground it in the codebase, and create a bead that stands alone.

When to Use

  • Main agent noticed something off while working
  • Need to capture it without derailing current task
  • Want a proper bead, not a vague note

Core Principle

A bead is good if a stranger-agent can execute it knowing ONLY:

  1. The bead's description
  2. The codebase (via search/​read)

They should NOT need: conversation history, the observer's context, or clarification.

Workflow

  1. Receive observation from main agent (you have conversation context)
  2. Explore codebase to ground it - find specific files, line numbers, patterns
  3. Ask questions via AskUserQuestion if genuinely unclear
  4. Determine actionability:
    • Clear path → actionable bead
    • Multiple valid approaches → add human-needed label, describe options
  5. File bead with bd create
  6. Sync with bd sync (just git commit isn't enough - beads live on beads-sync branch)
  7. Return bead ID + full bead details so main agent sees what was filed

Bead Structure

Title: Concise, grounded summary (not vague)

  • Bad: "Fix type issues"
  • Good: "RuleViolation missing priority field - Rust hardcodes HIGH"

Description: The concrete issue

## What's Wrong
[Specific problem - what IS off, grounded in files]

## Where
[Exact file paths, line numbers]

## Why It Matters
[What could go wrong, why this is tech debt]

## Files to Study
- path/​to/​file.rs (the problematic code)
- path/​to/​related.py (the other side of the mismatch)

Fields to set (run bd create --help to see all available):

FlagWhen to use
--type taskDefault. Use bug if actively broken, feature for new capability
--priorityP0 critical (security/​data loss), P1 high (bugs/​blockers), P2 medium, P3 low (polish), P4 backlog - default to your judgment based on impact
--labels human-neededMultiple valid approaches exist (see below)
--deps discovered-from:<id>Main agent was working on a specific bead
--acceptanceFill if obvious - what would "done" look like?
--designFill if obvious - brief notes on approach/​constraints

Fold context into description footer:

---
*Discovered while: [what triggered this observation]*

human-needed Label

Use when there are forks requiring human decision:

  • Multiple valid architectural approaches
  • Trade-offs that depend on priorities you don't know
  • Breaking changes vs. compatibility concerns

When using human-needed, add to description:

## Decision Needed
[Specific question]

## Options
1. **Option A**: [approach] - [pros/​cons]
2. **Option B**: [approach] - [pros/​cons]

What NOT to Do

  • Don't file vague beads ("look into this")
  • Don't propose fixes unless obvious (focus on WHAT is off)
  • Don't skip grounding (always find specific files)
  • Don't ask unnecessary questions (use conversation context + codebase)

Example

Input from main agent: "The severity is hardcoded in transform.rs. Noticed while adding analyzer endpoint."

Your process:

  1. Search for severity in transform.rs
  2. Find line 250: parse_severity("HIGH")
  3. Trace back - where should severity come from?
  4. Find RuleViolation struct doesn't have severity field
  5. Find Python RuleViolationDto DOES have priority field
  6. Ground the full issue

Output bead:

bd create "RuleViolation drops priority - Rust hardcodes HIGH severity" \
  --type task \
  --priority 1 \
  --acceptance "Rust RuleViolation receives and uses Python's computed priority" \
  --description "## What's Wrong
Rust transform hardcodes severity to HIGH, ignoring Python's computed priority.

Line 250 in transform.rs:
\`\`\`rust
let priority = parse_severity(\"HIGH\").unwrap_or(RuleSeverity::Medium);
\`\`\`

## Where
- oxide/​server/​src/​eval/​transform.rs:250 (hardcoded value)
- oxide/​server/​src/​eval_client.rs:165-173 (RuleViolation missing priority field)
- src/​app/​features/​evaluation/​contracts/​rules_contracts.py:62-75 (RuleViolationDto HAS priority)

## Why It Matters
Python evaluator computes actual priority per-violation, but Rust discards it. All violations appear HIGH priority regardless of actual severity. Silent data loss.

## Files to Study
- oxide/​server/​src/​eval/​transform.rs (the transform)
- oxide/​server/​src/​eval_client.rs (HTTP receive types)
- src/​app/​features/​evaluation/​contracts/​rules_contracts.py (Python source types)

---
*Discovered while: adding analyzer endpoint*"

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View