AgentSkillsCN

ralph-verify

对当前项目执行完整的五道门验证流程:代码风格检查、类型检查、测试验证、安全审计以及浏览器兼容性测试。在提交代码之前,或在完成某个故事后使用,以确保代码质量。

SKILL.md
--- frontmatter
name: ralph-verify
description: Run the full 5-gate verification pipeline on the current project. Gates: Lint, Types, Tests, Security, Browser. Use before committing or after completing a story to ensure quality.
allowed-tools: Read, Bash, Grep, Glob

Ralph Ultra Verification Pipeline

Run comprehensive 5-gate verification.

Gates

GateWhatBlocking
Gate 1: LintESLint, Pylint, rustfmt, gofmtYes
Gate 2: TypesTypeScript tsc, mypy, cargo checkYes
Gate 3: TestsJest, pytest, cargo test, go testYes
Gate 4: Securitynpm audit, pip-audit, semgrep, trivyCritical/High block
Gate 5: BrowserPlaywright/Puppeteer MCP audits + visionAccessibility blocks, visual advises

Usage

code
/ralph-ultra:ralph-verify [--gate N] [--skip-browser]

Options

OptionDescription
--gate NRun only gate N (1-5)
--skip-browserSkip Gate 5 browser verification

Gate Results

Each gate outputs:

  • PASS — All checks passed
  • FAIL — Blocking issues found (must fix before proceeding)
  • WARN — Non-blocking issues (should fix but won't block)

Self-Correction Protocol

On failure:

  1. Capture full error output
  2. Analyze root cause
  3. Inject error context into fix prompt
  4. Retry (max 3 attempts per gate)
  5. Circuit breaker: 3 failures = escalate to human