php-test-writer

Community

Automate PHP/Laravel test writing, ensure quality.

AuthorRasmusGodske
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill automates the creation and maintenance of PHP/Laravel tests, ensuring they consistently follow project-specific conventions. This reduces debugging time, improves overall code quality, and guarantees robust application stability.

Core Features & Use Cases

  • Convention-Driven Testing: Guides on file structure, naming, factory usage, and assertion best practices for PHPUnit and Laravel.
  • Multitenancy Awareness: Enforces correct ->recycle($customer) usage to prevent common multitenancy testing pitfalls and ensure data isolation.
  • Service Interaction: Directs all DataObject and ObjectDefinition interactions through their respective services, preventing direct model manipulation and promoting architectural integrity.
  • Use Case: After developing a new feature, activate this skill to automatically generate comprehensive feature and unit tests that adhere to the project's strict testing guidelines, including proper factory usage and service interactions, ensuring robust code.

Quick Start

Activate the php-test-writer skill to create feature tests for the new InvoiceService, ensuring all tests follow the project's multitenancy and service interaction conventions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: php-test-writer
Download link: https://github.com/RasmusGodske/dev-agent-workflow/archive/main.zip#php-test-writer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository