AgentSkillsCN

test-foundation

仅以最佳实践与覆盖率检查进行最快速的验证。适用于在提交前进行快速的合理性检查。

SKILL.md
--- frontmatter
name: test-foundation
description: Runs only the 5 foundation agents for quick quality check. Use for rapid feedback during development. Skips phase validators.
disable-model-invocation: true
allowed-tools: Read, Write, Bash, Task

Test Foundation

Runs 5 foundation agents for quick quality feedback (skips phase validators).

Workflow

Step 1: Setup (YOU must do directly)

bash
TIMESTAMP=$(date +%Y-%m-%d-%H-%M)
mkdir -p ~/siopv/claude-verification-reports/$TIMESTAMP

Write MANIFEST:

markdown
# Claude Verification Report (Foundation Only)

> **IMPORTANT**: These reports were generated by Claude Code's Testing Kit.

| Field | Value |
|-------|-------|
| **Generator** | SIOPV Testing Kit |
| **Date** | {TIMESTAMP} |
| **Skill** | /test-foundation |
| **Scope** | Foundation agents only (no phase validators) |

## Reports
| # | File | Status |
|---|------|--------|
| 00 | FOUNDATION-SUMMARY.md | Pending |
| 01 | best-practices.md | Pending |
| 02 | security.md | Pending |
| 03 | hallucination.md | Pending |
| 04 | code-review.md | Pending |
| 05 | coverage.md | Pending |

Save to: ~/siopv/claude-verification-reports/{TIMESTAMP}/MANIFEST.md


Step 2: Run Foundation Agents (Parallel)

Launch ALL 5 using prompts from /comprehensive-test skill:

AgentPromptModelSubagent
Best Practicescomprehensive-test/prompts/best-practices.mdhaikuExplore
Securitycomprehensive-test/prompts/security.mdsonnetExplore
Hallucinationcomprehensive-test/prompts/hallucination.mdsonnetExplore
Code Reviewcomprehensive-test/prompts/code-review.mdsonnetExplore
Coveragecomprehensive-test/prompts/coverage.mdhaikuBash

Read each prompt file, replace {TIMESTAMP}, and pass to Task tool.


Step 3: Generate Summary (YOU must do directly)

markdown
# Foundation Test Summary
**Date:** {TIMESTAMP}
**Status:** PASS/FAIL

## Results
| Report | Status | Details |
|--------|--------|---------|
| Best Practices | PASS/FAIL | N violations |
| Security | PASS/FAIL | N critical, N high |
| Hallucination | PASS/FAIL | N issues |
| Code Review | PASS/FAIL | N/10 |
| Coverage | PASS/FAIL | N% |

## Quality Gates
| Gate | Threshold | Actual | Result |
|------|-----------|--------|--------|
| Coverage | >= 70% | N% | PASS/FAIL |
| Security Critical | 0 | N | PASS/FAIL |

## Note
Phase validators were skipped. For full validation: /comprehensive-test

Save to: ~/siopv/claude-verification-reports/{TIMESTAMP}/00-FOUNDATION-SUMMARY.md


Step 4: Finalize

  1. Update MANIFEST.md status column
  2. Display summary to user