From maigo
Caches PR context (title, body, diff, CI status, linked issues) to avoid re-fetching during re-review rounds. Detects cache hits via diff sha256.
How this skill is triggered — by the user, by Claude, or both
Slash command
/maigo:pr-context-cacheThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- mkdocs-include-start -->
Owner Agent: Raana
Consumers: /maigo:review step 1
/maigo:review 的第一步是 Raana 抓 PR context。「re-review」(同一個 PR 改完再跑一次)
時這些資料幾乎沒變——重抓只是浪費時間。第一次 fetch 後 cache 到
.maigo/review-rubric.md 開頭的機讀區段,re-review 偵測同 source 且 diff sha 未變
→ 直接還原,跳過全部 gh / git 重抓。
機械流程由 script 代勞(cache 偵測 / 驗證 / fetch / truncate / 寫檔一條龍):
python3 "${CLAUDE_PLUGIN_ROOT:-.}/scripts/pr_context_cache.py" <source> \
[--rubric .maigo/review-rubric.md] [--base main]
<source>:GitHub PR URL / PR 編號(需要 gh CLI)、本地 branch 名、或 commit rangepython3 scripts/pr_context_cache.py 即可stdout 第一行是 cache_hit: true|false,其後是 cache 區段全文——
含 Source / PR number / Title / Body(截 500 行)/ Linked issues / CI status /
Diff stat / Diff sha / Full diff(截 2000 行)。
<!-- pr-context-cache:start v1 --> … <!-- pr-context-cache:end --> 區段
(無檔案 → 建立;無區段 → prepend;有舊區段 → 整段取代)script 跑不起來(找不到路徑、無 gh CLI、git 失敗 → exit 1 + stderr)→
Raana 回退手動抓:依 /maigo:review step 1 列的 gh pr view / gh pr diff / gh pr checks(或 git diff / git log)指令直接 fetch,不寫 cache。
review-rubric.md 其餘內容(rubric 本身由 Tomori 撰寫)/maigo:describe-pr 不走這個 skill)Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub lee-w/maigo --plugin maigo