Community程式設計與開發github.com

alfathafp/superpowers-診斷

當 superpowers 會話出現問題,你的人類合作夥伴想知道原因時使用——重複工作、忽略計畫、絆腳石、結果不佳、技能未觸發、「花太久時間」、「為什麼這麼貴」、「它在做什麼」——或者想要為 superpowers 維護者建立錯誤報告,針對當前會話或由 id 或路徑識別的過去會話,在任何 harness 上。

superpowers-診斷 是什麼?

此技能專用於與人類合作夥伴協作診斷 superpowers 會話中出現的問題。它引導使用者遵循一套結構化流程,從問題攝入開始,逐步定位相關會話檔案,並根據預定義的分析維度(如技能時間線、計畫遵守情況、重複工作、絆腳石、品質證據、請求衝突、成本與時間)派出多個分析子代理進行並行分析。整個過程嚴格遵循「路徑:行號」的引用原則,確保每一項發現都有據可查。它支援多種 harness(如 Claude Code、Cursor、Codex),並提供報告、GitHub 問題建立、會話資料匯出(經審核後)以及相似會話比對等功能。技能內建了多條硬性規則,例如禁止修改原始會話檔案、禁止直接診斷 superpowers 缺陷(僅呈報證據)、以及在未經合作夥伴明確同意前不得進行任何匯出或變更,以確保資料安全與工作流程的嚴謹性。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/diagnosing-superpowers

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

診斷 Superpowers

概述

與你的人类合作夥伴一起確定會話中出了什麼問題,讀取磁碟上的記錄,並附上證據報告所發生的事情。你負責報告;你不診斷 superpowers。處理該捆綁包或問題的人會決定 superpowers 是否需要更改。

核心原則: 每項發現都必須引用 path:line。沒有引用,就沒有發現。每個數字都必須來自記錄或你執行的命令,絕不能憑記憶。

工作流程

每個步驟建立一個待辦事項。步驟 5–7 僅在其所述條件下執行。

  1. 問題攝入。 一次只問一個問題,直到你能夠寫出一個敘述,指明會話名稱、已知的輪次範圍、你的合作夥伴預期的結果、實際發生的情況,以及他們關心的可觀測量(真實時間、代幣數、重複動作、某個特定動作)。「花太長時間」是抱怨,不是問題敘述。注意目標是否為 superpowers 錯誤報告。
  2. 定位。 使用 references/session-discovery.md 將每個會話解析為經過驗證的絕對檔案系統路徑。透過引用其第一個提示和時間戳來確認一個過去的會話,並列出你拒絕的每個候選者與原因,或「無」。列舉子代理記錄。建立 ~/.superpowers/diagnosing-superpowers/<session-id>/,告知你的合作夥伴該路徑,並在那裡填入 templates/case.md,遵循其關於環境和技能觀察的來源規則。
  3. 分流。 自行閱讀報告問題周圍的區域。然後針對每個維度並行派出一個分析子代理,每個子代理都給予案例檔案路徑、prompts/analyst-common.md,以及 prompts/ 中的一個維度檔案:skill-timeline.md、plan-adherence.md、repeated-work.md、stumbles.md、quality-evidence.md、request-conflicts.md、cost-and-time.md。當記錄很長時,按輪次範圍分割維度。丟棄任何沒有 path:line 的返回發現。
  4. 報告。 依序填寫 templates/report.md 的每個章節,將其寫入工作空間,顯示它,並給出路徑。檢查引用的內容實際證明了什麼,並保留支持性的案例檔案;符號連結別名不是冗餘副本。
  5. GitHub issues — 當報告 §7 表示可能或很可能時,或你的合作夥伴要求時。根據 references/github-issues.md 搜尋已開啟和已關閉的問題,尋找症狀。顯示符合項,並建議將報告新增到最接近的項目。如果沒有符合項,則填寫 templates/issue.md,將其寫入工作空間,顯示確切文字,並僅在獲得批准後才建立問題。gh 無法附加檔案;如果存在捆綁包,請將路徑提供給你的合作夥伴,以便他們在瀏覽器中附加。
  6. 匯出 — 僅在你的合作夥伴要求捆綁包時;絕不要主動建立。如果攝入目標是錯誤報告,則說一次已清理的捆綁包可應要求提供,然後等待。詢問編輯級別,說明每個級別包含的內容:骨架(無工具結果主體)、證據(僅引用事件的主體)、完整。按照 templates/bundle-README.md 建立捆綁包,派出 prompts/scrub.md,然後是 prompts/scrub-audit.md,重複兩者直到審計返回 CLEAN。在顯示最終清理日誌、檔案清單以及隱私和證據結果之前,完成捆綁包模板的證據檢查和核對。僅在獲得批准後才存檔(zip -r 或 tar -czf)。附上存檔路徑,說明其包含的內容,指出清理日誌中的替換項,並說明清理可能遺漏某些內容:他們在分享之前必須審查每個檔案。
  7. 相似會話 — 當被要求時。將已確認的發現轉換為特徵,按修改時間和大小列出候選者,找到標記行號,並行為每個候選者並行派出 prompts/similar-session.md,並附加報告 §9。

