Communitygithub.com

alfathafp/portofolio-web-design

用于在声明工作完成、修复或通过之前,在提交或创建PR之前需要运行验证命令并确认输出;始终遵循先有证据再断言的原则。

portofolio-web-design 是什么?

此AI代理技能强制实施“先有证据,再断言”的严格工作规则,适用于任何声称任务完成、测试通过或问题已修复的场景。其主要目的是防止AI代理或用户在没有运行最新验证命令并读取完整输出的情况下做出虚假或未经证实的成功声明。该技能定义了一个“门函数”工作流程,要求先确定能证明声明的命令,然后完整执行,再读取输出和退出码,最后将结果与声明进行比对。它还列出了常见的失败模式(如测试通过、代码审查通过)和对应的充分证明条件,以及需要立即停止的“红旗”警告。通过抑制诸如“应该可以通过”、“看起来没问题”等不合理借口,该技能确保所有成功声明都有确凿的证据支撑,适用于提交代码、创建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 错误部分检查,推测
构建成功构建命令:退出码0代码检查通过,日志看起来不错
Bug 修复测试原始症状:通过代码已更改,假设已修复
回归测试通过红绿循环已验证测试通过一次
代理完成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.

相关技能