check-pure-functions

Installation
SKILL.md

Pure Function Check

Analyze PHP code for pure function patterns that improve testability.

Pure Function Characteristics

A pure function:

  1. Returns the same output for the same input (deterministic)
  2. Has no side effects
  3. Doesn't depend on external state

Detection Patterns

1. Non-Deterministic Methods

// IMPURE: Depends on current time
public function isExpired(Token $token): bool
{
Related skills
Installs
4
GitHub Stars
71
First Seen
Mar 17, 2026