[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74F4R95EHJ1YCSQ1Q64BZ52":3,"skill-same:01M74F4R95EHJ1YCSQ1Q64BZ52":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M74F4R95EHJ1YCSQ1Q64BZ52","stripe-webhook-idempotency",null,"Stripe-specific webhook idempotency -- signature verification with the constructEvent API, retry-id reuse via `event.id`, double-fulfilment guards on PaymentIntent \u002F Charge \u002F Invoice events. Extends the universal `security\u002Fwebhook-idempotency` skill with Stripe's event-id discipline and signing-secret rotation patterns. Triggers on Stripe webhook handler authoring (`stripe.webhooks.constructEvent` references, Stripe-Signature header handling). OWASP ASI02 (Tool Misuse) defense.","MILTONADINA\u002FDevOPs","MILTONADINA","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106546372?v=4","01M74F3R2PP4Z04DQMMBHSQAT1","Milton Adina","01M74F3R3CHTKPXJV4RP7RR3W8",0,"MIT","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Fstack-specific\u002Fstripe\u002Fwebhook-idempotency\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: stripe-webhook-idempotency\ndescription: Stripe-specific webhook idempotency -- signature verification with the constructEvent API, retry-id reuse via `event.id`, double-fulfilment guards on PaymentIntent \u002F Charge \u002F Invoice events. Extends the universal `security\u002Fwebhook-idempotency` skill with Stripe's event-id discipline and signing-secret rotation patterns. Triggers on Stripe webhook handler authoring (`stripe.webhooks.constructEvent` references, Stripe-Signature header handling). OWASP ASI02 (Tool Misuse) defense.\n---\n\n# Stripe Webhook Idempotency\n\n> Stripe-specific extension of the universal\n> [`security\u002Fwebhook-idempotency`](..\u002F..\u002F..\u002Funiversal\u002Fsecurity\u002Fwebhook-idempotency\u002FSKILL.md)\n> skill. Read that first for the provider-agnostic patterns\n> (idempotency-key, replay-window, storage strategies). This skill layers\n> Stripe's specifics on top: `constructEvent` for signature verification,\n> `event.id` discipline, signing-secret rotation, and the per-event-type\n> fulfilment guards that close ASI02 (Tool Misuse) for Stripe handlers.\n\n**Tradeoff:** Stripe is the highest-volume webhook surface for most\napplications and Stripe events drive money-moving side effects -- the\nstrictest place to get idempotency right. The cost: extra discipline on\nsignature verification, event-id handling, and event-type-specific\nfulfilment checks beyond what the universal pattern provides.\n\n---\n\n## Why this matters\n\nStripe retries webhook delivery for up to 3 days on transient failures.\nEvery retry that lands after the receiver successfully processed the\nevent (but before the response made it back) is a duplicate. Production\nincidents from missing this:\n\n- Two charges on the same `payment_intent.succeeded`.\n- Two emails on the same `invoice.payment_succeeded`.\n- Two database updates on the same `customer.subscription.updated`.\n- Stale fulfilment if a later retry of an earlier event arrives after a\n  newer event has already been processed.\n\nThe universal patterns close the dedupe-key gap. Stripe-specific patterns\nclose the verification + fulfilment-guard gaps.\n\n---\n\n## Pattern 1 -- Verify the signature with `constructEvent`, not raw HMAC\n\nStripe signs every webhook delivery with the signing secret you set when\ncreating the webhook endpoint in the Stripe dashboard (or via the API).\nUse `stripe.webhooks.constructEvent` -- it verifies the signature AND\nparses the event into a typed `Stripe.Event`. Never roll your own HMAC\ncompare against the raw body; the library handles signature-version\nquirks, replay-window enforcement, and constant-time comparison.\n\n```ts\nimport Stripe from 'stripe';\n\nconst stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);\nconst SIGNING_SECRET = process.env.STRIPE_WEBHOOK_SECRET!;\n\nasync function handleStripeWebhook(rawBody: string, signature: string) {\n  let event: Stripe.Event;\n  try {\n    event = stripe.webhooks.constructEvent(rawBody, signature, SIGNING_SECRET);\n  } catch (err) {\n    \u002F\u002F Invalid signature, malformed payload, OR replay-window exceeded\n    \u002F\u002F (Stripe SDK's default tolerance is 300 seconds).\n    return new Response('invalid signature', { status: 400 });\n  }\n  \u002F\u002F event is now a verified Stripe.Event with typed event.data.object.\n}\n```\n\nCrucially: pass the RAW request body (the unparsed bytes), not a re-\nserialized JSON. Next.js \u002F Express \u002F FastAPI \u002F Fastify all have a\n\"raw body\" middleware mode you must enable on the webhook route. A\nre-serialized body has different bytes than what Stripe signed; verification\nfails. This is the #1 first-time Stripe webhook failure mode.\n\n---\n\n## Pattern 2 -- Use `event.id` as the idempotency key, never derive from body\n\nStripe assigns every event a unique `event.id` (format `evt_...`). This is\nthe canonical retry identifier; Stripe guarantees the same id across\ndelivery attempts of the same event. Use it directly as your dedupe key\nin whichever storage strategy fits your throughput profile (see the\nuniversal skill for the Redis-TTL \u002F DB-unique-constraint \u002F in-memory\ntradeoff).\n\n```ts\nconst dedupeKey = `stripe:event:${event.id}`;\nconst claimed = await redis.set(dedupeKey, 'processing', { NX: true, EX: 86400 * 4 });\nif (claimed !== 'OK') {\n  return new Response('duplicate (idempotent)', { status: 200 });\n}\n```\n\nThe 4-day TTL covers Stripe's full 3-day retry schedule plus headroom.\nAnything shorter risks a very-late retry slipping past your dedupe window.\n\n---\n\n## Pattern 3 -- Per-event-type fulfilment guards\n\n`stripe.webhooks.constructEvent` returns a discriminated-union typed event.\nSwitch on `event.type` and apply fulfilment-state checks specific to that\ntype, NOT just the idempotency-key check. The idempotency key prevents\ndouble-processing of the SAME event; fulfilment guards prevent processing\nevents in the wrong order.\n\n```ts\nswitch (event.type) {\n  case 'payment_intent.succeeded': {\n    const pi = event.data.object;  \u002F\u002F typed Stripe.PaymentIntent\n    \u002F\u002F Guard: do not fulfill if order is already shipped.\n    const order = await db.order.findUnique({ where: { piId: pi.id } });\n    if (order?.status === 'fulfilled') {\n      return new Response('already fulfilled', { status: 200 });\n    }\n    await fulfillOrder({ orderId: order!.id, paymentIntentId: pi.id });\n    break;\n  }\n  case 'charge.refunded': {\n    const charge = event.data.object;  \u002F\u002F typed Stripe.Charge\n    await markOrderRefunded({ chargeId: charge.id });\n    break;\n  }\n  default:\n    \u002F\u002F Ignore unhandled event types -- Stripe sends many event types per\n    \u002F\u002F endpoint, processing irrelevant ones is wasted work.\n    break;\n}\n```\n\nFor event types that ARE expected to arrive multiple times legitimately\n(e.g., `customer.subscription.updated` for the same subscription on\ndifferent state transitions), use the same idempotency key (`event.id`)\nplus per-state-transition checks; don't conflate \"I've seen this event\nid\" with \"I've already processed this subscription state.\"\n\n---\n\n## Anti-patterns\n\n### Anti-pattern 1 -- Re-serializing the body before signature verification\n\n```ts\n\u002F\u002F WRONG\nconst body = await req.json();  \u002F\u002F parses + re-serializes; signature breaks\nconst event = stripe.webhooks.constructEvent(JSON.stringify(body), signature, secret);\n```\n\nThe body Stripe signed was the exact bytes that arrived; `JSON.stringify`\nre-serializes with potentially different key order, different whitespace,\ndifferent number formatting. Verification fails 100% of the time. Use the\nraw body bytes (`req.text()` or framework-specific raw-body middleware).\n\n### Anti-pattern 2 -- Using `event.data.object.id` as the dedupe key\n\n```ts\n\u002F\u002F WRONG\nconst dedupeKey = `stripe:pi:${event.data.object.id}`;  \u002F\u002F payment_intent id, NOT event id\n```\n\nA single `PaymentIntent` produces multiple events (`payment_intent.created`,\n`payment_intent.processing`, `payment_intent.succeeded`,\n`payment_intent.canceled` ...). Using `data.object.id` as the dedupe key\ntreats them as duplicates of each other -- only the first event of a given\nPaymentIntent is processed; everything else is silently dropped. Use\n`event.id`, which is unique per event.\n\n### Anti-pattern 3 -- Skipping signature verification in test mode\n\n```ts\n\u002F\u002F WRONG\nif (process.env.NODE_ENV !== 'production') {\n  \u002F\u002F Skip signature verification for local testing.\n  const event = JSON.parse(rawBody);\n}\n```\n\nA test-mode bypass leaks into production through misconfiguration\n(`NODE_ENV=development` accidentally shipped, environment-variable typo,\ncontainer default that wasn't overridden). Always verify the signature;\nuse the Stripe CLI's `stripe listen --forward-to` for local development,\nwhich provides a real signing secret.\n\n---\n\n## Signing-secret rotation\n\nStripe lets you create multiple active signing secrets per endpoint\n(in the dashboard or via API). During rotation, both the OLD and NEW\nsecrets are valid for a window; verify against both before retiring the\nold one.\n\n```ts\nasync function verifyAgainstAnyActiveSecret(rawBody: string, signature: string) {\n  const secrets = [process.env.STRIPE_WEBHOOK_SECRET_NEW, process.env.STRIPE_WEBHOOK_SECRET_OLD]\n    .filter((s): s is string => !!s);\n  for (const secret of secrets) {\n    try {\n      return stripe.webhooks.constructEvent(rawBody, signature, secret);\n    } catch { \u002F* try next secret *\u002F }\n  }\n  throw new Error('signature verification failed against all active secrets');\n}\n```\n\nOnce the new secret is active in the dashboard and traffic has cut over\n(monitor delivery success in the Stripe dashboard), remove the old\nsecret from the environment and the endpoint config.\n\n---\n\n## ASI\u002FAST mapping\n\nThis skill addresses **canonical OWASP ASI02 (Tool Misuse)** from\n`governance\u002Fowasp-asi-2026\u002Fthreats.md`. A replayed Stripe webhook\nre-invokes a destructive tool: charge a card, send a customer email,\nmark an order shipped, trigger a refund. The defense layer is structural\nidempotency at the receiver, which Patterns 1 (verification) + 2 (event-id\nkey) + 3 (fulfilment guards) realize for Stripe-specific event surfaces.\n\n---\n\n## Testing\n\nFor each Stripe webhook handler, write at least four tests:\n\n```ts\ntest('rejects invalid signature', async () => { \u002F* mutated signature header *\u002F });\ntest('rejects events outside replay window', async () => { \u002F* timestamp 1h old *\u002F });\ntest('idempotent on duplicate event.id', async () => { \u002F* same event twice *\u002F });\ntest('does not fulfill an already-fulfilled order', async () => { \u002F* event after fulfilment *\u002F });\n```\n\nThe Stripe CLI's `stripe trigger` command produces real signed test\nevents you can replay against a local handler -- the most realistic\nfixture short of production traffic.\n\n---\n\n## See also\n\n- Universal: `skills\u002Funiversal\u002Fsecurity\u002Fwebhook-idempotency\u002FSKILL.md`\n- `governance\u002Fowasp-asi-2026\u002Fthreats.md` -- ASI02 (Tool Misuse) full text\n- Stripe docs: https:\u002F\u002Fstripe.com\u002Fdocs\u002Fwebhooks\u002Fsignatures (signature\n  verification reference)\n- `skills\u002Fstack-specific\u002Fstripe\u002Fpci-scope-minimization\u002FSKILL.md` -- the\n  PCI-scope companion skill; webhook handlers that touch payment data\n  inherit the PCI scope of the integration overall.\n","# Stripe Webhook Idempotency\n\n> Stripe-specific extension of the universal\n> [`security\u002Fwebhook-idempotency`](..\u002F..\u002F..\u002Funiversal\u002Fsecurity\u002Fwebhook-idempotency\u002FSKILL.md)\n> skill. Read that first for the provider-agnostic patterns\n> (idempotency-key, replay-window, storage strategies). This skill layers\n> Stripe's specifics on top: `constructEvent` for signature verification,\n> `event.id` discipline, signing-secret rotation, and the per-event-type\n> fulfilment guards that close ASI02 (Tool Misuse) for Stripe handlers.\n\n**Tradeoff:** Stripe is the highest-volume webhook surface for most\napplications and Stripe events drive money-moving side effects -- the\nstrictest place to get idempotency right. The cost: extra discipline on\nsignature verification, event-id handling, and event-type-specific\nfulfilment checks beyond what the universal pattern provides.\n\n---\n\n## Why this matters\n\nStripe retries webhook delivery for up to 3 days on transient failures.\nEvery retry that lands after the receiver successfully processed the\nevent (but before the response made it back) is a duplicate. Production\nincidents from missing this:\n\n- Two charges on the same `payment_intent.succeeded`.\n- Two emails on the same `invoice.payment_succeeded`.\n- Two database updates on the same `customer.subscription.updated`.\n- Stale fulfilment if a later retry of an earlier event arrives after a\n  newer event has already been processed.\n\nThe universal patterns close the dedupe-key gap. Stripe-specific patterns\nclose the verification + fulfilment-guard gaps.\n\n---\n\n## Pattern 1 -- Verify the signature with `constructEvent`, not raw HMAC\n\nStripe signs every webhook delivery with the signing secret you set when\ncreating the webhook endpoint in the Stripe dashboard (or via the API).\nUse `stripe.webhooks.constructEvent` -- it verifies the signature AND\nparses the event into a typed `Stripe.Event`. Never roll your own HMAC\ncompare against the raw body; the library handles signature-version\nquirks, replay-window enforcement, and constant-time comparison.\n\n```ts\nimport Stripe from 'stripe';\n\nconst stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);\nconst SIGNING_SECRET = process.env.STRIPE_WEBHOOK_SECRET!;\n\nasync function handleStripeWebhook(rawBody: string, signature: string) {\n  let event: Stripe.Event;\n  try {\n    event = stripe.webhooks.constructEvent(rawBody, signature, SIGNING_SECRET);\n  } catch (err) {\n    \u002F\u002F Invalid signature, malformed payload, OR replay-window exceeded\n    \u002F\u002F (Stripe SDK's default tolerance is 300 seconds).\n    return new Response('invalid signature', { status: 400 });\n  }\n  \u002F\u002F event is now a verified Stripe.Event with typed event.data.object.\n}\n```\n\nCrucially: pass the RAW request body (the unparsed bytes), not a re-\nserialized JSON. Next.js \u002F Express \u002F FastAPI \u002F Fastify all have a\n\"raw body\" middleware mode you must enable on the webhook route. A\nre-serialized body has different bytes than what Stripe signed; verification\nfails. This is the #1 first-time Stripe webhook failure mode.\n\n---\n\n## Pattern 2 -- Use `event.id` as the idempotency key, never derive from body\n\nStripe assigns every event a unique `event.id` (format `evt_...`). This is\nthe canonical retry identifier; Stripe guarantees the same id across\ndelivery attempts of the same event. Use it directly as your dedupe key\nin whichever storage strategy fits your throughput profile (see the\nuniversal skill for the Redis-TTL \u002F DB-unique-constraint \u002F in-memory\ntradeoff).\n\n```ts\nconst dedupeKey = `stripe:event:${event.id}`;\nconst claimed = await redis.set(dedupeKey, 'processing', { NX: true, EX: 86400 * 4 });\nif (claimed !== 'OK') {\n  return new Response('duplicate (idempotent)', { status: 200 });\n}\n```\n\nThe 4-day TTL covers Stripe's full 3-day retry schedule plus headroom.\nAnything shorter risks a very-late retry slipping past your dedupe window.\n\n---\n\n## Pattern 3 -- Per-event-type fulfilment guards\n\n`stripe.webhooks.constructEvent` returns a discriminated-union typed event.\nSwitch on `event.type` and apply fulfilment-state checks specific to that\ntype, NOT just the idempotency-key check. The idempotency key prevents\ndouble-processing of the SAME event; fulfilment guards prevent processing\nevents in the wrong order.\n\n```ts\nswitch (event.type) {\n  case 'payment_intent.succeeded': {\n    const pi = event.data.object;  \u002F\u002F typed Stripe.PaymentIntent\n    \u002F\u002F Guard: do not fulfill if order is already shipped.\n    const order = await db.order.findUnique({ where: { piId: pi.id } });\n    if (order?.status === 'fulfilled') {\n      return new Response('already fulfilled', { status: 200 });\n    }\n    await fulfillOrder({ orderId: order!.id, paymentIntentId: pi.id });\n    break;\n  }\n  case 'charge.refunded': {\n    const charge = event.data.object;  \u002F\u002F typed Stripe.Charge\n    await markOrderRefunded({ chargeId: charge.id });\n    break;\n  }\n  default:\n    \u002F\u002F Ignore unhandled event types -- Stripe sends many event types per\n    \u002F\u002F endpoint, processing irrelevant ones is wasted work.\n    break;\n}\n```\n\nFor event types that ARE expected to arrive multiple times legitimately\n(e.g., `customer.subscription.updated` for the same subscription on\ndifferent state transitions), use the same idempotency key (`event.id`)\nplus per-state-transition checks; don't conflate \"I've seen this event\nid\" with \"I've already processed this subscription state.\"\n\n---\n\n## Anti-patterns\n\n### Anti-pattern 1 -- Re-serializing the body before signature verification\n\n```ts\n\u002F\u002F WRONG\nconst body = await req.json();  \u002F\u002F parses + re-serializes; signature breaks\nconst event = stripe.webhooks.constructEvent(JSON.stringify(body), signature, secret);\n```\n\nThe body Stripe signed was the exact bytes that arrived; `JSON.stringify`\nre-serializes with potentially different key order, different whitespace,\ndifferent number formatting. Verification fails 100% of the time. Use the\nraw body bytes (`req.text()` or framework-specific raw-body middleware).\n\n### Anti-pattern 2 -- Using `event.data.object.id` as the dedupe key\n\n```ts\n\u002F\u002F WRONG\nconst dedupeKey = `stripe:pi:${event.data.object.id}`;  \u002F\u002F payment_intent id, NOT event id\n```\n\nA single `PaymentIntent` produces multiple events (`payment_intent.created`,\n`payment_intent.processing`, `payment_intent.succeeded`,\n`payment_intent.canceled` ...). Using `data.object.id` as the dedupe key\ntreats them as duplicates of each other -- only the first event of a given\nPaymentIntent is processed; everything else is silently dropped. Use\n`event.id`, which is unique per event.\n\n### Anti-pattern 3 -- Skipping signature verification in test mode\n\n```ts\n\u002F\u002F WRONG\nif (process.env.NODE_ENV !== 'production') {\n  \u002F\u002F Skip signature verification for local testing.\n  const event = JSON.parse(rawBody);\n}\n```\n\nA test-mode bypass leaks into production through misconfiguration\n(`NODE_ENV=development` accidentally shipped, environment-variable typo,\ncontainer default that wasn't overridden). Always verify the signature;\nuse the Stripe CLI's `stripe listen --forward-to` for local development,\nwhich provides a real signing secret.\n\n---\n\n## Signing-secret rotation\n\nStripe lets you create multiple active signing secrets per endpoint\n(in the dashboard or via API). During rotation, both the OLD and NEW\nsecrets are valid for a window; verify against both before retiring the\nold one.\n\n```ts\nasync function verifyAgainstAnyActiveSecret(rawBody: string, signature: string) {\n  const secrets = [process.env.STRIPE_WEBHOOK_SECRET_NEW, process.env.STRIPE_WEBHOOK_SECRET_OLD]\n    .filter((s): s is string => !!s);\n  for (const secret of secrets) {\n    try {\n      return stripe.webhooks.constructEvent(rawBody, signature, secret);\n    } catch { \u002F* try next secret *\u002F }\n  }\n  throw new Error('signature verification failed against all active secrets');\n}\n```\n\nOnce the new secret is active in the dashboard and traffic has cut over\n(monitor delivery success in the Stripe dashboard), remove the old\nsecret from the environment and the endpoint config.\n\n---\n\n## ASI\u002FAST mapping\n\nThis skill addresses **canonical OWASP ASI02 (Tool Misuse)** from\n`governance\u002Fowasp-asi-2026\u002Fthreats.md`. A replayed Stripe webhook\nre-invokes a destructive tool: charge a card, send a customer email,\nmark an order shipped, trigger a refund. The defense layer is structural\nidempotency at the receiver, which Patterns 1 (verification) + 2 (event-id\nkey) + 3 (fulfilment guards) realize for Stripe-specific event surfaces.\n\n---\n\n## Testing\n\nFor each Stripe webhook handler, write at least four tests:\n\n```ts\ntest('rejects invalid signature', async () => { \u002F* mutated signature header *\u002F });\ntest('rejects events outside replay window', async () => { \u002F* timestamp 1h old *\u002F });\ntest('idempotent on duplicate event.id', async () => { \u002F* same event twice *\u002F });\ntest('does not fulfill an already-fulfilled order', async () => { \u002F* event after fulfilment *\u002F });\n```\n\nThe Stripe CLI's `stripe trigger` command produces real signed test\nevents you can replay against a local handler -- the most realistic\nfixture short of production traffic.\n\n---\n\n## See also\n\n- Universal: `skills\u002Funiversal\u002Fsecurity\u002Fwebhook-idempotency\u002FSKILL.md`\n- `governance\u002Fowasp-asi-2026\u002Fthreats.md` -- ASI02 (Tool Misuse) full text\n- Stripe docs: https:\u002F\u002Fstripe.com\u002Fdocs\u002Fwebhooks\u002Fsignatures (signature\n  verification reference)\n- `skills\u002Fstack-specific\u002Fstripe\u002Fpci-scope-minimization\u002FSKILL.md` -- the\n  PCI-scope companion skill; webhook handlers that touch payment data\n  inherit the PCI scope of the integration overall.\n",{"name":5,"description":7},"main","5a590e92c8f62b54c96a6928215ac2145b671e03","skills\u002Fstack-specific\u002Fstripe\u002Fwebhook-idempotency","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs","https:\u002F\u002Fgithub.com\u002FMILTONADINA","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmiltonadina","CS\u002FCybersecurity SWE & former Epidemiologist. Building secure, test-driven full-stack & mobile apps (TS\u002FReact\u002FNode, Java\u002FSpring, Flutter).","2026-11-14 20:03:36",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add MILTONADINA\u002FDevOPs --skill stripe-webhook-idempotency",{"tool":38,"command":39},"bunx","bunx skills add MILTONADINA\u002FDevOPs --skill stripe-webhook-idempotency",{"tool":41,"command":42},"pnpm","pnpm dlx skills add MILTONADINA\u002FDevOPs --skill stripe-webhook-idempotency","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Fstack-specific\u002Fstripe\u002Fwebhook-idempotency\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"SKILL.md.bundle","OTHER","其他",9603,"https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Fstack-specific\u002Fstripe\u002Fwebhook-idempotency\u002FSKILL.md.bundle",[53,60,67,74,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M74F7F3HN6J7CSFHBVQAE9S5","karpathy-guidelines","Behavioral guidelines that reduce common LLM coding mistakes. Apply whenever writing, modifying, or reviewing code. Don't assume requirements, don't overcomplicate, don't refactor unrelated code, and define success criteria before implementing. Use this skill on every non-trivial coding task to avoid bloat, silent assumptions, and completion-bias.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsecurity\u002Fmodified-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M74F7D60N9FRWWWHCGZMMB41","unsigned-missing-sig-fixture","Test fixture (F.09) — SKILL.md without an accompanying .sig file. Default install rejects with exit 2; --allow-unsigned --rationale=\"...\" proceeds.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Finstall\u002Fsource-skills\u002Funsigned-missing-sig\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M74F7BKGX67Q606QPKZV7TQV","unsigned-mismatched-sig-fixture","Test fixture (F.09) — SKILL.md whose accompanying .sig signs different content. NFR-F3 hash check catches this even with --allow-unsigned.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Finstall\u002Fsource-skills\u002Funsigned-mismatched-sig\u002FSKILL.md",[],[],{"skillNo":75,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74F793BYMX98EQC5XP4CDZK","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Finstall\u002Fsource-skills\u002Fsigned\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74F7481EBD7G5471ZC4S9YB","webhook-idempotency","Defend against double-processing of webhook events across every provider (Stripe, GitHub, Slack, Twilio, SendGrid). Idempotency-key pattern + replay-window enforcement + dedupe-storage strategy. Triggers on any webhook handler authoring (route matching \u002Fwebhook(s)?\u002F, Stripe-Signature \u002F X-Hub-Signature-256 header references). Defense against OWASP ASI02 (Tool Misuse) -- a replayed webhook that re-triggers a destructive tool is the canonical control-flow-level replay attack. Universal across providers; stack-specific signature verification lives in stack-specific skills.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fsecurity\u002Fwebhook-idempotency\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74F71Q6JKRFJ66G5T98KE8H","semgrep-scan","Run Semgrep static analysis to detect insecure code patterns - SQL injection, XSS, path traversal, weak crypto, broken auth, OWASP Top 10 issues. Use on every file change touching security-sensitive code and as part of the tiered security gate. Complements gitleaks (which catches secrets) by catching insecure logic.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fsecurity\u002Fsemgrep-scan\u002FSKILL.md",[],[]]