MCP HubMCP Hub
SKILL·C6DEE0

playwright-frontend

testdino-hq
更新日 23 days ago
8 閲覧
392
61
392
GitHubで表示
テストreactaitestingdesigndata

について

このスキルは、フロントエンド開発者がテストやAIエージェントによる確実な要素特定が可能なUIコンポーネントを作成する方法を指導します。公式のPlaywrightロケーター優先順位を解説し、セマンティックなマークアップを重視するとともに、安定した`data-testid`属性を追加するためのフレームワーク固有のルールを提供します。コンポーネントの作成やレビュー時に活用し、UIのための堅牢な自動化契約を確立してください。

クイックインストール

Claude Code

推奨
メイン
npx skills add testdino-hq/playwright-skill -a claude-code
プラグインコマンド代替
/plugin add https://github.com/testdino-hq/playwright-skill
Git クローン代替
git clone https://github.com/testdino-hq/playwright-skill.git ~/.claude/skills/playwright-frontend

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

ドキュメント

Playwright Frontend (Authoring Locatable Markup)

Audience: frontend engineers writing the app — the counterpart to the test-author guides in core/. Your job here is to expose a small, stable, machine-readable contract on the DOM so tests and AI agents can locate elements deterministically, without flakiness.

A data-testid is a public API for your UI's automation layer: once a test or agent depends on it, renaming it is a breaking change. Build accessible markup first, then add deliberate, well-named, unique, stable test IDs where automation needs a durable handle.

Guide Index

TopicGuide
data-testid conventions (when, naming, uniqueness, stability)data-testid-conventions.md
Framework patterns (React, Vue, Angular, Svelte) + centralizing IDs + production strippingexamples.md

Golden Rules

  1. Semantic HTML first — give elements a real role/label/accessible name so getByRole/getByLabel work; then add test IDs.
  2. Add data-testid only where role, label and text fall short — no-role custom widgets, scope containers, list rows, and dynamic or localized regions. A control getByRole already finds uniquely needs none.
  3. Name for global uniqueness — feature-component-element[-variant], kebab-case.
  4. In lists, suffix with a stable domain key, never the array index — user-row-${user.id} ✅ / user-row-${index} ❌.
  5. Decouple the value from text, locale, styling, and DOM position — those change; the test ID must not.
  6. Standardize on one attribute — data-testid is Playwright's default testIdAttribute; don't mix data-test/data-qa.

Related

GitHub リポジトリ

testdino-hq/playwright-skill
パス: frontend
0
aiai-skillsantigravity-skillsclaude-skillscodex-skillscursor-skills
FAQ

よくある質問

playwright-frontend Skillとは何ですか?

playwright-frontend はtestdino-hq が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで playwright-frontend に関連するタスクを実行できるようにします。

playwright-frontend をインストールするには?

このページのインストールコマンドを使用してください。playwright-frontend をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。

playwright-frontend はどのカテゴリに属しますか?

playwright-frontend は テスト カテゴリに属します。

playwright-frontend は無料で利用できますか?

はい。playwright-frontend は AIMCP に掲載されており、無料でインストールできます。

関連スキル

evaluating-llms-harness
テスト

このClaudeスキルは、lm-evaluation-harnessを実行し、MMLUやGSM8Kなど60以上の標準化学術タスクでLLMをベンチマークします。開発者がモデルの品質を比較し、トレーニングの進捗を追跡し、学術的な結果を報告するために設計されています。このツールはHuggingFaceやvLLMモデルを含む様々なバックエンドをサポートしています。

スキルを見る
cloudflare-cron-triggers
テスト

このスキルは、cron式を使用してWorkersをスケジュールするためのCloudflare Cron Triggersの実装に関する包括的な知識を提供します。定期的なタスクの設定、メンテナンスジョブ、自動化されたワークフローの構築を網羅し、無効なcron式やタイムゾーン問題といった一般的な課題への対処法も含みます。開発者はこれを使用して、スケジュールされたハンドラーの設定、cronトリガーのテスト、WorkflowsやGreen Computeとの連携を構成できます。

スキルを見る
webapp-testing
テスト

このClaude Skillは、Playwrightベースのツールキットを提供し、Pythonスクリプトを通じてローカルWebアプリケーションのテストを可能にします。フロントエンドの検証、UIデバッグ、スクリーンショット撮影、ログ表示を実現し、サーバーライフサイクルを管理します。ブラウザ自動化タスクにご利用いただけますが、コンテキストの汚染を避けるため、スクリプトのソースコードを読むのではなく直接実行してください。

スキルを見る
finishing-a-development-branch
テスト

このスキルは、開発者がテストの合格を確認し、構造化された統合オプションを提示することで、完成した作業を仕上げることを支援します。実装が完了した後のマージ、PR作成、ブランチの整理といったワークフローを案内します。コードが準備できてテスト済みの際に使用し、開発プロセスを体系的に完了させましょう。

スキルを見る