Przejdź do treści
Biblioteka skilli
Programowanie · Integracja z narzędziem

build-integrations-payments

/build-integrations-payments

Pomaga podłączyć zewnętrzne API, webhooki, e-maile i płatności cykliczne, takie jak Stripe, z uwzględnieniem kosztów za zużycie.

Repozytorium
quality-pack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Pomaga podłączyć zewnętrzne API, webhooki, e-maile i płatności cykliczne, takie jak Stripe, z uwzględnieniem kosztów za zużycie.

Oryginalny opis (EN)

Shipwright build rules for Integrations, payments and costs (Integrations, Payments, Costs). Use when integrating an external API, webhooks, transactional or marketing emails, payments, subscriptions or cancellation (Stripe and similar), or any usage-billed service. FR: API externe, webhook, email, paiement, abonnement, résiliation, coûts.

Jak działa

  1. Integrations (INT)
  2. Payments (PAY)
  3. Costs (CST)
Sekcje z nagłówków SKILL.md, w oryginale · 70 linii, 648 słów
Podgląd SKILL.md
---
name: build-integrations-payments
description: "Shipwright build rules for Integrations, payments and costs (Integrations, Payments, Costs). Use when integrating an external API, webhooks, transactional or marketing emails, payments, subscriptions or cancellation (Stripe and similar), or any usage-billed service. FR: API externe, webhook, email, paiement, abonnement, résiliation, coûts."
---
<!-- Generated by tools/build.py from the referential YAML. Do not edit by hand. -->

# Integrations, payments and costs: build rules

Apply these rules while you build. Domains or criteria whose `applies_if` flags are false in `.quality/project.json` do not apply to this project. Before you call a task done, check your work against the criteria of the domains you touched: each one must be true and verifiable.

If a stack module of Shipwright is installed (sw-nextjs, sw-node-api, sw-vps, sw-expo, sw-capacitor, sw-tauri, sw-electron), its rules skill adds stack-specific rules on top of these.

## Integrations (INT)

APIs, emails and external services.

Applies when: Calls to external APIs or services.

Rules:

- Isolate each external service behind a single module: one place to change if the service changes.
- Validate external API responses like user input.
- Verify every webhook signature and process each event only once (idempotency).
- Emails: authenticated domain (SPF, DKIM, DMARC), text version, unsubscribe link for marketing.

Done means:

- [BLOCKER] INT-01: Webhook signatures verified (only if: has_webhooks). Check: webhooks.json: every endpoint declared in project.json › webhooks refuses an unsigned event and a wrongly signed one (4xx, never 2xx or 5xx). Also read the code: the signature is verified on the raw body before any processing.
- [major] INT-02: Webhook events processed only once (only if: has_webhooks). Check: Event ID stored; a replay creates no duplicate.
- [major] INT-03: External responses validated and service outages handled. Check: Schema on responses; degraded behaviour when the service is down.
- [major] INT-04: Emails authenticated (SPF, DKIM, DMARC) and not flagged as spam (only if: has_email). Check: DNS records checked; test send to Gmail and Outlook.
- [minor] INT-05: Each external service isolated in a dedicated module. Check: No direct SDK calls scattered across the code.
- [minor] INT-06: API quotas and terms of use respected. Check: Known limits, response caching, required attribution shown.

## Payments (PAY)

Billing, subscriptions and cancellation.

Applies when: Payments or subscriptions.

Rules:

- Use a hosted payment page (Stripe Checkout or equivalent): no card data goes through our servers.
- Payment or subscription state comes from the provider's webhook, never from the browser redirect.
- The displayed and charged price comes from the server or provider, never from a client-sent value.
- Cancelling is as simple as subscribing and reachable from the account.
- Test in test mode: success, decline, 3-D Secure, renewal failure, refund.

Done means:

- [BLOCKER] PAY-01: Access is granted only after confirmation by a signed webhook. Check: No access unlocked on the return page or through a URL parameter.
- [BLOCKER] PAY-02: The amount cannot be changed by the client. Check: Prices are read server-side (price IDs), never taken from the request.
- [major] PAY-03: Self-service cancellation, as simple as subscribing. Check: Cancellation flow from the account, no mandatory contact.
- [major] PAY-04: Payment failures and renewals handled. Check: Declined card, 3-D Secure, renewal failure: consistent access and emails.
- [major] PAY-05: Compliant invoices issued and accessible. Check: Invoices with the mentions required by the country, downloadable by the customer.
- [minor] PAY-06: Price, taxes, commitment and renewal shown before payment. Check: Clear summary before confirming.

## Costs (CST)

Spending control.

Rules:

- Keep the list of paid services with their monthly cost and what drives it up.
- Spending cap or alert on every usage-billed service (AI APIs, email sending, storage, bandwidth).
- Any user-triggered call to a paid service is authenticated and rate-limited.

Done means:

- [major] CST-01: Spending caps or alerts on usage-billed services (only if: uses_paid_services). Check: Budget or alert configured at each provider.
- [major] CST-02: No public route that triggers an unlimited cost (only if: uses_paid_services). Check: Routes to paid APIs: authentication, rate limiting, caching.
- [minor] CST-03: Up-to-date cost inventory. Check: File listing services, cost, billing basis, renewal date.
- [minor] CST-04: Unused resources removed. Check: Servers, databases, domains, subscriptions with no use.

Wersje

W bazie nie ma innych skilli o nazwie build-integrations-payments.

Migawka bazy z 13.11.2026 · wersja paczki 88678801094e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100payments
    Zawiera bazę wiedzy o integracji płatności: Stripe, LemonSqueezy, subskrypcje, webhooki i checkout.
  • 100stripe-developer
    Buduje płatności Stripe w Next.js i Supabase: Checkout, produkty i ceny, subskrypcje, webhooki, portal klienta i Stripe CLI.
  • 100stripe
    Integruje płatności Stripe w aplikacjach .NET przez Stripe.NET SDK: checkout, subskrypcje, payment intents, klienci, webhooki i płatności platformy Connect.
  • 100integrations
    Konfiguruje usługi zewnętrzne jednym żądaniem: płatności (Stripe, PromptPay, Omise, 2C2P), e-mail, uwierzytelnianie, analitykę i storage, instalując SDK, trasy API, szablony env i komponenty UI.
  • 100replica-backend
    Buduje backend klonu aplikacji: uwierzytelnianie, bazę z regułami dostępu, płatności, e-maile i integracje wyłącznie przez oficjalne API.
  • 100stripe-payments-expert
    Wdraża Checkout, subskrypcje, webhooki i podatki w Stripe, pokazując wzorce kodu gotowe do użycia produkcyjnego.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.