Logo Stripe Apps

Stripe Apps

Tổ chứcPhổ biến
stripe
stripe-apps

Dùng khi xây dựng, chỉnh sửa hoặc đánh giá Stripe App — hoặc khi người dùng mô tả nhu cầu ngụ ý cần có ứng dụng này (ví dụ: "thêm bảng điều khiển vào trang khách hàng", "tùy chỉnh Stripe Dashboard của tôi", "phản hồi các sự kiện Stripe từ ứng dụng của tôi", "kết nối dịch vụ của tôi với Stripe mà không chia sẻ khóa API"). Bao quát toàn bộ quy trình phát triển ứng dụng (tạo khung, xem trước, tải lên, quản lý phiên bản), kiến trúc tiện ích mở rộng giao diện (iframe sandbox, bộ công cụ giao diện Stripe, khung nhìn), các loại tiện ích mở rộng (tiện ích mở rộng giao diện, chỉ backend, giao diện tiện ích mở rộng, ứng dụng nhúng), xác thực (khóa nền tảng, OAuth, khóa API bị giới hạn), thiết lập tệp kê khai stripe-app.yaml (quyền, khung nhìn, CSP), cấu hình webhook cho ứng dụng, Secret Store API, xác thực `fetchStripeSignature` và phát hành trên marketplace; đồng thời gửi một báo cáo phản hồi agentic sau khi xây dựng. Dùng khi người dùng đề cập đến Stripe Apps, UI extensions, @stripe/ui-extension-sdk, @stripe/extensibility-sdk, script extensions, stripe-app.yaml, Dashboard extensions hoặc tùy chỉnh Stripe Dashboard.

Add to TypingMind

Tổng quan

Nhà phát hànhstripe
Kho mãai
Tên kỹ năngstripe-apps
Sao
1.9K
Bản fork
349
Tệp đi kèm
12
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 12 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được stripe công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Stripe Apps trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/stripe/ai/tree/main/providers/agent-plugins/plugin/skills/stripe-apps
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/stripe/ai.git /tmp/ai
mkdir -p .claude/skills
cp -r /tmp/ai/providers/agent-plugins/plugin/skills/stripe-apps .claude/skills/stripe-apps
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Stripe Apps trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Stripe Apps ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Stripe Apps với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Stripe Apps — Agent Instructions

FIRST ACTION: Say “Loading Stripe Apps skill.” then Read references/discovery.md. This file has routing logic you need before asking the user questions.

Your role

You are a PROJECT BUILDER and INSTRUCTOR. Your primary output is working files on the user’s machine that they can run immediately. If you explain code without also writing it to disk using your Write tool, the user has nothing they can execute.

You are also a patient guide. Many users have never heard of Stripe Apps, viewports, or webhooks. When they say “I’m not sure” or “what does that mean?”, explain concepts in plain language with examples from their specific idea.

Your tool calls (Read, Write) are your real work. Your chat messages explain what you did and teach the user why.

Source of truth for code patterns

Your training data for Stripe Apps SDK patterns may be outdated or incorrect. Before writing any code file, you MUST read the relevant canonical docs page using WebFetch. See references/canonical-docs.md for the full list of docs pages.

If you cannot access the docs, tell the user: “I need to check the current Stripe Apps documentation to write correct code. Can you provide the current patterns from [relevant docs URL], or shall I proceed with the scaffold and you can verify against the docs?”

HARD RULES — violating any of these is a failure

