ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 ASRagab

pr-pane

讓 open pull request 只要按一次鍵就能存取的 Claude Code 外掛。**僅限 Claude Code**,需要 2.1.287 或更新版本。

ASRagab@ASRagab

ASRagab/asragab-claude-marketplace/tree/main/plugins/pr-pane

已翻譯

關於這個 mod

/prs 可切換提示列上方的狀態帶,列出跨儲存庫的 open PR。整個 PR 描述會帶上狀態顏色:紅色 ✗ 表示未解決的留言或要求修改,藍色 ✓ 表示已核准,橘色 ● 表示需要 review,暗色文字中的 `○ 表示 draft。Draft 優先;未解決的 review thread 優先於核准。已解決的 thread 和歷史留言不會讓 PR 變紅。

按 Ctrl+X,再按 Tab 可將焦點移到狀態帶;方向鍵或 Tab 在控制項之間移動,Enter 會在瀏覽器中開啟 PR(macOS 使用 open,Linux 使用 xdg-open)。狀態帶取得焦點時,r 按儲存庫排序,s 按狀態排序,d 按最後更新日期排序。一次只會啟用一種排序模式;儲存庫/狀態群組依最近更新時間由新到舊排列。預設狀態順序是 feedback、approved、needs review、draft。每頁最多顯示 8 列;p/n 切換頁面。如果其他狀態帶輸出讓繪圖區域溢位,方向鍵可以捲動,Tab 仍可移動焦點。Esc 返回提示列並保留狀態帶;/prs 將它隱藏。狀態帶不設定背景色,survey 進行時會讓出空間。

PR 內容上方和下方的暗色水平線會在視覺上將它分隔,同時保留預設背景。較小的狀態帶會縮小頁面尺寸,為水平線留出空間。

不需要設定。GitHub 使用者就是目前 gh 登入的使用者。背景輪詢會在啟動時、每 60 秒,以及顯示狀態帶時執行;更新通常會在 1 分鐘加上 API 延遲內出現。標題會顯示 open PR 數量和上次成功重新整理的時間。重新整理失敗時保留上一次正常的清單,並在狀態帶中顯示錯誤。如果缺少 gh 或尚未登入,會提示執行 `gh auth login。清單包含最近更新的 100 個 PR;如果還有更多,標題會顯示實際總數。

# Run the mod's tests (no network, no API key)
claude plugin test plugins/pr-pane

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add ASRagab/asragab-claude-marketplace
claude plugin install pr-pane
原文 / README

asragab-claude-marketplace

A Claude Code plugin marketplace containing plugins for session search/analytics, skill evaluation, Claude Code mod development, and a PR picker mod.

Plugins

| Plugin | Version | Description | |--------|---------|-------------| | cass | 0.3.0 | Cross-agent session search, context, analytics, export, learnings, and session resume powered by CASS CLI | | skill-eval | 1.0.0 | Automated skill/prompt/tool evaluation and improvement via session log analysis and autoresearch optimization | | mod-forge | 0.2.0 | Build and verify Claude Code mods in isolated child processes, never in the live session (Claude Code 2.1.287+) | | pr-pane | 0.2.0 | /prs toggles a band above the prompt with your open GitHub PRs and review state; arrows and Enter open one in the browser (Claude Code 2.1.287+, needs gh) |

Installation

1. Add the marketplace

claude plugin marketplace add https://github.com/ASRagab/asragab-claude-marketplace

2. Install plugins

# Install by name (use plugin@marketplace to disambiguate)
claude plugin install cass
claude plugin install skill-eval
claude plugin install mod-forge
claude plugin install pr-pane

Prerequisites

  • Claude Code CLI
  • Bun runtime (required by skill-eval scripts)
    • To run bun run test, first run bun install in plugins/skill-eval/scripts (installs @anthropic-ai/sdk).
  • GitHub CLI (gh), logged in with gh auth login (required by pr-pane)
  • CASS CLI v0.3.0+ (required by cass plugin)

cass

Cross-agent session search, context loading, token analytics, session export, session resume, and learning synthesis powered by CASS (Coding Agent Session Search). Searches across Claude Code, Codex, Cursor, Gemini CLI, Copilot, and 14+ other agents.

Recipes default to token-efficient output (--robot-format toon --fields summary --max-tokens 1600). The plugin's SessionStart hook surfaces the CASS index health, recommended next action, and a CASS_OUTPUT_FORMAT=toon advisory.

Skills

/cass:session-search

Search across all indexed coding agent sessions. Supports lexical (BM25), semantic (vector), and hybrid search modes.

cass search "authentication flow" --mode hybrid --robot-format toon --fields summary --max-tokens 1600 --limit 10
cass search "error" --days 30 --aggregate agent --limit 1 --max-content-length 100 --robot-format toon

/cass:session-context

Load relevant past session context for the current task, file, or project.

cass sessions --current --robot-format toon
cass timeline --since 7d --json --group-by day

/cass:session-analytics

Analyze session history for usage patterns, token consumption, and tool efficiency.

cass analytics tokens --days 7 --group-by day --json
cass analytics tools --limit 20 --json

/cass:session-export

Export sessions to markdown, text, JSON, HTML, or self-contained encrypted HTML.

cass export <session_path> -o conversation.md
cass export-html <session_path> --encrypt --password "secret" --filename report.html

