testing-best-practices
Skill by syofyanzuhad
Guides Laravel test design and review with rule files for coverage, naming, assertions, test data, isolation, security and performance. Aimed at developers who write or review Pest or PHPUnit tests in Laravel projects.
Install testing-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/syofyanzuhad/uptime-kita /tmp/uptime-kita && mkdir -p ~/.claude/skills && cp -r /tmp/uptime-kita/.cursor/skills/testing-best-practices ~/.claude/skills/testing-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/syofyanzuhad/uptime-kita /tmp/uptime-kita && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/uptime-kita/.cursor/skills/testing-best-practices ~/.gemini/antigravity-cli/skills/testing-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install testing-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant rules for designing and reviewing Laravel tests. It starts with a rule index that maps subjects such as naming, assertions, endpoint tests, test data, isolation, security, performance and review to separate rule files. The assistant is told to read nearby tests first and to follow existing project conventions over the skill's guidance.
The workflow asks the assistant to read the code under test, pick the applicable rule files, report defects before writing tests, and then run the smallest set of tests that covers the change. It states that feature tests come first, that unit tests are for logic that does not use the framework, and that Laravel and Pest syntax should be looked up with search-docs. It is intended for Laravel developers who use Pest.
Written from the project's SKILL.md and checked against it.
What it can do
- Coverage selectionDecides which decisions, branches, validations and authorizations in the code need tests.
- Naming and structureGives rules for file layout, test names and groups.
- Assertion guidanceCovers arrange-act-assert and the correct assertion for each subject.
- Endpoint testsCovers endpoint coverage, authentication, authorization, tenant isolation, validation and browser tests.
- Test data rulesCovers factories, ownership of test data and repeated input values.
- Isolation rulesCovers fakes, mocks, outbound HTTP, time, randomness and database handling.
- Security testsCovers escaping, injection, cross-tenant access and privilege checks.
- Performance rulesCovers environment and CI settings for a slow test suite.
- Test reviewProvides a checklist for reviewing a single test or a whole suite.
What you need
- A Laravel project
- Pest or PHPUnit
Try asking
- Review the tests in tests/Feature for duplicate coverage and report it.
- Write feature tests for the order endpoint covering auth and validation.
- Check whether this suite isolates outbound HTTP and time correctly.
Good to know
- Real-browser tests need pestphp/pest-plugin-browser and a browser download, which the project may not install.
- Rules govern new tests. Existing tests that follow project conventions should not be rewritten.
- Adding new test dependencies requires the user's request.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .cursor/skills/testing-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
rules/assertions.md3 KB -
rules/endpoint-tests.md3 KB -
rules/finding-features.md2 KB -
rules/isolation.md4 KB
Show all 10 files
-
rules/naming.md2 KB -
rules/performance.md3 KB -
rules/review.md3 KB -
rules/security.md2 KB -
rules/test-data.md2 KB
Alternatives to testing-best-practices
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
testing-best-practices: common questions
Does this skill write Pest or PHPUnit syntax?
The skill says to use search-docs or framework guidance for Pest and PHPUnit syntax. It focuses on test design rules rather than syntax.
What happens if my project's test conventions differ from the skill?
The skill says project conventions take precedence over its rules. Existing tests that follow a convention are not to be deleted or rewritten.
Can it set up browser testing?
Only if the user asks. The skill says browser tests need an extra package and browser download that the project does not install by default.
How do I install testing-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is testing-best-practices free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is testing-best-practices safe to use?
It scores 79 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to testing-best-practices?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
