MCP HubMCP Hub
スキル一覧に戻る

test-skill

pr-pm
更新日 Today
46 閲覧
62
9
62
GitHubで表示
メタtesting

について

このテストスキルは、ClaudeスキルとCursorルール間のフォーマット変換を検証し、エンドツーエンドテストのための参照実装を提供します。Read、Write、Edit、Bashなどのコアツールを含み、構造化された開発ワークフローをサポートします。変換プロセスの検証とプラットフォーム間の互換性確保にご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/pr-pm/prpm
Git クローン代替
git clone https://github.com/pr-pm/prpm.git ~/.claude/skills/test-skill

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

ドキュメント

Test Skill

Overview

This is a comprehensive test skill for validating format conversion between Claude Skills and Cursor Rules.

Core Principles

  • Write clean, maintainable code
  • Test thoroughly before deploying
  • Document your work clearly
  • Follow established patterns

Workflow

  1. Understand Requirements

    • Read the task description carefully
    • Identify all constraints and dependencies
    • Ask clarifying questions if needed
  2. Plan Implementation

    • Break down the task into steps
    • Identify potential challenges
    • Consider edge cases
  3. Write Code

    • Follow coding standards
    • Keep functions small and focused
    • Use meaningful variable names
  4. Test Thoroughly

    • Write unit tests
    • Run integration tests
    • Verify edge cases
  5. Document Solution

    • Add code comments
    • Update README if needed
    • Document any gotchas

Best Practices

  • Version Control: Commit often with clear messages
  • Code Review: Always get feedback before merging
  • Refactoring: Improve code structure continuously
  • Learning: Stay updated with best practices

Integration

This skill works well with:

  • Systematic debugging approaches
  • Test-driven development
  • Code review practices

Examples

Good Code Pattern

function calculateTotal(items: Item[]): number {
  return items.reduce((sum, item) => sum + item.price, 0);
}

Bad Code Pattern (Avoid)

function calc(x) {
  let t = 0;
  for (let i = 0; i < x.length; i++) {
    t = t + x[i].p;
  }
  return t;
}

Troubleshooting

  • Issue: Code not working

    • Solution: Check syntax errors, verify inputs
  • Issue: Tests failing

    • Solution: Review test assertions, check mock data
  • Issue: Performance problems

    • Solution: Profile code, optimize bottlenecks

GitHub リポジトリ

pr-pm/prpm
パス: tests/e2e/fixtures/conversion-test/.claude/skills/test-skill.md
claudeclaude-codecursorcursor-ai-editcursorrulespackage-manager

関連スキル

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.

スキルを見る

cloudflare-cron-triggers

テスト

This skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.

スキルを見る