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

phpstan-baseline-triage

Skill by woocommerce

Guides an AI assistant through triaging new PHPStan errors, fix first and baseline last. It applies the fix-or-baseline rules from the WooCommerce repo's AGENTS.md policy.

  • Score 72
  • 293 stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install phpstan-baseline-triage

Built from the published package, never by AI.

git clone --depth 1 https://github.com/woocommerce/woocommerce-gateway-stripe /tmp/woocommerce-gateway-stripe && mkdir -p ~/.claude/skills && cp -r /tmp/woocommerce-gateway-stripe/.claude/skills/phpstan-baseline-triage ~/.claude/skills/phpstan-baseline-triage

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

Step-by-step: install phpstan-baseline-triage in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

phpstan-baseline-triage is an agent skill that tells an AI assistant how to handle new PHPStan errors. It sets a fix-first, baseline-last order taken from the repository's AGENTS.md. Each error is classified by category, with a table mapping categories to actions such as fixing the code, fixing an annotation, adding a defensive check at the boundary, or adding an inline ignore.

The skill prefers inline @phpstan-ignore comments with a reason over baseline entries, and uses npm run phpstan:baseline only when an inline ignore is impossible. It warns against baselining errors in code just touched, errors mentioning null or false, and errors in payment, webhook, intent controller or customer linking paths. It also says to keep baseline changes out of feature commits and to re-run npm run phpstan and a filtered test:php suite afterwards. It is aimed at developers working in this codebase.

Written from the project's SKILL.md and checked against it.

What it can do

  • Fix-first triage orderEnforces the repo rule to treat baseline updates as the last option, not the first.
  • Error classification tableMaps each PHPStan error category to a specific action, such as fix the code or add an inline ignore.
  • Inline ignores with reasonsRecommends @phpstan-ignore-next-line or @phpstan-ignore-line with a reason comment over baseline entries.
  • Boundary guard guidanceShows instanceof checks for wc_get_order() and similar WordPress or WooCommerce calls returning mixed.
  • Baseline diff reviewAsks the assistant to inspect phpstan-baseline.neon changes and fix or inline-ignore unintended entries.
  • Commit hygieneAdvises keeping baseline churn out of feature commits, or splitting them into separate commits.
  • Post-change verificationRe-runs npm run phpstan and a filtered npm run test:php suite after fixes.

What you need

  • npm scripts named phpstan, phpstan:baseline and test:php
  • PHPStan configured in the project
  • An AGENTS.md policy file in the repository

Try asking

  • Triage these new PHPStan level 8 errors and fix what is real.
  • Should I baseline or fix this PHPStan error in my payment handler?
  • Add an inline phpstan ignore with a reason for this Stripe type error.

Good to know

  • Rules are cited from the repository's AGENTS.md, so they are project-specific.
  • Baselining is allowed only when an inline ignore is impossible, per the source.
  • Assumes the npm scripts phpstan, phpstan:baseline and test:php exist.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/phpstan-baseline-triage/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to phpstan-baseline-triage

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

phpstan-baseline-triage: common questions

What order does this skill use for PHPStan errors?

It uses fix first and baseline last. Baseline entries are for genuine PHPStan limitations, not a blanket suppressor.

Does it prefer inline ignores or baseline entries?

It prefers an inline @phpstan-ignore comment with a reason. It uses npm run phpstan:baseline only when an inline ignore is impossible.

Which errors should never be baselined?

Errors in code just touched, errors whose message mentions null or false, and errors in critical paths such as payment processing and webhook handling.

How do I install phpstan-baseline-triage?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is phpstan-baseline-triage free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is phpstan-baseline-triage safe to use?

It scores 72 of 100. Grades: maintenance A, licence C, 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 phpstan-baseline-triage?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

phpstan-baseline-triage Install

Add to stack

Loading.