/cass:session-learnings

Extract patterns, recurring issues, and actionable lessons from past sessions.

cass search "error fix bug" --mode hybrid --robot-format toon --fields summary --max-tokens 1600 --limit 20
cass analytics tools --limit 20 --json

/cass:session-resume ★ NEW v0.3.0

Resolve a session into a ready-to-run launch command for its native harness (Claude Code, Codex, OpenCode, pi_agent, Gemini). Triggered by phrases like "resume that session", "pick up where I left off", "continue the X session".

cass resume "$(cass sessions --current --json | jq -r '.sessions[0].path')" --json

/cass:session-maintenance

Diagnose, repair, and maintain CASS installation, index, analytics, and remote sources.

cass health --json
cass doctor --fix
cass index --full --json

skill-eval

A four-stage pipeline for identifying friction in coding agent sessions and iteratively optimizing skills, prompts, and tools. Inspired by Karpathy's autoresearch pattern.

Skills

The stages run sequentially — each consumes the output of the previous stage.

/skill-eval:transcript-extract (M1)

Extract structured events from Claude Code session transcripts into JSONL.

bun scripts/transcript-extract.ts --since 7d -o events.jsonl

/skill-eval:signal-classify (M2)

Classify extracted events into friction, success, noise, and neutral categories using rule-based heuristics. No LLM calls required.

bun scripts/signal-classify.ts -i events.jsonl -o classified.jsonl
bun scripts/signal-classify.ts -i events.jsonl --stats

/skill-eval:target-identify (M3)

Use LLM-as-judge to rank friction clusters by frequency, severity, and improvability.

bun scripts/target-identify.ts -i classified.jsonl --top 5 -o targets.jsonl

Requires ANTHROPIC_API_KEY environment variable.

/skill-eval:autoresearch-loop (M4)

Iteratively generate and evaluate improvements against a target's eval criteria.

bun scripts/autoresearch-loop.ts -t targets.jsonl --max-rounds 20

Requires ANTHROPIC_API_KEY environment variable.

Full Pipeline Example

cd plugins/skill-eval

# 1. Extract events from recent sessions
bun scripts/transcript-extract.ts --since 7d -o events.jsonl

# 2. Classify friction signals
bun scripts/signal-classify.ts -i events.jsonl -o classified.jsonl

# 3. Identify top optimization targets
bun scripts/target-identify.ts -i classified.jsonl --top 5 -o targets.jsonl

# 4. Run autoresearch loop on the top target
bun scripts/autoresearch-loop.ts -t targets.jsonl --max-rounds 10

mod-forge

Build and verify Claude Code mods without touching the session you are working in. Claude Code only, version 2.1.287 or later.

The build-claude-mod skill sends an agent through scripts/run-mod.sh, which runs a mod through five fail-fast stages (validate, test, headless, typecheck, interactive) in separate processes under a harness-owned CLAUDE_CONFIG_DIR. See plugins/mod-forge/README.md for stages, evidence files, and exit codes.

Requires jq. Live stages also need ANTHROPIC_API_KEY, the interactive stage needs tmux, and the type check needs a TypeScript compiler.

# Offline test: no model calls, no API key
bun run test:mod-forge

# Live test: starts real claude children and makes real model calls
# (about $0.01 to $0.03 per headless run). Needs ANTHROPIC_API_KEY and tmux.
bash plugins/mod-forge/tests/live.test.sh

pr-pane

A Claude Code mod for keeping your open pull requests one keystroke away. Claude Code only, version 2.1.287 or later.

/prs toggles a band above the prompt listing your open PRs across repositories. The whole PR description carries its status color: ✗ unresolved comments or requested changes in red, ✓ approved in blue, ● needs review in orange, and ○ draft in dim text. Draft takes precedence; unresolved review threads take precedence over approval. Resolved threads and historical comments do not make a PR red.

Press Ctrl+X, then Tab to focus the band; arrows or Tab move between controls and Enter opens a PR in your browser (open on macOS, xdg-open on Linux). While the band has focus, r sorts by repository, s by status, and d by last-updated date. One sort mode is active at a time; repository/status groups use newest-updated first. The default status order is feedback, approved, needs review, draft. Up to eight rows appear per page; p/n switch pages. If other band output makes the drawing overflow, arrows scroll and Tab still moves focus. Esc returns to the prompt and leaves the band visible; /prs hides it. The band sets no background color and yields while a survey is active.

Dim horizontal rules above and below the PR content visually separate it while preserving the default background. Smaller bands reduce the page size to leave room for the rules.

It needs no configuration. The GitHub user is whoever gh is logged in as. Background polling runs at startup, every 60 seconds, and when you show the band; updates normally appear within a minute plus API latency. The header shows the open PR count and last successful refresh time. A failed refresh keeps the last good list and shows the error in the band. If gh is missing or logged out, it says to run gh auth login. The list includes the 100 most recently updated PRs; the header shows the true total when there are more.

# Run the mod's tests (no network, no API key)
claude plugin test plugins/pr-pane

Uninstallation

claude plugin uninstall cass
claude plugin uninstall skill-eval
claude plugin uninstall mod-forge
claude plugin uninstall pr-pane

# To remove the marketplace itself
claude plugin marketplace remove asragab-claude-marketplace

License

MIT

其他同名作品

更多類似作品