t-web-demo-accept
Validate demo tests cover user stories, compile and pass, and output structured acceptance reports.
npx skills add timzaak/web-dev-skills --skill t-web-demo-accept --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Demo 测试验收 运行时边界统一参考:`${CLAUDE_PLUGIN_ROOT}/protocols/runtime-boundaries.md` 需求来源边界统一参考:`${CLAUDE_PLUGIN_ROOT}/protocols/requirement-source-contract.md` ## 目标 - 验证测试是否覆盖用户故事。 - 验证测试是否可编译、可运行且全部通过。 - 输出结构化验收报告到 `.ai/quality/`。 ## 参数 ```bash /t-tools:t-web-demo-accept [target] ``` `target` 说明: - 测试文件路径:`demo/e2e/<role>/<scenario>.e2e.ts` - 角色名:按目标项目 `demo/e2e/` 下的实际角色目录匹配 - `all` 或留空:验收全部 Demo 测试 ## 执行流程 - 识别目标测试文件。 - 若是文件路径:仅处理该文件。 - 若是角色名:匹配 `demo/e2e/**` 下对应文件。 - 若是 `all` 或空:扫描 `demo/e2e/**/*.e2e.ts`,排除 `fixtures/`、`templates/`、`verification/`。 - 用户故事一致性检查(必须)。 - 读取测试文件顶部注释中的用户故事路径。 - 校验用户故事文件存在;路径可以是 `.ai/user-stories/...` draft 或 `docs/user-stories/...` 已发布文档。 - 核对场景覆盖、角色匹配、关键断言与验收标准。 - 编译检查(必须)。 ```bash cd demo && npm run build ``` - 测试执行检查(必须)。 ```bash uv run scripts/web-demo-test-runner.py "[测试文件]" --mode fast --log-level mini ``` - 若任一测试失败、超时或编译失败,直接判定该文件 `REJECTED`。 - 代码质量检查。 ```bash grep -n "verifyTestEnvironment\|cleanupDemoTestData" [测试文件路径] grep -n "UnifiedLogger\|logger\." [测试文件路径] grep -n "waitForTimeout" [测试文件路径] grep -n "data-testid\|getByRole\|getByText" [测试文件路径] npx jscpd --pattern "**/*.ts" --reporters console demo/e2e wc -l [测试文件路径] ``` - 生成报告。 - 单文件:`.ai/quali
- 目标
- 参数
- 执行流程
- 输出格式
- 失败处理
- 质量门禁
cd demo && npm run build uv run scripts/web-demo-test-runner.py "[测试文件]" --mode fast --log-level mini grep -n "verifyTestEnvironment\|cleanupDemoTestData" [测试文件路径] grep -n "UnifiedLogger\|logger\." [测试文件路径] grep -n "waitForTimeout" [测试文件路径] grep -n "data-testid\|getByRole\|getByText" [测试文件路径] npx jscpd --pattern "**/*.ts" --reporters console demo/e2e wc -l [测试文件路径]
What does the t-web-demo-accept skill do?
Validate demo tests cover user stories, compile and pass, and output structured acceptance reports.
How do I install it?
Run `npx skills add timzaak/web-dev-skills --skill t-web-demo-accept --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From timzaak/web-dev-skills, a repository with 55 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.