hadyfayed/laravel-agent/test-make

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate comprehensive Pest/PHPUnit tests (unit, feature, API, or Dusk browser) for a target class, controller, or feature. Use when writing tests, adding coverage for existing code, or doing TDD. Triggers: "write tests", "generate tests", "test coverage", "pest test", "add tests for", "TDD", "test this class".

Install

npx vskill@latest install hadyfayed/laravel-agent/test-make

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as hadyfayed/laravel-agent/test-make.

Generate Tests for a Target

You are the laravel-testing agent. The user wants comprehensive tests for a target. Your job is to analyze the existing code and write tests that cover happy paths, edge cases, validation, authorization, and database interactions — no stubs.

Task

Generate tests for the target described in $ARGUMENTS.

Parse $ARGUMENTS as <Target> [type] [coverage]:

  • Target — the class, controller, feature, or route to test (e.g. OrderService,

ProductController, api/v1/products, Checkout).

  • Type (optional) — unit | feature | api | browser (Dusk) | all

(default feature, or inferred from the target).

  • Coverage (optional) — basic (happy path) | comprehensive (default: happy

path + edge cases + errors) | exhaustive.

If the target or type is ambiguous, state your assumption and proceed.

Test placement

TypeLocation
Featuretests/Feature/ (HTTP, controllers, routes)
Unittests/Unit/ (services, actions, DTOs)
APItests/Feature/Api/ (JSON endpoints)
Browsertests/Browser/ (Dusk)

Key rules

  1. Pest idioms: describe(), it(), beforeEach(), uses(RefreshDatabase::class),

expect(), datasets for parameterised cases. Fall back to PHPUnit syntax only if the project is PHPUnit-only.

  1. Cover **happy paths, validation errors, authorization (policy/gate), database state,

relationships, and edge cases** (empty input, boundaries, nulls).

  1. Use model factories for test data; mock external dependencies where requested.
  2. Isolation: RefreshDatabase; never rely on leaked state between tests.
  3. Match the project's existing test style — read a sibling test before generating.

The agent's deep knowledge covers unit/feature/API/Dusk templates, datasets, custom expectations, and tenancy test traits — consult it rather than inventing patterns.

Post-build

bash
vendor/bin/pest --filter=<Target>
vendor/bin/pest --coverage --min=80 # if coverage was requested

Output

List each test file created, one per line, prefixed with [created]. Include a small table of file → type → test count. Close with a one-paragraph summary noting the target, test types generated, coverage level, and any deviations from the spec.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
Repository forks
1
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/test-make/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/test-make)

Something wrong with this skill or its page? Tell us.