agent-coordination
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialists, managing…
Stripe payment integration patterns. Use when implementing payment flows, handling webhooks, or working with subscriptions. Routes to existing patterns and provides evidence templates for payment testing.
Claude Code
$ npx -y skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns --agent claude-code
Codex
$ npx skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns -a codex -y
Cursor
$ npx skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns -a cursor -y
Gemini CLI
$ npx skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns -a gemini-cli -y
GitHub Copilot
$ npx skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns -a github-copilot -y
OpenCode
$ npx skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns -a opencode -y
Windsurf
$ npx skills add bybren-llc/safe-agentic-workflow --skill stripe-patterns -a windsurf -y
name: stripe-patterns description: Stripe payment integration patterns. Use when implementing payment flows, handling webhooks, or working with subscriptions. Routes to existing patterns and provides evidence templates for payment testing. user-invocable: false allowed-tools: Read, Grep, Glob
Guide safe and consistent Stripe integration. Routes to existing payment patterns and provides evidence templates for testing.
Invoke this skill when:
Before ANY payment work:
For webhook handlers:
// Idempotent webhook pattern
await withSystemContext(prisma, "webhook", async (client) => {
// Check if already processed
const existing = await client.webhook_events.findUnique({
where: { stripe_event_id: event.id },
});
if (existing) {
console.log(`Skipping duplicate event: ${event.id}`);
return;
}
// Process and record
await client.webhook_events.create({
data: {
stripe_event_id: event.id,
event_type: event.type,
processed_at: new Date(),
},
});
});**ALWAYS** verify webhook signatures:
import { stripe } from "@/lib/stripe-config";
const signature = request.headers.get("stripe-signature");
const event = stripe.webhooks.constructEvent(
body,
signature,
process.env.STRIPE_WEBHOOK_SECRET,
);import { createStripeClient } from "@/lib/stripe-config";
import { withUserContext } from "@/lib/rls-context";
export async function createCheckout(userId: string, priceId: string) {
const stripe = createStripeClient();
// Store user context for success handling
const session = await stripe.checkout.sessions.create({
mode: "subscription",
line_items: [{ price: priceId, quantity: 1 }],
success_url: `${process.env.NEXT_PUBLIC_APP_URL}/success?session_id={{CHECKOUT_SESSION_ID}}`,
cancel_url: `${process.env.NEXT_PUBLIC_APP_URL}/pricing`,
metadata: { userId },
});
return session;
}// Webhook event types to handle const SUBSCRIPTION_EVENTS = [ "customer.subscription.created", "customer.subscription.updated", "customer.subscription.deleted", "invoice.payment_succeeded", "invoice.payment_failed", ];
When completing payment work, attach this evidence block:
**Payment Testing Evidence** - [ ] Test mode verified (`sk_test_` key) - [ ] Webhook signature verification tested - [ ] Idempotency tested (duplicate event handling) - [ ] Success flow tested (card 4242...) - [ ] Failure flow tested (card 4000000000000002) - [ ] Subscription lifecycle tested (create/update/cancel) **Test Results:** - Checkout session: [session_id] - Webhook events processed: [count] - Subscription status: [active/cancelled]
SAW — SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!) Works for any team with repeatable processes: Software, Marketing, Research, Legal, Operations.
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialists, managing…
API route implementation patterns with RLS, Zod validation, and error handling. Use when creating API routes, implementing…
Documentation templates for ADRs, runbooks, and architecture docs. Use when creating architectural decision records, operational…
Deployment workflows, pre-deploy validation, and smoke testing patterns. Use when deploying to staging or production, running…
Frontend patterns for Next.js App Router, Clerk auth, shadcn/Radix UI, and PostHog analytics. Use when building UI components,…
Advanced git operations including rebase, bisect, cherry-pick, and conflict resolution. Use when rebasing branches, debugging…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.