MCP HubMCP Hub
スキル一覧に戻る

testing-assistant

RobThePCGuy
更新日 Yesterday
94 閲覧
2
2
GitHubで表示
テストtesting

について

testing-assistantスキルは、Claude Patent Creatorの完全なテストライフサイクル(ユニットテスト、統合テスト、エンドツーエンド検証を含む)を管理します。テストスイートの実行、失敗のデバッグ、適切なテストピラミッド戦略の維持に関する専門的なガイダンスを提供します。開発者は、機能の検証、変更後のテスト、CI/CDパイプラインの設定にこれを利用すべきです。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/RobThePCGuy/Claude-Patent-Creator
Git クローン代替
git clone https://github.com/RobThePCGuy/Claude-Patent-Creator.git ~/.claude/skills/testing-assistant

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

ドキュメント

Testing Assistant Skill

Expert system for testing and validating the Claude Patent Creator.

FOR CLAUDE: Test scripts in scripts/ directory.

  • Go directly to running appropriate test
  • Run from project root
  • Tests require active venv
  • Only run diagnostics if tests fail

When to Use

Running test suites, validating new features, testing after changes, debugging failures, creating tests, setting up CI/CD, performance testing, E2E validation, regression testing.

Testing Pyramid

         /\
        /  \       E2E (Manual + Automated)
       /----\
      / API  \     Integration Tests
     /--------\
    /  Unit   \    Unit Tests
   /----------\

Strategy: More unit tests (fast, isolated), fewer integration (moderate), minimal E2E (slow).

Test Suite Overview

scripts/
+-- test_install.py          # Complete installation validation
+-- test_gpu.py              # GPU detection and CUDA
+-- test_bigquery.py         # BigQuery connection
+-- test_analyzers.py        # Claims, spec, formalities
+-- test_embedding_speed.py  # Performance benchmarks
+-- test_checkpoint.py       # Index checkpoint system

Quick Test:

python scripts/test_install.py

Manual Testing via Claude

Test MCP tools through Claude Code interface.

Quick Test Examples

1. MPEP Search: "Search MPEP for claim definiteness requirements"
2. Patent Search: "Search for patents about neural networks filed in 2024"
3. Claims Review: "Review these claims: [paste test claims]"
4. Full Review: "/full-review" (with test application)
5. Diagrams: "Create a flowchart for this process: [describe]"

Validation Checklist

[OK] MPEP search returns relevant results
[OK] BigQuery search finds patents
[OK] Claims analyzer identifies issues
[OK] Specification analyzer checks support
[OK] Formalities checker validates format
[OK] Diagrams generate successfully
[OK] Full review workflow completes
[OK] All MCP tools accessible
[OK] Error messages clear and helpful
[OK] Performance acceptable (<2s most ops)

Creating New Tests

Quick Start

# Unit test template
def test_basic_functionality():
    from mcp_server.your_module import YourClass
    instance = YourClass()
    result = instance.method("test input")
    assert result is not None
    print("[OK] test_basic_functionality passed")

Test Categories:

  1. Basic functionality
  2. Edge cases
  3. Performance
  4. Error handling

Performance Testing

Quick Benchmark

from mcp_server.mpep_search import MPEPIndex
import time

index = MPEPIndex()
index.search("test", top_k=5)  # Warm up

start = time.time()
result = index.search("claim definiteness", top_k=5)
duration = time.time() - start
print(f"Search took: {duration:.3f}s")

Performance Thresholds

OperationThresholdNotes
MPEP search (first)<3sModel loading
MPEP search (subsequent)<500msCached models
BigQuery search<2sNetwork dependent
Claims analysis<3s20 claims
Spec analysis<10s10 pages
Diagram generation<1sSVG output

Troubleshooting Test Failures

ProblemSolution
Import errorsActivate venv, pip install -r requirements.txt
GPU tests failCheck nvidia-smi, reinstall PyTorch, or skip
BigQuery failsRe-auth: gcloud auth application-default login
Index not foundRebuild: patent-creator rebuild-index
Too slowCheck GPU usage, first run slower, check system load

Best Practices

  1. Test after every change
  2. Automated testing
  3. Test pyramid (more unit, fewer E2E)
  4. Fast tests (<5 min suite)
  5. Isolated tests (no dependencies)
  6. Clear assertions
  7. Document tests
  8. Version control tests
  9. Regular execution (weekly)
  10. Monitor performance

Quick Reference

Run All Tests

python scripts/test_install.py
python scripts/test_gpu.py
python scripts/test_bigquery.py
python scripts/test_analyzers.py
python scripts/test_embedding_speed.py

Regression Test

python scripts/test_install.py || exit 1
python scripts/test_bigquery.py || exit 1
python scripts/test_analyzers.py || exit 1
echo "[OK] All regression tests passed!"

Manual Checklist

□ Ask Claude to search MPEP
□ Ask Claude to search patents
□ Ask Claude to review claims
□ Run /full-review command
□ Generate a diagram
□ Verify all tools work
□ Check performance (<2s)

GitHub リポジトリ

RobThePCGuy/Claude-Patent-Creator
パス: skills/testing-assistant
bigqueryclaude-codeclaude-code-pluginfaissmcp-servermpep

関連スキル

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.

スキルを見る

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.

スキルを見る

webapp-testing

テスト

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

スキルを見る