Communitygithub.com

alfathafp/portofolio-web-design

在聲稱工作完成、修復或通過之前,必須執行驗證命令並確認輸出,再進行任何成功斷言;證據永遠先於斷言。

portofolio-web-design 是什麼?

此技能強制執行「證據先於斷言」的核心原則,確保開發者或AI代理在做出任何完成或成功聲明之前,必須先執行完整的驗證命令。它定義了一個「閘門函數」,要求開發者:識別證明的命令、完整執行該命令、讀取輸出並檢查退出碼與失敗數、根據輸出驗證聲明,然後才能陳述結果。技能涵蓋測試、語法檢查、建置、Bug修復、回歸測試、代理任務及需求滿足等常見失敗情境,並列出應立即停止的紅旗信號(如使用「應該」、「大概」等詞彙或過早表達滿意)。它還提供常見藉口的反駁,並強調無論何時,只要涉及完成或正確性主張,都必須套用此規則。此技能支援所有需要防止不實聲明的工作流程,特別適用於Git操作(提交、PR)、任務完成及代理委派等場景。

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

在你喜歡的 AI 中提問

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

說明文件

完成前的驗證

概述

核心原則: 證據永遠優先於斷言。

違反此規則的文字表述,就是違反此規則的精神。

鐵律

未經最新驗證證據,不得做出完成聲明

如果你沒有在此訊息中執行驗證命令,就不能聲明測試通過。

閘門函數

在聲明任何狀態或表達滿意之前:

1. 確認:哪個命令能證明這個聲明?
2. 執行:執行完整的命令(全新、完整)
3. 讀取:完整輸出,檢查退出碼,計算失敗數
4. 驗證:輸出是否確認了聲明?
   - 如果否:用證據陳述實際狀態
   - 如果是:用證據陳述聲明
5. 僅在之後:做出聲明

跳過任何步驟 = 說謊,而非驗證

常見失敗

聲明所需條件不足之處
測試通過測試命令輸出:0 失敗先前執行、"應該會通過"
語法檢查乾淨語法檢查輸出:0 錯誤部分檢查、推測
建置成功建置命令:exit 0語法檢查通過、日誌看起來不錯
Bug 修復測試原始症狀:通過程式碼已修改、假設已修復
回歸測試有效紅綠循環驗證測試僅通過一次
代理完成VCS 差異顯示變更代理報告「成功」
需求滿足逐行檢查清單測試通過

紅旗 - 立即停止

  • 使用「應該」、「大概」、「似乎」等詞語
  • 在驗證前表達滿意(「太好了!」、「完美!」、「完成了!」等)
  • 即將提交/推送/發起 PR 但未驗證
  • 信任代理的成功報告
  • 依賴部分驗證
  • 心想「就這一次」
  • 感到疲倦,想結束工作
  • 任何暗示成功但未執行驗證的措辭

反制合理化

藉口實際情況
「現在應該可以了」執行驗證
「我很確定」確定不 ≠ 證據
「就這一次」沒有例外
「語法檢查通過了」語法檢查不 ≠ 編譯器
「代理說成功了」獨立驗證
「我累了」疲勞不 ≠ 藉口
「部分檢查就夠了」部分不證明任何事
「用詞不同,規則不適用」精神優先於文字

關鍵模式

測試:

✅ [執行測試命令] [看到:34/34 通過] 「所有測試通過」
❌ 「現在應該通過了」 / 「看起來正確」

回歸測試(TDD 紅綠):

✅ 編寫 → 執行(通過)→ 還原修復 → 執行(必須失敗)→ 恢復 → 執行(通過)
❌ 「我寫了回歸測試」(未經紅綠驗證)

建置:

✅ [執行建置] [看到:exit 0] 「建置通過」
❌ 「語法檢查通過了」(語法檢查不檢查編譯)

需求:

✅ 重新閱讀計畫 → 建立檢查清單 → 逐項驗證 → 報告差距或完成
❌ 「測試通過,階段完成」

代理委派:

✅ 代理報告成功 → 檢查 VCS 差異 → 驗證變更 → 報告實際狀態
❌ 信任代理報告

何時套用

始終在以下情況之前:

  • 任何形式的成功/完成聲明
  • 任何形式的滿意表達
  • 任何關於工作狀態的正面陳述
  • 提交、創建 PR、任務完成
  • 移至下一個任務
  • 委派給代理

規則適用於:

  • 確切的詞語
  • 改寫與同義詞
  • 暗示成功
  • 任何表示完成/正確的溝通

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 a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

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

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.

相關技能