Communitygithub.com

bg-szy/TOP-SKILLS

Beads Viewer - 针对 Beads 项目的图感知分类引擎。支持 PageRank、介数、关键路径和循环检测。使用 --robot-* 标志供 AI 代理使用。

TOP-SKILLS 是什么?

Beads Viewer (BV) 是一个专为 Beads 项目设计的图感知分类引擎,可从 .beads/beads.jsonl 文件中计算 9 种图形指标,包括 PageRank、介数、关键路径和循环检测。它通过确定性算法提供可重复的推荐,避免 AI 代理直接解析原始 JSON 文件时的上下文成本和错误风险。BV 支持人类终端 TUI 和 AI 代理机器人模式(使用 --robot-* 标志),实现自动分类、执行计划生成和深度洞察。对于大型图(超过 500 个节点),它采用两阶段异步计算(即时和 500 毫秒超时),并通过 data_hash 缓存结果以确保一致性,是开发者和 AI 代理高效管理 Beads 项目依赖关系的关键工具。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bg-szy/TOP-SKILLS/tree/HEAD/skills/marketplace/bv

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

BV - Beads Viewer

一款针对 Beads 项目(.beads/beads.jsonl)的图感知分类引擎。可计算 9 种图指标、生成执行计划并提供确定性建议。提供人类 TUI(终端用户界面)用于浏览;提供机器人标志供 AI 代理使用。

为什么选择 BV 而非原始 Beads

能力原始 beads.jsonlBV 机器人模式
查询"列出所有问题""列出阻碍发布的 5 大瓶颈"
上下文成本高(与问题数量线性相关)低(固定摘要结构)
图逻辑代理必须自行计算预计算(PageRank、介数、循环)
安全性代理可能遗漏循环循环被明确标记

使用 BV 代替直接解析 beads.jsonl。它能确定性地计算图指标。

关键:面向代理的机器人模式

切勿直接运行 bv。它会启动一个会阻塞会话的交互式 TUI。

请始终使用 --robot-* 标志:

bv --robot-triage        # 大命令:从此处开始
bv --robot-next          # 最小化:仅单个优先级最高的选择
bv --robot-plan          # 并行执行路径
bv --robot-insights      # 完整图指标

9 种图指标

BV 计算这些指标以揭示隐藏的项目动态:

指标衡量内容关键洞察
PageRank递归依赖重要性根本性阻塞点
介数最短路径流量瓶颈和桥梁
HITS枢纽/权威二元性史诗任务与实用任务
关键路径最长依赖链零松弛关键点
特征向量通过邻居的影响战略依赖
度直接连接数直接阻塞/被阻塞
密度边与节点比率项目耦合健康度
循环循环依赖结构错误(必须修复!)
拓扑排序有效执行顺序工作队列基础

两阶段分析

BV 使用带超时的异步计算:

  • 阶段 1(即时): 度、拓扑排序、密度
  • 阶段 2(500 毫秒超时): PageRank、介数、HITS、特征向量、循环

始终检查输出中的 status 字段。对于大型图(超过 500 个节点),某些指标可能为 approx(近似)或 skipped(跳过)。

机器人命令参考

分类与规划

bv --robot-triage              # 完整分类:建议、快速胜利、待清除阻塞
bv --robot-next                # 包含认领命令的单个优先级最高选择
bv --robot-plan                # 带有解除阻塞列表的并行执行路径
bv --robot-priority            # 优先级错位检测

图分析

bv --robot-insights            # 完整指标:PageRank、介数、HITS、循环等
bv --robot-label-health        # 每个标签的健康状态:healthy(健康)|warning(警告)|critical(严重)
 bv --robot-label-flow          # 跨标签依赖流矩阵
bv --robot-label-attention     # 按注意力排序的标签

历史与变更

bv --robot-history             # Bead 到提交的关联
bv --robot-diff --diff-since <ref>  # 自某个引用以来的变更

其他命令

bv --robot-burndown <sprint>   # Sprint 燃尽图、范围变更
bv --robot-forecast <id|all>   # 预计完成时间预测
bv --robot-alerts              # 过时问题、阻塞级联
bv --robot-suggest             # 健康检查:重复项、缺失依赖、循环中断
bv --robot-graph               # 依赖图导出(JSON、DOT、Mermaid)
bv --export-graph <file.html>  # 自包含的交互式 HTML 可视化

范围限定与过滤

bv --robot-plan --label backend              # 限定到标签的子图
bv --robot-insights --as-of HEAD~30          # 历史时间点
bv --recipe actionable --robot-plan          # 预过滤:可执行工作
bv --recipe high-impact --robot-triage       # 预过滤:最高 PageRank
bv --robot-triage --robot-triage-by-track    # 按并行工作流分组
bv --robot-triage --robot-triage-by-label    # 按领域分组

