rugged-gemini: Skill for Gemini CLI

.gemini/skills/payment-integration/SKILL.md

payment-integration is a skill for Gemini CLI from irahardianto/rugged-gemini. It costs 29 tokens per session (639 once invoked), scanned A, a copy of payment-integration, MIT.

A guide to integrating payment gateways and building payment systems with card-data protection and reliable transaction handling.

In plain words
What is it for?
It is for tokenized card payments, PCI DSS practices, subscriptions, webhooks, idempotent retries, authorization and capture, and fraud prevention.
Why use it?
It helps prevent duplicate charges, unsafe storage or logging of card details, and common payment-compliance problems.

Skill for Gemini CLI

Written for Gemini CLI: installed under .gemini/. Also seen: mentions Gemini CLI.

This is irahardianto/rugged-gemini's own configuration. It tells Gemini CLI how to work on rugged-gemini itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rugged-gemini configures →

Reuse

Borrowing it

Nothing to install: this file belongs to irahardianto/rugged-gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/irahardianto/rugged-gemini/main/.gemini/skills/payment-integration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/irahardianto/rugged-gemini

Made for: Gemini CLI.

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 payment-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/payment-integration/github.svg)](https://agentmods.dev/skills/irahardianto/rugged-gemini/payment-integration)
Your own site
<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/payment-integration"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/payment-integration/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 payment-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/payment-integration"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/payment-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 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.
Origin 88% copy Near-identical to another mod 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.00029 $0.00639
Opus 5 $0.00015 $0.00319
Sonnet 5 $0.00006 $0.00128
Haiku 4.5 $0.00003 $0.00064

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

Security

Grade A, and why

payment-integration 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 5d 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.

Origin

This is a copy

88% identical to payment-integration — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.gemini/skills/payment-integration/SKILL.md · 89 lines

How it starts

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

Payment Integration Principles

Guidelines for building secure, compliant payment systems.

When to Invoke

  • Integrating payment gateways (Stripe, Adyen, etc.)
  • PCI compliance requirements
  • Subscription/billing system design
  • Fraud prevention implementation

Security (Non-Negotiable)

PCI DSS Compliance

  1. Never store raw card data — use tokenization via gateway.
  2. Never log payment credentials — mask card numbers, CVV never stored.
  3. TLS everywhere — all payment communication over HTTPS.
  4. Minimal data retention — store only what's legally required.

Tokenization Flow

User → Client-side SDK (Stripe.js/Elements) → Gateway tokenizes → Token to your server → Server charges via token

Your server never sees raw card data.

Transaction Patterns

Idempotency (Critical)

POST /api/payments
Idempotency-Key: unique-request-id-abc123

→ Gateway processes once, returns same result on retry
  • Generate idempotency key client-side or server-side
  • Store key → result mapping for deduplication
  • Retry-safe — network failures don't cause double charges

Authorization Flow

Authorize → Capture → Settle
         → Void (cancel before capture)
         → Refund (after capture)

Webhook Handling

  1. Verify webhook signatures — never trust unverified payloads.
  2. Idempotent processing — webhooks may be delivered multiple times.
  3. Queue webhooks — process asynchronously, acknowledge immediately (200 OK).
  4. Handle out-of-order delivery — use event timestamps, not arrival order.

Subscription Billing

Lifecycle

Trial → Active → Past Due (dunning) → Cancelled/Expired
              → Upgraded/Downgraded (proration)

Dunning Management

  • Retry failed payments (exponential backoff: day 1, 3, 7, 14)
  • Notify user before and after each retry
  • Grace period before cancellation

Fraud Prevention

  1. 3D Secure (SCA) for European payments (PSD2 requirement).
  2. Address Verification (AVS) — match billing address.
  3. Velocity checks — rate-limit transactions per user/IP.
  4. Risk scoring — use gateway's built-in fraud tools.

Read the full file on GitHub · 89 lines

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. 5d ago First seen · 89 lines · 29 tokens per session scan A 8dacdb30cabc

Subscribe to this mod's changes

payment-integration is a skill published in the GitHub repository irahardianto/rugged-gemini (5 stars, last pushed 4mo ago), licensed MIT. It adds 29 tokens to every session and 639 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to payment-integration, differing in 8 lines, and is treated as a copy.

Related

Other skills, from other repositories

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

amazon-price-tracker

Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.

nexscope-ai/Amazon-Skills · 51 tokens