wp-phpstan-stubs

Installation
SKILL.md

PHPStan Stubs Scaffold

Model note: File scaffolding from a fixed template — haiku handles end-to-end. Only reach for sonnet if the source plugin has complex namespace hierarchies needing stub organization decisions.

Scaffold a complete PHPStan stubs package from scratch, following the my-org/phpstan-freemius-stubs standard structure.

When to use

  • "Create stubs for X", "new stubs package", "scaffold phpstan stubs", "add stubs for plugin/composer package".

Not for: Configuring phpstan.neon or generating baselines — use the official wp-phpstan skill. Adding PHPStan to a plugin that already has stubs installed.

References

  • references/wp-org-api.md — WP.org plugin API, version listing, download URLs, cleanup patterns
  • references/packagist-api.md — Packagist API, version filtering, source/composer.json update pattern
  • references/common-errors.md — Known errors and fixes (jq \d, unzip prompt, find+set-e, git reset, missing source/composer.json)
  • references/github-setup.md — Repo creation, branch rename trunk→main, topics, secrets, all 11 current repos
Installs
13
GitHub Stars
29
First Seen
Jun 20, 2026