内置配方

配方用途
default所有按优先级排序的待办问题
actionable可执行工作(无阻塞)
high-impact最高 PageRank 分数
blocked等待依赖项的问题
stale超过 30 天未修改的问题
triage按计算出的分类分数排序
quick-wins无阻塞的简单 P2/P3 项
bottlenecks高介数节点

机器人输出结构

所有机器人 JSON 包含:

  • data_hash - beads.jsonl 的指纹(验证一致性)
  • status - 每个指标的状态:computed(已计算)|approx(近似)|timeout(超时)|skipped(跳过)
  • as_of / as_of_commit - 使用 --as-of 时出现

--robot-triage 输出

{
  "quick_ref": { "open": 45, "blocked": 12, "top_picks": [...] },
  "recommendations": [
    { "id": "bd-123", "score": 0.85, "reason": "解除 5 个任务的阻塞", "unblock_info": {...} }
  ],
  "quick_wins": [...],
  "blockers_to_clear": [...],
  "project_health": { "distributions": {...}, "graph_metrics": {...} },
  "commands": { "claim": "bd claim bd-123", "view": "bv --bead bd-123" }
}

--robot-insights 输出

{
  "bottlenecks": [{ "id": "bd-123", "value": 0.45 }],
  "keystones": [{ "id": "bd-456", "value": 12.0 }],
  "influencers": [...],
  "hubs": [...],
  "authorities": [...],
  "cycles": [["bd-A", "bd-B", "bd-A"]],
  "clusterDensity": 0.045,
  "status": { "pagerank": "computed", "betweenness": "computed", ... }
}

jq 快速参考

bv --robot-triage | jq '.quick_ref'                        # 概览摘要
bv --robot-triage | jq '.recommendations[0]'               # 最高优先级建议
bv --robot-plan | jq '.plan.summary.highest_impact'        # 最佳解除阻塞目标
bv --robot-insights | jq '.status'                         # 检查指标就绪状态
bv --robot-insights | jq '.cycles'                         # 循环依赖(必须修复!)
bv --robot-label-health | jq '.results.labels[] | select(.health_level == "critical")'

代理工作流模式

# 1. 从分类开始
TRIAGE=$(bv --robot-triage)
NEXT_TASK=$(echo "$TRIAGE" | jq -r '.recommendations[0].id')

# 2. 首先检查循环(结构错误)
CYCLES=$(bv --robot-insights | jq '.cycles')
if [ "$CYCLES" != "[]" ]; then
  echo "先修复循环:$CYCLES"
fi

# 3. 认领任务
bd claim "$NEXT_TASK"

# 4. 处理任务...

# 5. 完成后关闭
bd close "$NEXT_TASK"

TUI 视图(面向人类)

交互式运行 bv 时(不适用于代理):

键视图
l列表视图(默认)
b看板视图
g图视图(依赖 DAG)
E树视图(父子层次结构)
i洞察仪表板(6 面板指标)
h历史视图(Bead 到提交关联)
a可执行计划(并行路径)
f流矩阵(跨标签依赖)
]注意力视图(标签优先级排名)

与 bd CLI 集成

BV 从 bd CLI 创建的 .beads/beads.jsonl 读取数据:

bd init                    # 在项目中初始化 Beads
bd create "任务标题"     # 创建 Bead
bd list                    # 列出 Beads
bd ready                   # 显示可执行的 Beads
bd claim bd-123            # 认领 Bead
bd close bd-123            # 关闭 Bead

与 Agent Mail 集成

使用 Bead ID 作为线程 ID 进行协调:

file_reservation_paths(..., reason="bd-123")
send_message(..., thread_id="bd-123", subject="[bd-123] 开始...")

图导出格式

bv --robot-graph                              # JSON(默认)
bv --robot-graph --graph-format=dot           # Graphviz DOT
bv --robot-graph --graph-format=mermaid       # Mermaid 图
bv --robot-graph --graph-root=bd-123 --graph-depth=3  # 子图
bv --export-graph report.html                 # 交互式 HTML

时间旅行

与历史状态进行比较:

bv --as-of HEAD~10                    # 10 次提交前
bv --as-of v1.0.0                     # 在标签处
bv --as-of "2024-01-15"               # 在特定日期
bv --robot-diff --diff-since HEAD~30  # 最近 30 次提交中的变更

常见陷阱