快速參考

所有七個分析者總是執行。此表說明在步驟 3 中你應自行閱讀哪個區域,以及在裁決中應以哪些發現為主。

抱怨優先閱讀,並以之為主
「花了太長時間」cost-and-time, stumbles
「為什麼它做了這項額外工作?」repeated-work, plan-adherence
「為什麼這麼貴?」cost-and-time
「它到底在做什麼?」(仍在執行)skill-timeline;在覆蓋範圍中註明進行中
「它忽略了計畫」plan-adherence,首先查看壓縮行
「技能 X 從未觸發」skill-timeline

硬性規則

  • 上下文安全。 一條記錄行可能達到 1 MB。每次處理會話檔案時,都必須遵循 references/context-safety.md。
  • 唯讀。 絕不修改、移動或刪除會話檔案。
  • 子代理的準確路徑。 子代理的「當前會話」是其自身的會話。傳遞絕對路徑和 id。
  • 僅限人類提示。 Hook 輸出、系統提醒和工具結果不是你合作夥伴的話語。在子代理記錄中,「user」是父代理。
  • 不診斷 superpowers。 報告 §7 說明涉及範圍並停止。絕不能指出技能中的缺陷或提出更改。你的合作夥伴強烈要求修復並不豁免此規則;指向問題步驟並提到可應要求提供捆綁包。也不得向你的合作夥伴提供建議。
  • 批准關卡。 在你的合作夥伴看到清理日誌和檔案清單之前,不得存檔。在他們批准確切文字之前,不得建立問題或評論。
  • 先攝入再分析。 在你的合作夥伴回答之前,步驟 2–7 中的任何內容都不能開始。如果他們不在,寫下問題並停止。你為他們重建的敘述不是答案。一個已經限定範圍的請求——一個特定事件、正在運行的內容或要執行的分析——本身就是一個敘述:回答它,然後提問。整個會話的「為什麼」是抱怨。

危險信號

想法現實
「問題很明顯,跳過攝入」問題敘述限定了所有範圍。要問。
「他們不在,所以我重建敘述」你無法重建他們想要的內容。寫下問題並停止。
「我現在掃描所有內容,最後再問」未限定範圍的掃描會把他們的預算花在錯誤的問題上。先問。
「他們想要錯誤報告,所以我現在就建立捆綁包」捆綁包是他們的會話資料,打包而成。僅在他們要求時才建立。
「小而有針對性的編輯,不需要重組」無論多小,這都不是你的決定。報告證據;由處理者決定。
「每個代幣的價格是眾所周知的」你未從記錄計算出的數字都是編造的。引用或刪除。

Individual skills in this repo

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

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

相關技能