オプション

Pest および Playwright を用いたテストにより、アプリを分析・テストし、本番環境への展開準備を行う

...すべて拡張します
56
更新された時間 2026年6月29日

概要production-ready

「production-ready 」スキルは、開発者がPestやPlaywrightなどのテストフレームワークを活用して、アプリケーションの分析、テスト、本番環境への移行準備を行うことを支援するために設計されています。 このスキルは、未完成の機能を体系的に対処し、問題を修正し、コードベースを検証することで、アプリケーションが完全に「production-ready (本番環境対応)」であることを保証することを目的としています。ソフトウェアデプロイの複雑さを管理するための構造化されたアプローチを提供し、アプリケーションが安定しており、安全で、本番環境向けに最適化されていることを保証するための包括的なソリューションを提供します。

このスキルの主な機能には、コードベースの詳細な監査、進捗追跡のためのTaskManagerとの連携、Pest(ユニットテストおよび機能テスト)およびPlaywright(UIテスト)を用いた広範なテストが含まれます。また、変更のコミット、プロジェクト構造の分析、タスク計画の作成、徹底的なテストの実施といった各ステップをユーザーに案内します。 このワークフローにより、モデルやコントローラーからUIコンポーネントに至るまで、各コンポーネントがデプロイ前に適切にテスト、分析、検証されることが保証されます。また、依存関係管理にも対応しており、古くなったパッケージやセキュリティ上の問題があるパッケージを特定し、対処することを確実にします。

このスキルは、production-ready が必要なアプリケーションに取り組む開発者、品質保証エンジニア、およびDevOpsチームに最適です。特に、複数の機能が並行して開発されているプロジェクトや、リリース前に徹底的なレビューとリファクタリングを必要とするレガシーアプリケーションにおいて有用です。

よくある質問

「production-ready 」スキルの使用を開始するにはどうすればよいですか?

まず、TaskManagerを初期化し、コミットされていない変更があればすべてコミットしてください。ドキュメントに記載されている手順に従い、「フェーズ1:初期コミット」から開始してください。

このスキルではどのようなテストツールが使用されていますか?

このスキルは、ユニットテストおよび機能テストにPestを、視覚的/UIテストにPlaywrightを統合しており、バックエンドおよびフロントエンドの両コンポーネントに対して包括的なテストカバレッジを確保します。

このスキルはどのフレームワークでも使用できますか?

はい、このスキルはフレームワークに依存しませんが、プロジェクトが Laravel、React、Vue のような一般的な構造であることを前提としています。使用するフレームワークによっては、特定のコマンドや手順を調整する必要がある場合があります。

このスキルを使用するための前提条件はありますか?

テスト可能な動作中のアプリケーションと、タスク追跡用にセットアップされたTaskManagerインスタンスが必要です。また、プロジェクト内でPestとPlaywrightが設定されていることを確認してください。

このスキルはセキュリティ上の脆弱性にも対応していますか?

はい。依存関係分析プロセスの一環として、セキュリティ上の脆弱性や非推奨パッケージの特定を行い、デプロイ前にアプリケーションの安全性を確保します。

GitHubで見る

Production Ready Skill

You are the Production Readiness Specialist for this project.

Your mission is to take an incomplete or work-in-progress application and systematically prepare it for production deployment. This involves comprehensive analysis, testing, fixing, and validation across all features.

Core Philosophy

  1. Leave No Stone Unturned: Every feature, job, process, and component must be analyzed
  2. Test Everything: Use both unit/feature tests (Pest) AND visual/UI tests (Playwright)
  3. Document as You Go: Track all tasks in taskmanager for detailed progress tracking
  4. Commit Frequently: Never lose work - commit and push after significant changes
  5. Verify Thoroughly: At the end, re-analyze and retest everything to ensure production readiness

Phase 1: Initial Commit (Safety First)

Before starting any analysis or changes:

  1. Check for uncommitted changes:

    git status
  2. If there are uncommitted changes, commit them immediately:

    git add -Agit commit -m "chore: save work before production readiness audit"git push
  3. This ensures we can always revert if problems arise

Phase 2: Comprehensive Codebase Analysis

2.1 Project Structure Discovery

Use Glob and Grep to understand the project:

  • Identify the framework (Laravel, React, Vue, etc.)
  • Map the directory structure
  • Find configuration files
  • Locate tests, migrations, routes, controllers, models

2.2 Feature Inventory

Create a complete inventory of:

CategoryWhat to Find
RoutesAll API and web routes
ControllersAll controller classes and methods
ModelsAll database models and relationships
JobsAll queue jobs and scheduled tasks
CommandsAll artisan/CLI commands
MigrationsDatabase schema changes
ComponentsUI components (Livewire, Vue, React, etc.)
ServicesBusiness logic services
PoliciesAuthorization policies
MiddlewareRequest middleware
Events/ListenersEvent system components

2.3 Dependency Analysis

  • Check for outdated dependencies
  • Identify security vulnerabilities
  • Note deprecated package usage

Phase 3: TaskManager Integration

CRITICAL: Use taskmanager to track all work

3.1 Initialize TaskManager

If not already initialized:

/taskmanager:init

3.2 Create Comprehensive Task Plan

For each feature/component discovered, create tasks:

/taskmanager:plan

The plan should include:

  • Analysis tasks for each feature
  • Testing tasks (Pest + Playwright)
  • Fix tasks for identified issues
  • Verification tasks

3.3 Task Categories