问题修复
TUI 阻塞代理仅使用 --robot-* 标志
过时指标检查 status 字段,结果由 data_hash 缓存
遗漏循环运行 --robot-insights,检查 .cycles
错误建议使用 --recipe actionable 过滤到可执行工作

性能说明

  • 阶段 1 指标(度、拓扑、密度):即时
  • 阶段 2 指标(PageRank、介数等):500 毫秒超时
  • 结果由 data_hash 缓存
  • 在速度优先时,优先选择 --robot-plan 而非 --robot-insights

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

bg-szy/TOP-SKILLS

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

bg-szy/TOP-SKILLS

Fill out Microsoft Azure Landing Zone (ALZ) Accelerator checklists by interviewing the user, mapping their Azure subscriptions, integrating IP addressing documentation, and applying Microsoft Cloud Adoption Framework best practices. Produces a completed Excel checklist (.xlsx) ready for ALZ deployment. Use this skill whenever the user mentions Azure Landing Zone, ALZ checklist, landing zone accelerator, platform landing zone configuration, ALZ bootstrap, hub-and-spoke setup, Azure network topology planning, or wants to fill out any ALZ-related checklist or configuration file. Also trigger when the user uploads an Excel file that contains tabs like "Accelerator - Bootstrap", "Accelerator - Bicep", or "Accelerator - Terraform".

bg-szy/TOP-SKILLS

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

bg-szy/TOP-SKILLS

Write high-converting landing page copy using proven frameworks like PAS (Problem-Agitate-Solution), AIDA, and StoryBrand. Creates headlines, value propositions, CTAs, and full page sections optimized for conversion. Use when users need landing page copy, sales page content, or marketing website text.

bg-szy/TOP-SKILLS

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

bg-szy/TOP-SKILLS

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

bg-szy/TOP-SKILLS

CI red? Call us. Pipeline fire brigade deploys. Use when user mentions CI failures, build errors, test failures, or pipeline issues. Do NOT load for: local builds, standard implementation work, reviews, or setup.

bg-szy/TOP-SKILLS

CASS Memory System - procedural memory for AI coding agents. Three-layer cognitive architecture with confidence decay, anti-pattern learning, cross-agent knowledge transfer, trauma guard safety system. Bun/TypeScript CLI.

bg-szy/TOP-SKILLS

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

bg-szy/TOP-SKILLS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

bg-szy/TOP-SKILLS

Use when the user asks to "pre-launch check the landing page", "run a Quality-Score preflight", or "verify ad-to-page message match before launch"; produces an ad↔page continuity report — message-match gaps, above-the-fold check, page-speed read, form-friction count, mobile-render flags — as a pass/fix punch list. Not for redesigning or rewriting the page — use landing-optimizer; not for scoring the account or the RQS — use ad-account-auditor. 落地页体验预检/广告落地页一致性检查

bg-szy/TOP-SKILLS

Use when the user asks to "optimize our landing page for influencer traffic", "fix our promo-code landing page", or "improve conversion from a creator campaign"; produces a message-match audit, page-structure and social-proof recommendations, a promo-code/CTA conversion plan, and an A/B test roadmap. Not for measuring campaign results after launch — use performance-analyzer.

bg-szy/TOP-SKILLS

Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, critique or improve a landing page, sales page, opt-in page, product page or checkout flow, when conversion rate is low, when paid traffic is not converting, or when someone asks "why isn't this page converting" or wants a CRO / landing page review.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Account assets, equity and fund positions, P&L, cash flow records, account statements, margin ratios, buy-power estimates, order management, and DCA recurring investments via Longbridge (most require Trade permission). Frameworks: portfolio diagnosis, rebalancing, asset allocation, risk analysis (VaR/CVaR), performance attribution, and tax-loss harvesting. Triggers: "持仓", "账户", "盈亏", "资产", "对账单", "下单", "买入", "卖出", "撤单", "定投", "组合诊断", "再平衡", "资产配置", "风险分析", "绩效归因", "税损收割", "持倉", "賬戶", "盈虧", "對賬單", "下單", "買入", "賣出", "組合診斷", "再平衡", "稅損收割", "positions", "portfolio", "P&L", "order", "buy", "sell", "DCA", "statement", "risk analysis", "rebalancing", "tax harvesting", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

bg-szy/TOP-SKILLS

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

bg-szy/TOP-SKILLS

Process video files with audio extraction, format conversion (mp4, webm), and Whisper transcription. Use when user mentions video conversion, audio extraction, transcription, mp4, webm, ffmpeg, or whisper transcription.

bg-szy/TOP-SKILLS

Using the Wonda CLI to generate images, videos, music, and audio from the terminal — plus LinkedIn, Reddit, and X/Twitter research and automation

相关技能