Communitygithub.com

bg-szy/TOP-SKILLS

Beads Viewer - 針對 Beads 專案的圖感知分流引擎。計算 PageRank、中介中心性、關鍵路徑與循環相依。AI 代理人請使用 --robot-* 參數。

TOP-SKILLS 是什麼?

BV (Beads Viewer) 是一個專為 Beads 專案設計的圖感知分流引擎,可從 `.beads/beads.jsonl` 檔案中計算出 9 種圖形指標(如 PageRank、中介中心性、HITS、關鍵路徑等),並產生確定性的建議與執行計畫。它同時提供人類可用的 TUI 瀏覽介面,以及專為 AI 代理人設計的 `--robot-*` 旗標模式,讓代理人能以結構化 JSON 取得專案瓶頸、熱點與依賴關係。BV 的核心優勢在於預先計算圖形指標,大幅降低代理人的上下文成本,並可明確標記循環相依等結構性錯誤。支援平台為任何使用 `bd` CLI 的 Beads 專案,且可與 Agent Mail 等協作工具整合。使用時務必加上 `--robot-*` 旗標,避免意外啟動互動式 TUI。

相容平台~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樞紐/權威二元性Epics 與工具類任務
關鍵路徑最長依賴鏈零寬裕的關鍵任務
特徵向量中心性透過鄰居的影響力策略性依賴
度中心性直接連線數量直接阻擋者/被阻擋者
密度邊與節點的比例專案耦合健康度
循環循環相依結構性錯誤(務必修復!)
拓撲排序有效的執行順序工作佇列基礎

兩階段分析

BV 使用非同步計算並設有超時:

  • 第一階段(即時): 度中心性、拓撲排序、密度
  • 第二階段(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>   # ETA 預測
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清單檢視(預設)
bKanban 看板
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

與代理人郵件整合

使用 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 過濾出準備好的工作

效能備註

  • 第一階段指標(度中心性、拓撲排序、密度):即時
  • 第二階段指標(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

相關技能