MCP HubMCP Hub
スキル一覧に戻る

completion-verifier

majiayu000
更新日 Yesterday
18 閲覧
58
9
58
GitHubで表示
テストaitesting

について

completion-verifierスキルは、コードベースに対して受け入れテストを実行することで、実装作業を自動的に検証します。テスト仕様を解析し、適切なテストフレームワークを実行して、詳細な合格/不合格の結果を報告します。テストが不合格となった場合、問題のあるフェーズを特定し、実装を修正するためのリトライループを起動します。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/completion-verifier

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Completion Verifier Skill

When to Use

  • After each implementation phase
  • Before marking task as complete
  • When retry loop is triggered

Inputs

  • context.md path (contains Acceptance Tests section)
  • Test framework (from PROJECT.md: jest/vitest/playwright)

Procedure

  1. Parse Acceptance Tests section from context.md
  2. Extract test IDs and file paths
  3. Run tests: npm test -- --testPathPattern="{test files}"
  4. Parse results (PASS/FAIL per test)
  5. Update context.md status column
  6. Return completion status

Output

completionStatus:
  total: 5
  passed: 4
  failed: 1
  allPassed: false
  failedTests:
    - id: T2
      type: Unit  # or Integration
      file: ErrorHandler.test.tsx
      error: "Expected error message not shown"
  failedPhase: "Phase 1"  # Determines where to retry
  recommendation: "Fix ErrorHandler.tsx, then re-run Phase 1"

Retry Logic

When allPassed: false:

  1. Identify failed phase based on test type:

    • Unit FAIL → Phase 1 (Mock implementation)
    • Integration FAIL → Phase 2 (API integration)
  2. Return to failed phase (NOT test writing):

    • Pass failedTests info to implementation-agent
    • Implementation-agent fixes code only (no test rewrite)
  3. Retry limits:

    • Max 2 retries per phase
    • After 2 failures → Ask user for intervention

Skip Conditions

  • No test framework configured → Skip with warning
  • No Acceptance Tests in context.md → Skip
  • Skip Conditions from testing.md apply (legacy, prototype, etc.)

Tool Call Example

# Run specific tests
npm test -- --testPathPattern="batch.test|ErrorHandler.test"

# Check coverage (optional)
npm test -- --coverage --testPathPattern="..."

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/completion-verifier

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

evaluating-llms-harness

テスト

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

スキルを見る

sglang

メタ

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る