AgentSkillsCN

beads-viewer

使用bv(Beads Viewer)进行图分析。用于分析任务图、查找阻塞点、获取建议、检查关键路径,或当用户提及“bv”、“图”、“依赖关系”或“我该做什么”时。

SKILL.md
--- frontmatter
name: beads-viewer
description: Graph analysis with bv (Beads Viewer). Use when analyzing the task graph, finding blockers, getting recommendations, checking critical path, or when the user mentions "bv", "graph", "dependencies", or "what should I work on".

Beads Viewer (bv)

Graph analysis layer for the Beads task graph. Precomputes metrics like PageRank and critical path.

When This Applies

SignalAction
"What should I work on?"bv --robot-triage
Need single best taskbv --robot-next
Multi-agent partitioningbv --robot-triage --robot-triage-by-track
Risk/hygiene checkbv --robot-alerts
Finding blockersbv --robot-blocker-chain

CRITICAL RULE

Always use --robot-* flags. Never run bare bv.

Bare bv launches a TUI that will hang AI agents.


Session Kickoff

bash
# Default (fast)
bv --robot-next                    # Single best next task

# Full triage bundle
bv --robot-triage                  # Blockers, quick wins, commands

Multi-Agent Partitioning

bash
# Split work by parallel tracks
bv --robot-triage --robot-triage-by-track

# Track details + what each task unblocks
bv --robot-plan

Risk & Hygiene

Use before starting "big" work:

bash
bv --robot-alerts                  # Stale issues, blocking cascades, drift
bv --robot-suggest                 # Duplicates, missing deps, cycle breaks

Debugging & Analysis

bash
# What changed recently?
bv --robot-diff --diff-since HEAD~5

# Historical state
bv --as-of HEAD~10 --robot-triage

# Blocker analysis
bv --robot-blocker-chain bd-123

# Impact analysis before refactor
bv --robot-impact path/to/file1,path/to/file2
bv --robot-file-relations path/to/core_file

Handoff / Audit Trail

bash
bv --robot-history --bead-history bd-123

Semantic Search

bash
bv --search "your query" --robot-search

Graph Metrics Explained

MetricMeaningUse For
PageRankFoundational blockersTasks that enable many others
BetweennessBottlenecksMust pass through these
Critical PathLongest dependency chainOverall timeline

Keeping bv Current

bash
bv --check-update && bv --update --yes

Quick Reference

bash
bv --robot-next              # Single best task (fast)
bv --robot-triage            # Full recommendations
bv --robot-triage --robot-triage-by-track   # Multi-agent
bv --robot-plan              # Execution order
bv --robot-alerts            # Risk signals
bv --robot-suggest           # Hygiene suggestions
bv --robot-blocker-chain ID  # Why is this blocked?

Anti-Patterns

Don'tWhy
Run bare bvLaunches TUI, hangs agent
Ignore --robot-alertsMiss stale/risky work
Skip before big workMiss blocking cascades

See Also

  • beads-cli/ — Task management with bd
  • advance/ — Full bead lifecycle (claiming, working, closing)