configuring-horizon
Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the…
Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs
$ npx -y skills add coollabsio/coolify --skill testing-best-practices --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/testing-best-practicesContext preview
The summary Claude sees to decide when to auto-load this skill.
Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs
name: testing-best-practices description: "Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax." license: MIT metadata: author: laravel
This skill provides rules for designing Laravel tests. Each rule file explains what to do and why. Use `search-docs` for Laravel and Pest API syntax. This project uses Pest. Follow the corresponding guidance in each rule.
Read nearby tests before you choose syntax and organization.
A pattern repeated throughout the project is a convention, and project conventions take precedence over this skill. Follow them and give new tests the same structure.
These rules govern the tests you write now. An existing test that follows a project convention is not defective merely because it conflicts with this skill. Do not delete or rewrite it. If the convention has drawbacks, explain them and let the user decide.
Read this section before you write a test.
1. Read the code under test. Read the tests in the same directory. Identify every decision in the code. 2. Select every applicable branch in the rule index. Read every selected rule file. 3. Report each defect in the code before you write a test. Examples are a method with no body, a policy that no action calls, and a write action with no validation. Test the actual behavior. Report the defect to the user. 4. Write the tests. Run the smallest set of tests that covers the change. The tests must pass. 5. Check every applicable item in `rules/review.md` and every selected rule file. Resolve every mismatch before completion.
Most changes need more than one rule file.
| Subject | Rule File | | --- | --- | | Test framework features that may already do the work | [`rules/finding-features.md`](rules/finding-features.md) | | File layout, test names, and groups | [`rules/naming.md`](rules/naming.md) | | Arrange-act-assert and choosing the correct assertion | [`rules/assertions.md`](rules/assertions.md) | | Endpoint coverage, authentication, authorization, tenant isolation, validation, and browser tests | [`rules/endpoint-tests.md`](rules/endpoint-tests.md) | | Factories, test data ownership, and repeated input values | [`rules/test-data.md`](rules/test-data.md) | | Fakes, mocks, outbound HTTP, time, randomness, and databases | [`rules/isolation.md`](rules/isolation.md) | | Escaping, injection, cross-tenant access, and privilege checks | [`rules/security.md`](rules/security.md) | | Environment and CI settings for a slow suite | [`rules/performance.md`](rules/performance.md) | | Reviewing a test or suite | [`rules/review.md`](rules/review.md) |
An open-source platform to deploy applications, databases, and services on your own servers. Open source & free forever, backed by our philosophy. 
Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the…
ACTIVATE when the user works on authentication in Laravel. This includes login, registration,…
Use this skill to analyze how a Laravel application is actually written and record its…
Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when…
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes…
Use for any task or question involving Livewire. Activate if user mentions Livewire, wire:…