hadyfayed/laravel-agent/test-make
Claude Code and agent skill by hadyfayed/laravel-agent
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-makeSemi-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
| Type | Location | |
|---|---|---|
| Feature | tests/Feature/ (HTTP, controllers, routes) | |
| Unit | tests/Unit/ (services, actions, DTOs) | |
| API | tests/Feature/Api/ (JSON endpoints) | |
| Browser | tests/Browser/ (Dusk) |
Key rules
- 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.
- Cover **happy paths, validation errors, authorization (policy/gate), database state,
relationships, and edge cases** (empty input, boundaries, nulls).
- Use model factories for test data; mock external dependencies where requested.
- Isolation:
RefreshDatabase; never rely on leaked state between tests. - 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
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
- SKILL.md in the repositoryCheckingskills/test-make/SKILL.md
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
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/test-make)