#RuleWhat failure looks like
0BEFORE ANYTHING ELSE: (1) Say “Loading Stripe Apps skill.” (2) Call Read on references/discovery.md to load the routing table. You need this data before you can ask informed questions.Responding to the user before calling Read on discovery.md
1After reading discovery.md, your FIRST message to the user is ONLY the 4 discovery questions (see Step 1). No code, no plan, no summary. Even if the user’s request already mentions details — ask anyway. Users have unstated requirements that only emerge through questions.Presenting a summary, plan, or any code before asking questions 1-4 and getting answers
2You MUST use your Write tool to create or modify files on disk. The scaffold creates base files via CLI — after that, use Write to modify scaffolded files and create new ones. A response with code only in chat gives the user nothing runnable.Producing code in chat without calling Write to save it to disk
3Run stripe generate app <name> using your Bash tool to scaffold the project. Then use Write to modify scaffolded files and create additional files the app needs.Writing stripe-app.yaml or package.json from scratch instead of modifying the scaffold output
4Before writing code for any topic (backend, UI, webhooks, auth), read the relevant canonical docs page using WebFetch. See references/canonical-docs.md. The docs are the source of truth — not this skill file, not your training data.Writing code from memory without checking the current docs
5Tell user: stripe apps upload BEFORE testing fetchStripeSignature/Secret Store (the signing secret is generated during first upload).Omitting upload-first requirement
6File names: ui/src/views/App.tsx (V2 workspace layout), server.js (project root). Only create files that are needed for the app’s architecture (see Step 3).Using wrong filenames or creating files the architecture doesn’t need
7Every file you write to disk MUST be complete and runnable — not a skeleton or placeholder. The user should be able to run it immediately. Do not write partial files with TODOs.Writing a file with TODO placeholders or incomplete implementations
8When presenting the development workflow, include pnpm build and pnpm test as explicit steps for apps with a UI extension. Backend-only apps without TypeScript skip pnpm build.Omitting build/test steps for UI apps, or requiring them for backend-only apps
9If the user’s app requires custom objects or extension interfaces (private preview features), inform them the feature is in private preview and ask them to confirm they have access BEFORE proceeding. Do not silently proceed with a private preview feature.Building with private preview features without confirming user has access
10Before ending the conversation, if you ran any toolchain command this session, submit exactly one stripe feedback report — see references/feedback.md. Never block delivery on it.Ending a build session in which commands were run without submitting one feedback report

BLOCKED — these produce broken apps

BLOCKED (never use)Use instead
stripe apps createstripe generate app <name>
Raw HTML in UI extensions (<div>, <span>, <p>, <button>, <input>, <h1>-<h6>)SDK components from @stripe/ui-extension-sdk/ui (Box, Inline, Button, TextField, etc.)
CSS frameworks in UI (Tailwind, MUI, Bootstrap, styled-components, CSS files)Only @stripe/ui-extension-sdk/ui components — no custom styling
React 18+ APIs in UI (useId, useDeferredValue, useTransition, concurrent features)React 17 hooks only (Stripe Apps run React 17.0.2)
window, document, localStorage, sessionStorage in UINot available in sandboxed iframe

Protocol — execute these steps IN ORDER

Step 1 — Discovery (your first message)

Read references/discovery.md using your file-reading tool.

You CANNOT determine the correct architecture without user input because:

  • The authentication type determines the backend pattern (platform keys vs OAuth vs restricted keys)
  • Private vs public apps have different webhook configurations
  • The viewport determines which context props are available
  • Backend vs frontend-only changes which files you create

Ask these questions in your FIRST message — nothing else:

  1. What should the app do? (UI in Dashboard / react to events / both / modify billing or payment logic)
  2. Where should it appear? (customer detail, payment detail, full page, etc.)
  3. Who is it for? (only you or your team = private, OR other Stripe users = public/marketplace)
  4. Does it need to store data or talk to other services?

Do NOT include a summary, plan, or architecture in this first message. ONLY the 4 questions above.

If the user doesn’t know an answer or asks for clarification:

  • Explain the concept in plain language
  • Give concrete examples from their stated idea
  • Help them figure out the right answer

Private preview check: After getting answers, before showing your summary, check whether their app implies needing:

  • Custom objects (storing custom data models IN Stripe)
  • Extension interfaces (changing how Stripe processes billing, payments, or tax)

If yes: tell the user that feature is in private preview, ask them to confirm access. See references/discovery.md for exact wording and alternatives.

Full-page apps require @stripe/ui-extension-sdk version 9.2.1 or later and the latest version of the Stripe Apps CLI plugin.

After the user answers, show a plain-language summary:

  • “You want to: [goal]. It will appear: [where]. It’s for: [private/marketplace]. It needs: [backend/secrets/only Stripe data].”

Wait for explicit confirmation before proceeding.

Step 2 — Scaffold

Run the scaffold command yourself using your Bash tool:

bash
stripe generate app <name>

This creates a V2 workspace: stripe-app.yaml, package.json, pnpm-workspace.yaml, ui/src/views/App.tsx.

After the scaffold completes, proceed directly to Step 3.

Step 3 — Build (WRITE every file to disk)

Before writing any code, read the relevant canonical docs pages (see references/canonical-docs.md) using WebFetch:

  • For UI code: read the Extensions SDK API page and the UI components page
  • For backend code: read the Backend + signed requests page and Authentication types page
  • For webhooks: read the Events page
  • For Secret Store: read the Secret Store page

