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

paypal-error-audit

Skill by PrestaShopCorp

Audits PayPal error handling in the ps_checkout module against the official PayPal API docs. It auto-fixes gaps and creates a draft PR. Intended for maintainers after PayPal API updates or periodically.

  • Score 62
  • 36 stars
  • AFL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install paypal-error-audit

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PrestaShopCorp/ps_checkout /tmp/ps_checkout && mkdir -p ~/.claude/skills && cp -r /tmp/ps_checkout/.claude/skills/paypal-error-audit ~/.claude/skills/paypal-error-audit

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

Step-by-step: install paypal-error-audit in Claude Code

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

About

This skill audits PayPal error handling in the ps_checkout module against the official PayPal API documentation. It fetches the latest PayPal OpenAPI specs from GitHub and compares the error codes in them with the module's PayPalException constants and PayPalError switch cases. It also checks customer and merchant message coverage, admin refund message coverage, and whether error strings are wrapped in the translator.

After writing a report, the skill auto-fixes the gaps it finds by adding constants, switch cases and messages across the relevant files. It then runs php-cs-fixer, phpstan and unit tests through make targets and creates a draft pull request. The source says to use it when PayPal updates its API or periodically. It is aimed at maintainers of the ps_checkout module.

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

What it can do

  • Error code syncCompares error codes in the PayPal OpenAPI specs with the module's PayPalException and PayPalError code.
  • Customer message coverageFinds PayPalException codes that lack a customer-facing message, ranked by priority.
  • Admin refund message coverageChecks which refund-related codes are handled in the admin refund catch block.
  • Translation validationFlags error message strings that are not wrapped in the translator.
  • Auto-fix gapsAdds missing constants, switch cases, customer messages and refund messages to the module.
  • Draft PR creationRuns the make checks and creates a draft pull request with the fixes.

What you need

  • Access to the ps_checkout module repository
  • Network access to raw.githubusercontent.com to fetch PayPal specs
  • make targets for php-cs-fixer, phpstan and unit-test
  • Permission to create a draft pull request

Try asking

  • Audit PayPal error coverage in ps_checkout against the latest PayPal API specs
  • Find refund error codes that fall through to the generic catch in admin controllers
  • Check PayPal error messages in ps_checkout for hardcoded strings that need translation

Good to know

  • Covers the ps_checkout module only, with admin controllers for ps8, ps9 and ps17
  • Auto-fixes gaps and creates a draft PR, so changes need review
  • Depends on the PayPal OpenAPI specs at the GitHub URLs listed in the source

Security check

A

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

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

Alternatives to paypal-error-audit

All alternatives →

Compare with shopify, shopify-development or ticketmaster

paypal-error-audit: common questions

When should I run the PayPal error audit?

The source says to use it when PayPal updates its API or periodically to keep error coverage complete.

What does the audit change in the code?

It adds missing PayPalException constants, PayPalError switch cases, customer messages and admin refund messages, then runs the make checks and opens a draft PR.

Which PayPal documentation does it compare against?

It fetches the checkout_orders_v2 and payments_payment_v2 OpenAPI specs from the paypal-rest-api-specifications repository on GitHub.

How do I install paypal-error-audit?

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

Is paypal-error-audit free?

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

Is paypal-error-audit safe to use?

It scores 62 of 100. Grades: maintenance A, licence B, quality C. 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 paypal-error-audit?

Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.

paypal-error-audit Install

Add to stack

Loading.