beads-viewer

Beads Viewer - Graph-aware triage engine for Beads projects. Computes PageRank, betweenness, critical path, and cycles. Use when triaging beads tasks, analyzing dependency graphs, finding bottlenecks, detecting circular dependencies, planning parallel execution tracks, or generating sprint burndown data.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "beads-viewer" with this command: npx skills add oakoss/agent-skills/oakoss-agent-skills-beads-viewer

Beads Viewer

Overview

Beads Viewer (BV) is a graph-aware triage engine for Beads projects (.beads/beads.jsonl). It computes 9 graph metrics, generates execution plans, and provides deterministic recommendations.

When to use: Triaging beads tasks, analyzing dependency graphs, finding bottlenecks, detecting circular dependencies, planning parallel execution tracks, generating sprint burndown data, comparing historical project states.

When NOT to use: Parsing raw beads.jsonl directly (BV pre-computes graph metrics), simple bead CRUD operations (use bd CLI instead), projects without .beads/beads.jsonl.

CapabilityRaw beads.jsonlBV Robot Mode
Query"List all issues""List the top 5 bottlenecks blocking the release"
Context CostHigh (linear with issue count)Low (fixed summary struct)
Graph LogicAgent must computePre-computed (PageRank, betweenness, cycles)
SafetyAgent might miss cyclesCycles explicitly flagged

Quick Reference

CommandPurposeKey Points
bv --robot-triageFull triage with recommendationsStart here; includes quick_wins and blockers
bv --robot-nextSingle top pick with claim commandMinimal context cost
bv --robot-planParallel execution tracksFaster than --robot-insights
bv --robot-insightsFull graph metrics (all 9)Check status field; expensive
bv --robot-priorityPriority misalignment detectionFlags misprioritzed items
bv --robot-alertsStale issues, blocking cascadesProactive health checks
bv --robot-suggestHygiene: duplicates, missing depsIncludes cycle break suggestions
bv --robot-graphDependency graph exportJSON, DOT, or Mermaid format
bv --recipe <name> --robot-<cmd>Pre-filter before any robot commandRecipes: actionable, high-impact, bottlenecks
bv --robot-triage --label <name>Scope to label subgraphReduces noise for focused analysis

CRITICAL: Never run bare bv from an agent session. It launches an interactive TUI that blocks the session. Always use --robot-* flags.

The 9 Graph Metrics

MetricWhat It MeasuresKey Insight
PageRankRecursive dependency importanceFoundational blockers
BetweennessShortest-path trafficBottlenecks and bridges
HITSHub/Authority dualityEpics vs utilities
Critical PathLongest dependency chainKeystones with zero slack
EigenvectorInfluence via neighborsStrategic dependencies
DegreeDirect connection countsImmediate blockers/blocked
DensityEdge-to-node ratioProject coupling health
CyclesCircular dependenciesStructural errors (must fix!)
Topo SortValid execution orderWork queue foundation

Metrics compute in two phases: Phase 1 (degree, topo sort, density) is instant; Phase 2 (PageRank, betweenness, HITS, eigenvector, cycles) has a 500ms timeout. Always check the status field in output.

Built-in Recipes

RecipePurpose
defaultAll open issues sorted by priority
actionableReady to work (no blockers)
high-impactTop PageRank scores
blockedWaiting on dependencies
staleOpen but untouched for 30+ days
triageSorted by computed triage score
quick-winsEasy P2/P3 items with no blockers
bottlenecksHigh betweenness nodes

Robot Output Structure

All robot JSON output includes these standard fields:

FieldPurpose
data_hashFingerprint of beads.jsonl for verifying consistency
statusPer-metric state: computed, approx, timeout, or skipped
as_of / as_of_commitPresent when using --as-of for time travel queries

Key output sections by command:

  • --robot-triage: quick_ref, recommendations, quick_wins, blockers_to_clear, project_health, commands
  • --robot-insights: bottlenecks, keystones, influencers, hubs, authorities, cycles, clusterDensity
  • --robot-plan: plan.tracks (parallel work streams), plan.summary.highest_impact

Common Mistakes

MistakeCorrect Pattern
Running bare bv from an agent sessionAlways use --robot-* flags; bare bv launches an interactive TUI that blocks the agent
Ignoring the status field in robot outputAlways check per-metric status; large graphs may have approx or skipped metrics due to 500ms timeout
Using --robot-insights when only the next task is neededUse --robot-next for a single top pick or --robot-triage for quick recommendations; insights is expensive
Not checking for cycles before starting implementationRun bv --robot-insights and check .cycles first; circular dependencies are structural errors that must be resolved
Parsing stderr as JSON dataOnly stdout contains JSON; diagnostics and warnings go to stderr
Stale metrics after bead changesCheck data_hash field; results are cached by beads.jsonl fingerprint
Wrong recommendations for current workUse --recipe actionable to filter to only unblocked, ready-to-work items

Delegation

  • Analyze project dependency health and bottlenecks: Use Task agent to run BV robot commands and summarize graph metrics
  • Plan sprint work from triage output: Use Plan agent to interpret triage recommendations and build execution tracks
  • Search for related beads context: Use Explore agent to investigate bead descriptions and find implementation patterns

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

playwright

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ui-ux-polish

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

tanstack-form

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

find-skills

No summary provided by upstream source.

Repository SourceNeeds Review