Communitygithub.com

alfathafp/portofolio-web-design

作業の完了、修正、合格を主張する前、またはコミットやプルリクエストを作成する前に使用します。検証コマンドの実行と出力の確認を常に行い、成功を主張する前に証拠を確認する必要があります。

portofolio-web-design とは?

このスキルは、ソフトウェア開発プロセスにおいて「証拠なき主張の禁止」という原則を徹底するための厳格なガイドラインです。主にClaude CodeやCursor、CodexなどのAIエージェントがタスク完了を宣言する前に、必ず検証コマンドを実行し、その出力を確認することを強制します。具体的には、テスト合格、リントクリーン、ビルド成功、バグ修正、回帰テスト成功、要件達成などのステータスを主張する場合、対応するコマンドを実行して最新の結果を得なければなりません。「たぶん」「おそらく」「うまくいった」などのあいまいな表現や、過去の結果に基づく推測は禁止されます。このガイドラインに従うことで、AIエージェントによる誤った完了報告を防止し、プロジェクトの品質を担保できます。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

完了前の検証

概要

中核原則: 証拠なき主張は禁止。常に。

このルールの文言に違反することは、精神に違反することです。

鉄則

新しい検証証拠なしに完了を主張してはならない

このメッセージ内で検証コマンドを実行していないなら、合格したと主張することはできません。

ゲート関数

ステータスを主張したり満足を表明する前には:

1. 特定:その主張を証明するコマンドは何か?
2. 実行:完全なコマンドを実行する(新しい、完全な)
3. 読取:出力全体、終了コード、失敗数を確認する
4. 検証:その出力が主張を確認できるか?
   - 「いいえ」の場合:証拠とともに実際のステータスを述べる
   - 「はい」の場合:証拠とともに主張を述べる
5. それからのみ:主張を行う

どのステップをスキップしても、検証ではなく嘘である。

よくある失敗

主張必要条件不十分なもの
テスト合格テストコマンド出力:0 失敗以前の実行、「たぶん合格」
リントクリーンリント出力:0 エラー部分チェック、外挿
ビルド成功ビルドコマンド:終了コード0リント合格、ログが良さそう
バグ修正元の症状をテスト:合格コード変更、修正されたと想定
回帰テスト動作赤緑サイクルが確認済みテストが一度合格
エージェント完了VCS差分が変更を示すエージェントが「成功」と報告
要件達成項目別チェックリストテスト合格

レッドフラグ - 停止

  • 「たぶん」「おそらく」「~に見える」の使用
  • 検証前の満足の表明(「素晴らしい!」「完璧!」「できた!」など)
  • 検証なしでコミット/プッシュ/PRしようとしている
  • エージェントの成功報告を信頼する
  • 部分的な検証に頼る
  • 「今回だけ」と考えている
  • 疲れていて終わらせたい
  • 検証コマンドを実行せずに成功を示唆するいかなる表現

正当化の防止

言い訳現実
「これでうまくいくはず」検証を実行せよ
「確信している」確信 ≠ 証拠
「今回だけ」例外はない
「リントは通った」リント ≠ コンパイラ
「エージェントが成功と言った」独立して検証せよ
「疲れている」疲労 ≠ 言い訳
「部分チェックで十分」部分では何も証明できない
「違う言葉だからルールは適用されない」精神を重んじよ

主要パターン

テスト:

✅ [テストコマンド実行] [確認:34/34 合格] 「すべてのテストが合格」
❌ 「たぶん合格」「正しく見える」

回帰テスト(TDD 赤緑):

✅ テスト作成 → 実行(合格) → 修正を元に戻す → 実行(失敗しなければならない) → 復元 → 実行(合格)
❌ 「回帰テストを書いた」(赤緑検証なし)

ビルド:

✅ [ビルド実行] [確認:終了コード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.

関連スキル