Agent skill

Cashier Stripe Development

by luadotsh in luadotsh/lua

Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling.

MITAuto-check passedBackend & APIs

Install Cashier Stripe Development

skills CLI
$ npx skills add luadotsh/lua --skill cashier-stripe-development -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install luadotsh/lua cashier-stripe-development --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/luadotsh/lua.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cashier-stripe-development .claude/skills/cashier-stripe-development && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cashier-stripe-development
GitHub stars
343
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
447 words
Files
4 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling.

  • Works in 3 steps: Run migrations and confirm stripe_id,… → Test the webhook endpoint with stripe… → Confirm $user->subscribed('default')…
  • Tasks that involve Webhooks
  • SKILL.md covers Documentation, Basic Usage, Verification and Common Pitfalls
  • Calls php and stripe; needs STRIPE_KEY and STRIPE_SECRET

What it does

Cashier Stripe Development is an agent skill from luadotsh/lua. Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling. Triggered when a user mentions Cashier, Billable, IncompletePayment, stripeid, newSubscription, Stripe subscriptions, or billing. Also applies when setting up webhooks, handling SCA/3DS payment failures, testing with Stripe test cards, or troubleshooting incomplete subscriptions, CSRF webhook errors, or migration publish issues.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/subscriptions.md`, `references/testing.md` and `references/webhooks.md`).

It sits in Backend & APIs, covering Webhooks, Web application vulnerabilities and Forms and invoices. It works with Stripe and Laravel. The repository describes itself as: Open-source, next-generation, and scalable URL shortener designed for modern teams. The licence is MIT.

When your agent uses it

  • Tasks that involve Webhooks
  • Tasks that involve Web application vulnerabilities
  • Tasks that involve Forms and invoices

Example prompts

  • “Use the cashier-stripe-development skill to handle Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices…”
  • “/cashier-stripe-development”

Requirements

  • A credential in STRIPE_KEY
  • A credential in STRIPE_SECRET

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Run migrations and confirm stripe_id, pm_type, pm_last_four, and trial_ends_at columns exist on the billable model table
  2. Test the webhook endpoint with stripe listen --forward-to localhost/stripe/webhook if you use the default path, or swap stripe for your…
  3. Confirm $user->subscribed('default') returns the expected value for active and incomplete subscriptions

What it can do on your machine

Read from SKILL.md and the folder at commit b1929e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • php
    • stripe

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • STRIPE_KEY
    • STRIPE_SECRET
    • STRIPE_WEBHOOK_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cashier Stripe Development loads about 1.2k tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 136 tokens; SKILL.md has 447 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~136
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from luadotsh/lua at commit b1929e1, republished under its MIT licence (© luadotsh). 447 words, ~1,232 tokens.

Download SKILL.mdSave it as .claude/skills/cashier-stripe-development/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
cashier-stripe-development
description
Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling. Triggered when a user mentions Cashier, Billable, IncompletePayment, stripe_id, newSubscription, Stripe subscriptions, or billing. Also applies when setting up webhooks, handling SCA/3DS payment failures, testing with Stripe test cards, or troubleshooting incomplete subscriptions, CSRF webhook errors, or migration publish issues.
license
MIT
metadata.author
laravel

Cashier Stripe Development

Documentation

Use search-docs for detailed Cashier patterns and documentation covering subscriptions, webhooks, Stripe Checkout, invoices, payment methods, and testing.

For deeper guidance on specific topics, read the relevant reference file before implementing:

  • references/subscriptions.md covers subscription creation, status checks, swapping, trials, quantities, and multiple products
  • references/webhooks.md covers webhook setup, custom handlers, CSRF exclusion, and local development with the Stripe CLI
  • references/testing.md covers Stripe test cards, payment method tokens, and feature test patterns

Basic Usage

Installation
bash
php artisan vendor:publish --tag="cashier-migrations"
php artisan migrate
php artisan vendor:publish --tag="cashier-config"
Environment Variables
STRIPE_KEY=pk_test_...
STRIPE_SECRET=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
CASHIER_CURRENCY=usd
CASHIER_CURRENCY_LOCALE=en_US
Billable Model
<!-- Add Billable Trait -->
php
use Laravel\Cashier\Billable;

class User extends Authenticatable
{
    use Billable;
}

For a non-User model, register it in a service provider:

<!-- Custom Billable Model -->
php
// In AppServiceProvider::boot()
Cashier::useCustomerModel(Team::class);
Creating a Subscription
<!-- Create Subscription -->
php
use Laravel\Cashier\Exceptions\IncompletePayment;

try {
    $user->newSubscription('default', 'price_xxxx')->create($paymentMethodId);
} catch (IncompletePayment $e) {
    return redirect()->route('cashier.payment', [$e->payment->id, 'redirect' => route('home')]);
}

Always wrap subscription creation in a try/catch for IncompletePayment. When a card requires 3DS authentication, Cashier throws this exception. The cashier.payment route is auto-registered and handles the confirmation flow.

Verification

  1. Run migrations and confirm stripe_id, pm_type, pm_last_four, and trial_ends_at columns exist on the billable model table
  2. Test the webhook endpoint with stripe listen --forward-to localhost/stripe/webhook if you use the default path, or swap stripe for your configured CASHIER_PATH
  3. Confirm $user->subscribed('default') returns the expected value for active and incomplete subscriptions

Common Pitfalls

  • The migration publish tag is cashier-migrations, not cashier. Running migrate before publishing results in missing columns and tables.
  • CASHIER_CURRENCY must be set explicitly. It defaults to USD, which silently breaks non-US apps.
  • The Stripe CLI generates its own webhook signing secret. It is different from the Dashboard endpoint secret. Using the wrong one causes signature verification failures.
  • The webhook route must be excluded from CSRF verification using your configured cashier.path. If you change CASHIER_PATH from stripe to billing, exclude billing/*, not stripe/*.
  • canceled() returns true as soon as cancel() is called, but the user still has access during the grace period. Use ended() to confirm access is fully revoked.
  • subscribed() returns true during the grace period even though the subscription is canceled.
  • subscribed() returns false for incomplete and past_due subscriptions by default.
  • Prices cannot be swapped and quantity cannot be updated while a subscription has an incomplete payment.
  • When extending WebhookController, call Cashier::ignoreRoutes() in a service provider and re-register both cashier.payment and cashier.webhook under the configured cashier.path.
  • Use Cashier::useCustomerModel() in a service provider to set a custom billable model. There is no CASHIER_MODEL env var.
  • trial_ends_at is a local database column synced via webhooks. It will be stale if webhooks are not configured in production.
  • In MySQL, the stripe_id column must use utf8_bin collation to avoid case-sensitivity issues.
  • noProrate() has no effect when combined with swapAndInvoice(). That method always prorates.
  • Methods like withPromotionCode() require the Stripe API ID such as promo_xxxx, not the customer-facing code. Use findPromotionCode() to resolve a code to its ID.
  • Always use search-docs for the latest Cashier documentation rather than relying on this skill alone.

© luadotsh, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in .claude/skills/cashier-stripe-development of luadotsh/lua.

  • SKILL.md
  • references/subscriptions.md
  • references/testing.md
  • references/webhooks.md

Open the folder on GitHubat commit b1929e1

Used in 1 other repository

We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in luadotsh/lua, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Cashier Stripe Development next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cashier Stripe Development compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cashier Stripe Development this skillluadotsh/lua3431 repos~1.2kAutomated safety check: PassMIT
Spa Auth Developmentgdarko/laravel-vue-starter145—~668Automated safety check: NotesMIT
Rails Security Multitenancymarckohlbrugge/37signals-skills724—~1.7kAutomated safety check: PassNone
Upgrade Stripefossasia/eventyay1.7k1 repos~2.3kAutomated safety check: PassApache-2.0
Laravel Securityaffaan-m/ECC277k3 repos~2kAutomated safety check: PassMIT
Laravel Securityaffaan-m/ECC277k1 repos~6.7kAutomated safety check: NotesMIT

Similar skills

  • Spa Auth Development

    gdarko/laravel-vue-starter

    Activate when working on SPA authentication flow, Sanctum cookie-based auth, Vue Router guards, auth store, login/register/password reset pages, or CORS/session configuration.

    145 GitHub stars~668 tokensUpdated 6 mo ago
    Backend & APIsAuto-check: notes
  • Rails Security Multitenancy

    marckohlbrugge/37signals-skills

    Apply Rails security and multi-tenant safety practices including scoped queries, SSRF defenses, rate limiting, and tenant-scoped realtime updates.

    724 GitHub stars~1.7k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Upgrade Stripe

    fossasia/eventyay

    Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs

    1.7k GitHub starsUsed in 1 repo~2.3k tokens
    Backend & APIsAuto-check passed
  • Laravel Security

    affaan-m/ECC

    Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.

    277k GitHub starsUsed in 3 repos~2k tokens
    Backend & APIsAuto-check passed
  • Laravel Security

    affaan-m/ECC

    Laravel security best practices — authentication, authorization, Eloquent safety, CSRF, XSS prevention, API security, and secure deployment configurations.

    277k GitHub starsUsed in 1 repo~6.7k tokens
    Backend & APIsAuto-check: notes
  • Laravel Security

    affaan-m/ECC

    Laravel 安全最佳实践,涵盖认证/授权、验证、CSRF、批量赋值、文件上传、密钥管理、速率限制和安全部署. An agent skill from affaan-m/ECC.

    277k GitHub starsUsed in 1 repo~1.3k tokens
    Backend & APIsAuto-check passed

More from luadotsh/lua

  • Pest Testing

    luadotsh/lua

    A skill your agent uses for Pest PHP testing in Laravel projects only.

    343 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed

Works with

Categories

Questions about Cashier Stripe Development

What does Cashier Stripe Development do?

Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling. Cashier Stripe Development is an agent skill from luadotsh/lua. Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling.

When should I use Cashier Stripe Development?

Cashier Stripe Development fits situations like: tasks that involve Webhooks; tasks that involve Web application vulnerabilities; tasks that involve Forms and invoices.

How do I install Cashier Stripe Development in Claude Code?

Run `npx skills add luadotsh/lua --skill cashier-stripe-development -a claude-code`. Or copy the skill folder (.claude/skills/cashier-stripe-development in luadotsh/lua) into .claude/skills/cashier-stripe-development in your project. Claude Code loads it when a task matches its description.

How do I install Cashier Stripe Development in Codex?

Run `npx skills add luadotsh/lua --skill cashier-stripe-development -a codex`. Or copy the skill folder (.claude/skills/cashier-stripe-development in luadotsh/lua) into .agents/skills/cashier-stripe-development in your project. Codex loads it when a task matches its description.

Can I use Cashier Stripe Development in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add luadotsh/lua --skill cashier-stripe-development -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cashier-stripe-development, .gemini/skills/cashier-stripe-development, .github/skills/cashier-stripe-development and .opencode/skills/cashier-stripe-development in your project.

What does Cashier Stripe Development need to run?

Going by SKILL.md and its folder, Cashier Stripe Development needs the command-line tools its instructions call (php and stripe) and credentials named STRIPE_KEY, STRIPE_SECRET and STRIPE_WEBHOOK_SECRET. Our summary lists: A credential in STRIPE_KEY; A credential in STRIPE_SECRET.

Does Cashier Stripe Development access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cashier Stripe Development safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cashier Stripe Development use?

Cashier Stripe Development is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cashier Stripe Development use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.4k tokens, read only when the agent opens those files.

What are the alternatives to Cashier Stripe Development?

Skills that share tags, products or a category with Cashier Stripe Development: Spa Auth Development (gdarko/laravel-vue-starter, 145 stars), Rails Security Multitenancy (marckohlbrugge/37signals-skills, 724 stars), Upgrade Stripe (fossasia/eventyay, 1.7k stars) and Laravel Security (affaan-m/ECC, 277k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cashier Stripe Development?

luadotsh (a GitHub organization) maintains it in luadotsh/lua, which has 343 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 21, 2026.

Source: luadotsh/lua on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.