بنقرة واحدة
t-demo-accept
Validate demo tests cover user stories, compile and pass, and output structured acceptance reports.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Validate demo tests cover user stories, compile and pass, and output structured acceptance reports.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run a single demo E2E test file, diagnose failures, dispatch fixes to agents, and re-run until pass.
Execute phased task plans by dispatching work to specialized sub-agents for backend, frontend, miniapp, Flutter, or demo phases.
Validate task plan executability and consistency with a 100-point score and P0/P1/P2 fix list.
Convert technical design documents into executable phased task plans with ordered work breakdown.
Evaluate technical design documents for implementability, completeness, and consistency with a quantitative 100-point score.
Initialize a full-stack project skeleton with Rust backend (Axum + SeaORM + Redis) and React frontend (TypeScript + TanStack + Tailwind).
| name | t-demo-accept |
| description | Validate demo tests cover user stories, compile and pass, and output structured acceptance reports. |
| argument-hint | [测试文件路径|角色名|all] |
| allowed-tools | ["Read","Glob","Grep","Bash","Write"] |
运行时边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/runtime-boundaries.md
需求来源边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/requirement-source-contract.md
.ai/quality/。/t-demo-accept [target]
target 说明:
demo/e2e/super-admin/super-admin-comprehensive-demo.e2e.tssuper-admin / realm-admin / regular-user / third-party-appall 或留空:验收全部 Demo 测试识别目标测试文件。
若是文件路径:仅处理该文件。
若是角色名:匹配 demo/e2e/** 下对应文件。
若是 all 或空:扫描 demo/e2e/**/*.e2e.ts,排除 fixtures/、templates/、verification/。
用户故事一致性检查(必须)。
读取测试文件顶部注释中的用户故事路径。
校验用户故事文件存在;路径可以是 .ai/user-stories/... draft 或 docs/user-stories/... 已发布文档。
核对场景覆盖、角色匹配、关键断言与验收标准。
编译检查(必须)。
cd demo && npm run build
uv run scripts/demo-test-runner.py "[测试文件]" --mode fast --log-level mini
若任一测试失败、超时或编译失败,直接判定该文件 REJECTED。
代码质量检查。
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/quality/demo-accept-[name]-[YYYYMMDD-HHMMSS].md.ai/quality/demo-accept-summary-[YYYYMMDD-HHMMSS].md每个文件产出:
ACCEPTED / ACCEPTED_WITH_IMPROVEMENTS / REJECTED日志路径统一使用仓库相对路径:
log/backend-demo.loglog/frontend-demo.logdemo/test-results/.ai/user-stories 或 docs/user-stories 均未找到):直接拒绝验收。P0 必须全部通过:
允许 ACCEPTED_WITH_IMPROVEMENTS 的前提: