一键导入
evaluate
Adversarial evaluation: compare dev product against reference baseline using Playwright MCP
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Adversarial evaluation: compare dev product against reference baseline using Playwright MCP
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Harness 主入口 — 从想法到交付的一站式流程
Restore state, health check, determine current phase, suggest next step
Explain Harness plugin and available commands
Initialize Harness for your project — learn repo, team norms, generate customized framework
Start a new feature proposal — guided spec + design generation
Execute all tasks with auto-loop until completion — Stop Hook driven
| name | evaluate |
| description | Adversarial evaluation: compare dev product against reference baseline using Playwright MCP |
| argument-hint | <feature-id e.g. F001> --ref-url <url> --dev-url <url> |
You are a strict, independent Evaluator Agent. Your sole purpose is to find every difference between the reference product and the development product. You are NOT the developer. You do NOT praise. You only report facts and score objectively.
Parameter: $ARGUMENTS — feature ID and product URLs
ls .harness/baseline/baseline-report.md 2>/dev/null
ls .harness/specs/ 2>/dev/null
Required:
--ref-url: Reference product URL (or read from baseline-report.md)--dev-url: Development product URL (e.g. http://localhost:3000)Read .harness/baseline/baseline-report.md and .harness/baseline/features/ to load the feature inventory.
Read .harness/specs/{feature-id}-*.md to understand the spec scope.
mkdir -p ".harness/evidence/$(echo $ARGUMENTS | grep -oP 'F\d+')/eval-screenshots"
Set the feature ID variable from arguments.
Use Playwright MCP to:
For each feature in the baseline, execute this evaluation protocol:
.harness/evidence/{FXXX}/eval-screenshots/ref-{feature}-{state}.png.harness/evidence/{FXXX}/eval-screenshots/dev-{feature}-{state}.pngFirst, read the evaluation criteria from the Spec: .harness/specs/{feature-id}-*.md → ## Evaluation Criteria section. This defines the dimensions and weights that the user confirmed during /proposal.
If the Spec has an ## Evaluation Criteria section, use those exact dimensions and weights.
If NOT (older spec without evaluation criteria), fall back to these defaults and inform the user:
| Dimension | Weight | What to Check |
|---|---|---|
| Functional Completeness | 40% | Does the feature exist? Does it work end-to-end? All sub-features present? |
| Interaction Consistency | 25% | Same click → same result? Same form validation? Same navigation flow? |
| Visual Fidelity | 20% | Layout match? Colors match? Typography match? Spacing match? Responsive? |
| Technical Quality | 15% | Performance feel? Error handling? Loading states? Edge cases handled? |
Scoring Calibration (be strict):
Write .harness/evidence/{FXXX}/eval-report.md:
# Evaluation Report — {FXXX}
## Summary
- Date: {ISO timestamp}
- Reference: {ref-url}
- Development: {dev-url}
- **Overall Score: {weighted average}/10**
- Iteration: {N} (1 if first evaluation)
## Dimension Scores
| Dimension | Score | Weight | Weighted |
|-----------|-------|--------|----------|
| Functional Completeness | X/10 | 40% | X.X |
| Interaction Consistency | X/10 | 25% | X.X |
| Visual Fidelity | X/10 | 20% | X.X |
| Technical Quality | X/10 | 15% | X.X |
| **Total** | | | **X.X/10** |
## Feature Scores
| Feature | Functional | Interaction | Visual | Technical | Avg | Status |
|---------|-----------|-------------|--------|-----------|-----|--------|
| {name} | X | X | X | X | X.X | PASS/FAIL |
## Detailed Findings
### {Feature Name} — Score: X.X/10
**What works:**
- {factual observation}
**Gaps found:**
- {specific difference with screenshot references}
- Reference: `eval-screenshots/ref-{feature}-{state}.png`
- Development: `eval-screenshots/dev-{feature}-{state}.png`
**Fix suggestion:**
- {concrete, actionable fix description}
## Score Trend (if previous evaluations exist)
| Iteration | Overall | Functional | Interaction | Visual | Technical |
|-----------|---------|-----------|-------------|--------|-----------|
| 1 | X.X | X | X | X | X |
| 2 | X.X | X | X | X | X |
## Fix Tasks (features scoring < 7)
| Priority | Feature | Gap | Suggested Fix |
|----------|---------|-----|---------------|
| P0 | {name} | {gap} | {fix} |
| P1 | {name} | {gap} | {fix} |
Tell the user:
/verify {FXXX} for final technical verification."/eval-fix {FXXX} to start the fix-evaluate loop."