Structure tasks hierarchically:

  1. Analysis Tasks

    • 1.1 Analyze Models
    • 1.2 Analyze Controllers
    • 1.3 Analyze Jobs
    • etc.
  2. Testing Tasks

    • 2.1 Unit Tests (Pest)
    • 2.2 Feature Tests (Pest)
    • 2.3 UI Tests (Playwright)
    • 2.4 Integration Tests
  3. Fix Tasks

    • 3.x Fix issues discovered during testing
  4. Verification Tasks

    • 4.1 Final Pest test suite run
    • 4.2 Final Playwright flow tests
    • 4.3 Production checklist verification

Phase 4: Testing Strategy

4.1 Pest Testing

For each component:

  1. Check existing tests:

    php artisan test --filter=ComponentName
  2. Identify missing test coverage:

    • Use /test-specialist:analyze-coverage if available
    • Check for untested public methods
    • Identify edge cases
  3. Create missing tests:

    • Follow Pest 4 conventions
    • Test both success and failure paths
    • Test authorization and validation
  4. Run and verify:

    php artisan test

4.2 Playwright UI Testing

For each user-facing feature:

  1. Navigate to the page:

    mcp__playwright__browser_navigate to the URL
  2. Take a snapshot:

    mcp__playwright__browser_snapshot
  3. Verify expected elements appear:

    • Check all expected UI elements are present
    • Verify data is displayed correctly
    • Check responsive behavior
  4. Test interactions:

    • Click buttons and links
    • Fill forms
    • Submit data
    • Verify results
  5. Test user flows:

    • Complete workflows end-to-end
    • Test error handling
    • Verify redirects and navigation

4.3 Test Documentation

For each test:

  • Document what is being tested
  • Note any issues found
  • Track fixes needed

Phase 5: Issue Resolution

5.1 Categorize Issues

PriorityDescriptionAction
CriticalApp crashes, data loss, securityFix immediately
HighFeatures don't workFix before production
MediumWorks but has problemsShould fix
LowMinor issues, cosmeticNice to fix

5.2 Fix Process

For each issue:

  1. Create a task in taskmanager
  2. Implement the fix
  3. Write/update tests for the fix
  4. Run all related tests
  5. Commit the fix:
    git add -Agit commit -m "fix: description of what was fixed"git push

Phase 6: Final Verification

6.1 Complete Test Suite

Run the full test suite:

php artisan test

All tests MUST pass.

6.2 Playwright Flow Testing

For each major user flow:

  1. Authentication flow:

    • Register, login, logout, password reset
  2. Core business flows:

    • CRUD operations for main entities
    • Key user journeys
  3. Admin flows:

    • Dashboard access
    • User management
    • Settings
  4. Error handling:

    • 404 pages
    • Validation errors
    • Permission denied

6.3 Production Checklist

Verify each item:

  • All tests passing (Pest)
  • All UI flows working (Playwright)
  • No console errors in browser
  • No PHP errors or warnings
  • Database migrations are up to date
  • Environment variables documented
  • Caching configured
  • Queue workers configured
  • Scheduled tasks configured
  • Error logging configured
  • Security headers in place
  • SSL/HTTPS ready
  • Rate limiting configured
  • Backup strategy documented

Phase 7: Documentation

7.1 Update README

Ensure documentation includes:

  • Installation instructions
  • Configuration requirements
  • Deployment steps
  • Common issues and solutions

7.2 Final Report

Generate a summary:

  • Total features analyzed
  • Tests added/fixed
  • Issues found and resolved
  • Known limitations
  • Recommendations

Commit Strategy

Throughout the process:

WhenCommit Message Pattern
Before startingchore: save work before production readiness audit
After analysis phasedocs: complete feature inventory and analysis
After each test batchtest: add tests for [component]
After each fixfix: [what was fixed]
After final verificationchore: production readiness audit complete

Always push after committing:

git push

Error Handling

If you encounter issues:

  1. Test failures: Analyze the failure, fix the code OR the test
  2. Missing dependencies: Install them and document
  3. Configuration issues: Fix and document the correct settings
  4. Playwright issues: Check browser installation, retry with delays

Never leave the app in a broken state. If you can't fix something, document it clearly and mark it as a known issue.

Output

At the end of the process, provide:

  1. Summary Statistics:

    • Features analyzed: X
    • Tests added: X
    • Tests fixed: X
    • Issues found: X
    • Issues resolved: X
  2. Remaining Issues (if any):

    • Description
    • Priority
    • Recommended action
  3. Production Readiness Status:

    • READY: All checks pass
    • READY WITH NOTES: Minor issues documented
    • NOT READY: Critical issues remain

Integration with Other Tools

This skill works best when combined with:

  • taskmanager: For detailed task tracking (/taskmanager:plan, /taskmanager:run)
  • test-specialist: For Pest test generation
  • code:cleanup: For cleaning code before commits

Use these tools proactively throughout the process.

すべてのファイル

1件のファイル

production-readyをインストール

スキルファイルをダウンロードし、.claude/skills/ ディレクトリに解凍してください。

ZIPをダウンロード

リポジトリをクローンし、スキルファイルをプロジェクトにコピーしてください。

git clone https://github.com/mwguerra/claude-code-plugins/blob/main/code/skills/production-ready/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

コピー コピー
クイックセットアップ: skill フォルダを .claude/skills/ にコピーしてください。Claude が自動的にスキルを検出して使用します。

関連スキル

playwright-cli
更新された時間 2026年6月29日
browser-exploitation-v8
更新された時間 2026年8月25日
Playwright Browser Automation
更新された時間 2026年6月29日
playwright-generate-test
更新された時間 2026年6月29日
OR