Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 79
  • 186 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install testing-best-practices in Claude Code

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

A

No 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 →

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.

testing-best-practices Install

Add to stack

Loading.