API Forge
EliasOulkadi/shokunin
Design REST/GraphQL APIs with OpenAPI 3.1, error handling, pagination, rate limiting, webhooks, and idempotency.
Stripe payments integration patterns. An agent skill from cohen-liel/hivemind.
$ npx skills add cohen-liel/hivemind --skill stripe-payments -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cohen-liel/hivemind stripe-payments --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cohen-liel/hivemind.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/stripe-payments .claude/skills/stripe-payments && rm -rf skills-srcUse ~/.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/
Install the "stripe-payments" agent skill from https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-payments into .claude/skills/stripe-payments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stripe-payments", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-paymentsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cohen-liel/hivemind --skill stripe-payments -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cohen-liel/hivemind stripe-payments --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cohen-liel/hivemind.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/stripe-payments .agents/skills/stripe-payments && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "stripe-payments" agent skill from https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-payments into .agents/skills/stripe-payments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stripe-payments", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cohen-liel/hivemind --skill stripe-payments -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cohen-liel/hivemind stripe-payments --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cohen-liel/hivemind.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/stripe-payments .cursor/skills/stripe-payments && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "stripe-payments" agent skill from https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-payments into .cursor/skills/stripe-payments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stripe-payments", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cohen-liel/hivemind.git --path .claude/skills/stripe-payments--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cohen-liel/hivemind --skill stripe-payments -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cohen-liel/hivemind stripe-payments --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cohen-liel/hivemind.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/stripe-payments .gemini/skills/stripe-payments && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "stripe-payments" agent skill from https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-payments into .gemini/skills/stripe-payments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stripe-payments", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cohen-liel/hivemind stripe-paymentsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cohen-liel/hivemind --skill stripe-payments -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cohen-liel/hivemind.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/stripe-payments .github/skills/stripe-payments && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "stripe-payments" agent skill from https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-payments into .github/skills/stripe-payments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stripe-payments", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cohen-liel/hivemind --skill stripe-payments -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cohen-liel/hivemind stripe-payments --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cohen-liel/hivemind.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/stripe-payments .opencode/skills/stripe-payments && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "stripe-payments" agent skill from https://github.com/cohen-liel/hivemind/tree/main/.claude/skills/stripe-payments into .opencode/skills/stripe-payments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stripe-payments", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
stripe-paymentsStripe payments integration patterns. An agent skill from cohen-liel/hivemind.
Stripe Payments is an agent skill from cohen-liel/hivemind. Stripe payments integration patterns. Use when implementing payments, subscriptions, webhooks, checkout sessions, or any payment processing with Stripe.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Webhooks and Third-party API integration. It works with Stripe. The repository describes itself as: One prompt. A full AI engineering team. Go lie on the couch. 🧠. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 918dd9b. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
stripeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
STRIPE_SECRET_KEYWEBHOOK_SECRETSTRIPE_WEBHOOK_SECRETNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Stripe Payments loads about 1.8k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 109 words of instructions outside code blocks.
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.
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.
The full file from cohen-liel/hivemind at commit 918dd9b, republished under its Apache-2.0 licence (© cohen-liel). 109 words, ~1,827 tokens.
.claude/skills/stripe-payments/SKILL.md (or your agent's skills folder).# payments.py
import stripe
from fastapi import HTTPException
stripe.api_key = settings.STRIPE_SECRET_KEY
WEBHOOK_SECRET = settings.STRIPE_WEBHOOK_SECRET// lib/stripe.ts
import Stripe from 'stripe'
export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
apiVersion: '2024-06-20',
})@router.post("/create-checkout-session")
async def create_checkout_session(user: User = Depends(get_current_user)):
session = stripe.checkout.Session.create(
payment_method_types=["card"],
line_items=[{
"price": "price_xyz123", # Price ID from Stripe dashboard
"quantity": 1,
}],
mode="payment",
success_url=f"{BASE_URL}/success?session_id={{CHECKOUT_SESSION_ID}}",
cancel_url=f"{BASE_URL}/cancel",
customer_email=user.email,
metadata={"user_id": str(user.id)},
)
return {"checkout_url": session.url}// Next.js API route
export async function POST(req: Request) {
const session = await stripe.checkout.sessions.create({
payment_method_types: ['card'],
line_items: [{ price: 'price_xyz123', quantity: 1 }],
mode: 'payment',
success_url: `${process.env.NEXT_PUBLIC_URL}/success`,
cancel_url: `${process.env.NEXT_PUBLIC_URL}/cancel`,
})
return Response.json({ url: session.url })
}@router.post("/create-subscription")
async def create_subscription(
price_id: str,
user: User = Depends(get_current_user),
):
# Create or retrieve Stripe customer
if not user.stripe_customer_id:
customer = stripe.Customer.create(
email=user.email,
metadata={"user_id": str(user.id)},
)
await db.user.update(user.id, stripe_customer_id=customer.id)
customer_id = customer.id
else:
customer_id = user.stripe_customer_id
session = stripe.checkout.Session.create(
customer=customer_id,
payment_method_types=["card"],
line_items=[{"price": price_id, "quantity": 1}],
mode="subscription",
success_url=f"{BASE_URL}/dashboard?upgraded=1",
cancel_url=f"{BASE_URL}/pricing",
)
return {"checkout_url": session.url}
@router.post("/cancel-subscription")
async def cancel_subscription(user: User = Depends(get_current_user)):
subscription = stripe.Subscription.retrieve(user.stripe_subscription_id)
# Cancel at period end (not immediately)
stripe.Subscription.modify(
user.stripe_subscription_id,
cancel_at_period_end=True,
)
return {"message": "Subscription will cancel at end of billing period"}@router.post("/webhooks/stripe")
async def stripe_webhook(request: Request):
payload = await request.body()
sig_header = request.headers.get("stripe-signature")
try:
event = stripe.Webhook.construct_event(
payload, sig_header, WEBHOOK_SECRET
)
except stripe.error.SignatureVerificationError:
raise HTTPException(status_code=400, detail="Invalid signature")
# Handle events
if event["type"] == "checkout.session.completed":
session = event["data"]["object"]
await handle_checkout_complete(session)
elif event["type"] == "customer.subscription.updated":
subscription = event["data"]["object"]
await handle_subscription_update(subscription)
elif event["type"] == "customer.subscription.deleted":
subscription = event["data"]["object"]
await handle_subscription_cancel(subscription)
elif event["type"] == "invoice.payment_failed":
invoice = event["data"]["object"]
await handle_payment_failed(invoice)
return {"status": "ok"}
async def handle_checkout_complete(session: dict):
user_id = session["metadata"]["user_id"]
if session["mode"] == "subscription":
sub_id = session["subscription"]
subscription = stripe.Subscription.retrieve(sub_id)
await db.user.update(
user_id,
stripe_subscription_id=sub_id,
subscription_status="active",
plan_expires_at=datetime.fromtimestamp(subscription["current_period_end"]),
)
elif session["mode"] == "payment":
await db.order.create(user_id=user_id, amount=session["amount_total"])@router.post("/billing-portal")
async def create_billing_portal(user: User = Depends(get_current_user)):
session = stripe.billing_portal.Session.create(
customer=user.stripe_customer_id,
return_url=f"{BASE_URL}/dashboard",
)
return {"portal_url": session.url}@router.post("/create-payment-intent")
async def create_payment_intent(amount: int, currency: str = "usd"):
intent = stripe.PaymentIntent.create(
amount=amount, # In cents (e.g., 1999 = $19.99)
currency=currency,
automatic_payment_methods={"enabled": True},
)
return {"client_secret": intent.client_secret}// React + Stripe Elements
import { loadStripe } from '@stripe/stripe-js'
import { Elements, PaymentElement, useStripe, useElements } from '@stripe/react-stripe-js'
const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!)
function CheckoutForm() {
const stripe = useStripe()
const elements = useElements()
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault()
if (!stripe || !elements) return
const { error } = await stripe.confirmPayment({
elements,
confirmParams: { return_url: `${window.location.origin}/success` },
})
if (error) console.error(error.message)
}
return (
<form onSubmit={handleSubmit}>
<PaymentElement />
<button type="submit" disabled={!stripe}>Pay</button>
</form>
)
}
function PaymentPage({ clientSecret }: { clientSecret: string }) {
return (
<Elements stripe={stripePromise} options={{ clientSecret }}>
<CheckoutForm />
</Elements>
)
}# Use Stripe test cards:
# 4242 4242 4242 4242 — success
# 4000 0000 0000 0002 — declined
# 4000 0025 0000 3155 — 3D Secure required
# Test webhooks locally:
# stripe listen --forward-to localhost:8000/webhooks/stripecancel_at_period_end=True not immediate cancellation (better UX)stripe listen) before deploying webhooks© cohen-liel, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/stripe-payments of cohen-liel/hivemind.
Open the folder on GitHubat commit 918dd9b
Stripe Payments 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Stripe Payments this skillcohen-liel/hivemind | 110 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| API ForgeEliasOulkadi/shokunin | 114 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Firecrawl Build Onboardingfirecrawl/firecrawl | 190k | 1 repos | ~1.4k | Automated safety check: Notes | ISC | |
| Stripe Appsfossasia/eventyay | 1.7k | 1 repos | ~3.6k | Automated safety check: Pass | Apache-2.0 | |
| Dinero Currency Patternsdinerojs/dinero.js | 6.8k | — | ~650 | Automated safety check: Pass | MIT | |
| Stripe Best Practiceskanchengw/cnllm | 173 | 2 repos | ~925 | Automated safety check: Pass | Apache-2.0 |
EliasOulkadi/shokunin
Design REST/GraphQL APIs with OpenAPI 3.1, error handling, pagination, rate limiting, webhooks, and idempotency.
firecrawl/firecrawl
Gets Firecrawl working in a project: signs you in through the browser, saves FIRECRAWL_API_KEY to .env and picks the first SDK or REST path.
fossasia/eventyay
A skill your agent uses when building, modifying, or reviewing a Stripe App — or when the user describes something that implies one (e.g.
dinerojs/dinero.js
Currency handling patterns for the Dinero.js money library. An agent skill from dinerojs/dinero.js.
kanchengw/cnllm
Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…
luadotsh/lua
Handles Laravel Cashier Stripe integration including subscriptions, webhooks, Stripe Checkout, invoices, charges, refunds, trials, coupons, metered billing, and payment failure handling.
cohen-liel/hivemind
REST API design principles and best practices. An agent skill from cohen-liel/hivemind.
cohen-liel/hivemind
Python asyncio patterns for high-performance async code. An agent skill from cohen-liel/hivemind.
cohen-liel/hivemind
Celery background task patterns for Python apps. An agent skill from cohen-liel/hivemind.
cohen-liel/hivemind
Docker, docker-compose, and deployment configuration best practices.
cohen-liel/hivemind
End-to-end testing patterns with Playwright. An agent skill from cohen-liel/hivemind.
cohen-liel/hivemind
Email sending patterns for transactional and marketing emails.
Works with
Categories
Stripe payments integration patterns. An agent skill from cohen-liel/hivemind. Stripe Payments is an agent skill from cohen-liel/hivemind. Stripe payments integration patterns.
Stripe Payments fits situations like: implementing payments; checkout sessions; any payment processing with Stripe.
Run `npx skills add cohen-liel/hivemind --skill stripe-payments -a claude-code`. Or copy the skill folder (.claude/skills/stripe-payments in cohen-liel/hivemind) into .claude/skills/stripe-payments in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cohen-liel/hivemind --skill stripe-payments -a codex`. Or copy the skill folder (.claude/skills/stripe-payments in cohen-liel/hivemind) into .agents/skills/stripe-payments in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cohen-liel/hivemind --skill stripe-payments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stripe-payments, .gemini/skills/stripe-payments, .github/skills/stripe-payments and .opencode/skills/stripe-payments in your project.
Going by SKILL.md and its folder, Stripe Payments needs the command-line tools its instructions call (stripe) and credentials named STRIPE_SECRET_KEY, WEBHOOK_SECRET, STRIPE_WEBHOOK_SECRET and NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY. Our summary lists: Python 3; A credential in STRIPE_SECRET_KEY; A credential in WEBHOOK_SECRET.
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.
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.
Stripe Payments is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Stripe Payments: API Forge (EliasOulkadi/shokunin, 114 stars), Firecrawl Build Onboarding (firecrawl/firecrawl, 190k stars), Stripe Apps (fossasia/eventyay, 1.7k stars) and Dinero Currency Patterns (dinerojs/dinero.js, 6.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cohen-liel (a GitHub user) maintains it in cohen-liel/hivemind, which has 110 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on April 18, 2026.
Source: cohen-liel/hivemind on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.