wcs-cart-checkout-coupons

wcs-cart-checkout-coupons is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 115 tokens per session (2,566 once invoked), scanned A, original, MIT.

A guide to WooCommerce Subscriptions cart totals, checkout flows, recurring charges, sign-up fees, coupons, and the Store API used by block-based or headless checkouts. Recurring totals are the amounts charged on later subscription payments.

In plain words
What is it for?
Use it to customize subscription carts, classic or block checkout, recurring fees, sign-up discounts, limited-payment coupons, renewal payment carts, or headless totals.
Why use it?
It prevents the initial purchase and later renewals from being calculated as if they were the same charge. It also avoids incorrect discounts and custom price calculations.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to customize subscription carts, classic or block checkout, recurring fees, sign-up discounts, limited-payment coupons, renewal payment carts, or headless totals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill wcs-cart-checkout-coupons
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wcs-cart-checkout-coupons

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wcs-cart-checkout-coupons

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wcs-cart-checkout-coupons.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.02566
Opus 5 $0.00057 $0.01283
Sonnet 5 $0.00023 $0.00513
Haiku 4.5 $0.00012 $0.00257

Measured 9d ago against content hash a8a5b08b1c8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wcs-cart-checkout-coupons scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

woocommerce/wcs-cart-checkout-coupons/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WooCommerce Subscriptions cart, checkout, and coupons

Treat the initial charge and every recurring schedule as separate totals calculations. Let WCS build those calculations; extend them through Woo/WCS hooks instead of copying product meta into custom price arithmetic.

Start with the correct layer

Need Correct layer
Change a product's subscription schedule or plan Product/APFS APIs; use wcs-subscription-plans-apfs.
Discount recurring product amounts Persisted recurring_fee or recurring_percent coupon.
Discount only the sign-up fee sign_up_fee or sign_up_fee_percent coupon.
Preserve an existing renewal order's historical discount while paying it WCS renewal-cart reconstruction and its internal pseudo coupon.
Add a recurring fee Add a normal Woo fee, then classify the exact fee through woocommerce_subscriptions_is_recurring_fee.
Show headless recurring totals Read WCS's Store API extension; do not calculate schedules in JavaScript.
Add an unrelated Woo coupon type or virtual entitlement Use wc-coupon-types-rules or wc-coupon-dynamic.

Respect the two-level cart model

The master WC_Cart calculates the amount due now. WCS groups subscription items by recurring schedule and stores cloned, calculated carts in WC()->cart->recurring_carts.

  • WC_Subscriptions_Cart::get_calculation_type() is none for the initial cart and recurring_total while a recurring clone is being calculated.
  • A cart can contain multiple recurring carts when products have different billing interval, period, trial, length, or first-payment dates.
  • Recurring carts are derived runtime projections. Do not persist or mutate them as business records.
  • Do not assume they exist before calculate_totals() has completed.
  • Totals callbacks can run many times and recursively for cloned carts. Keep callbacks deterministic, scoped, and idempotent.

For a read-only integration, consume calculated values. For a pricing integration, hook the normal Woo calculation pipeline and explicitly decide whether the rule applies to the initial calculation, recurring calculations, or both.

Read the full file on GitHub · 178 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 178 lines · 115 tokens per session scan A a8a5b08b1c8d

Subscribe to this mod's changes

wcs-cart-checkout-coupons is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 115 tokens to every session and 2,566 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

commerce-app-business-config

Manage custom business configuration in an Adobe Commerce app. Use when the user wants to add, modify, or remove merchant-configurable settings (config fields, admin config, store configuration) exposed through Commerce Admin. Creates typed config fields (text, password, email, url, tel, boolean, list) in…

adobe/skills · 80 tokens

muapi-amazon-product-listing

Generate a complete Amazon product listing image set — hero image, lifestyle shot, infographic with features, and comparison/detail closeups optimized for Amazon standards.

SamurAIGPT/Generative-Media-Skills · 37 tokens

muapi-multi-angle-shots

Generate a complete set of multi-angle product shots — front, side, back, top-down, and 45-degree perspective — for comprehensive product visualization.

SamurAIGPT/Generative-Media-Skills · 38 tokens

menu-engineer

Optimize menu pricing, placement, and item mix to maximize profitability. Uses menu engineering frameworks to analyze item performance by popularity and margin, then recommends pricing tweaks, repositioning, and removals.

cosmicstack-labs/mercury-agent-skills · 42 tokens

price-scout

Track and compare supplier prices across multiple vendors to reduce COGS. Monitors price changes, identifies savings opportunities, calculates total cost of ownership (including delivery fees and minimums), and generates renegotiation briefs.

cosmicstack-labs/mercury-agent-skills · 47 tokens

table-manager

Optimize table turns, manage reservations, and reduce wait times to maximize revenue per seat. Handles booking intake, table assignment strategy, waitlist management, and provides actionable insights for seating efficiency.

cosmicstack-labs/mercury-agent-skills · 40 tokens