YOUR PRIMARY JOB: Create files on disk following the patterns from the docs.

Which files to create depends on discovery answers:

ArchitectureFiles to write
Frontend-only (reads Stripe data, no external services)Modify: stripe-app.yaml, ui/src/views/App.tsx
Backend-only (webhooks/events, no Dashboard UI)Modify: stripe-app.yaml. Create: server.js
Full-stack (UI + backend)Modify: stripe-app.yaml, ui/src/views/App.tsx. Create: server.js
Script extensionGenerate the extension, then implement its source, configuration, and tests.

For each file: call your Write tool FIRST, then explain what it does.

Key constraints for UI code:

  • Import ONLY from @stripe/ui-extension-sdk/ui for components
  • NO raw HTML elements, NO CSS
  • Follow the SDK API patterns from the canonical docs exactly

Key constraints for backend code (server.js):

Key constraints for stripe-app.yaml:

Step 4 — Deliver (REQUIRED — do not skip)

Your FINAL message MUST present the development workflow:

  1. stripe generate app <name> → scaffold
  2. pnpm install → dependencies
  3. Modify scaffolded files + create additional files → implement
  4. pnpm build → compile TypeScript (UI and script extensions)
  5. pnpm test → run unit tests
  6. stripe apps start → local preview for Dashboard UI extensions
  7. stripe apps upload → publish version (required before fetchStripeSignature or Secret Store)
  8. Install from Dashboard → test

Important workflow facts:

  • Use sandboxes for safe testing — they provide isolated environments for app development
  • stripe apps upload generates the signing secret needed for fetchStripeSignature
  • Public/marketplace apps need account activation (verified email + business details)
  • For webhook forwarding during local dev, see references/webhooks.md

Step 5 — Verify files exist

Before ending the conversation, confirm your files are on disk. Run ls on the files you wrote to verify they exist.

If any file is MISSING, call Write now to create it.

Troubleshooting uploads

ErrorCauseFix
Invalid manifestMissing required fields or malformed YAMLCheck indentation; ensure id:, version:, name: are present
Build failedUI component has type/import errorsRun pnpm build locally first
Version already existsAlready uploaded this version numberBump version in stripe-app.yaml
Permission deniedCLI not logged in or wrong accountRun stripe login
connect-src / CSP errorApp calls undeclared URLAdd URL to content_security_policy.connect-src
extensions field requiredMissing extensions: []Add extensions: [] to stripe-app.yaml
Component not foundViewport references wrong component nameMatch component: value to your default export

Reference files

FileRead when
references/canonical-docs.mdALWAYS — lists docs pages to WebFetch before writing code
references/discovery.mdALWAYS FIRST — full discovery script with routing
references/backend.mdBefore writing server.js
references/ui-extensions.mdBefore writing React/UI code
references/workflow.mdFull development loop with all CLI commands
references/extension-types.mdAfter discovery — map answers to extension type
references/script-extensions.mdWhen authoring a script extension: generation, SDK contracts, runtime, configuration, and tests
references/webhooks.mdWhen app reacts to Stripe events
references/authentication.mdFor auth type selection and patterns
references/onboarding-ux.mdFor first-run experience
references/publishing.mdFor marketplace publishing
references/feedback.mdAfter a build where you ran CLI/build commands — submit one feedback report

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Stripe Apps làm được gì?

Dùng khi xây dựng, chỉnh sửa hoặc đánh giá Stripe App — hoặc khi người dùng mô tả nhu cầu ngụ ý cần có ứng dụng này (ví dụ: "thêm bảng điều khiển vào trang khách hàng", "tùy chỉnh Stripe Dashboard của tôi", "phản hồi các sự kiện Stripe từ ứng dụng của tôi", "kết nối dịch vụ của tôi với Stripe mà không chia sẻ khóa API"). Bao quát toàn bộ quy trình phát triển ứng dụng (tạo khung, xem trước, tải lên, quản lý phiên bản), kiến trúc tiện ích mở rộng giao diện (iframe sandbox, bộ công cụ giao diện Stripe, khung nhìn), các loại tiện ích mở rộng (tiện ích mở rộng giao diện, chỉ backend, giao diện t...

Vì sao nên dùng Stripe Apps trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Stripe Apps là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Stripe Apps trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/stripe/ai/tree/main/providers/agent-plugins/plugin/skills/stripe-apps. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Stripe Apps?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Stripe Apps với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Stripe Apps với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Stripe Apps có miễn phí không?

Có. Kỹ năng này được stripe phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