Integrationsのロゴ

Integrations

コミュニティ
wasintoh
integrations

One-request, complete setup of external services — payment (Stripe, PromptPay, Omise, 2C2P), email, auth, analytics, storage and other integrations, including Thai-market services. Installs SDKs, creates API routes, env templates, and UI components in one pass. Use when the user asks to add payments, email, login, analytics, or any third-party service (e.g. "เพิ่มระบบชำระเงิน").

Add to TypingMind

概要

公開者wasintoh
リポジトリtoh-framework
スキル名integrations
スター
96
フォーク
19
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    wasintohがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Integrations」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wasintoh/toh-framework/tree/main/src/skills/integrations
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wasintoh/toh-framework.git /tmp/toh-framework
mkdir -p .claude/skills
cp -r /tmp/toh-framework/src/skills/integrations .claude/skills/integrations
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでIntegrationsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にIntegrationsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Integrationsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

🔌 Integrations Skill

Purpose: One-click setup for external services Version: 1.0.0 Author: Toh Framework Team

Overview

This skill enables easy integration with external services like payment, email, analytics, etc. User just says what they want, AI handles all the setup.

Core Principle

User says: "เพิ่มระบบชำระเงิน"
AI does: Install SDK, create API routes, setup env template, create UI components
User sees: "เพิ่ม Stripe/PromptPay แล้วครับ! ใส่ API key ใน .env แล้วใช้ได้เลย"

ONE REQUEST = COMPLETE SETUP


Available Integrations

💳 Payment

ServiceTrigger WordsThai Market
Stripestripe, credit card, บัตรเครดิต✅
PromptPaypromptpay, พร้อมเพย์, QR✅ Thai
Omiseomise, โอมิเซะ✅ Thai
2C2P2c2p✅ Thai

📧 Email

ServiceTrigger Words
Resendresend, email
SendGridsendgrid
Nodemailernodemailer, smtp
Postmarkpostmark

📊 Analytics

ServiceTrigger Words
Google Analyticsga, google analytics, วิเคราะห์
Plausibleplausible, privacy analytics
Mixpanelmixpanel
PostHogposthog

🔐 Authentication

ServiceTrigger Words
Supabase Authsupabase, auth (default)
NextAuthnextauth, oauth
Clerkclerk
Auth0auth0

📱 Messaging

ServiceTrigger Words
LINE Notifyline notify, แจ้งเตือน line
LINE Messaging APIline messaging, line bot
Twilio SMStwilio, sms
Firebase FCMpush notification, fcm

📁 Storage

ServiceTrigger Words
Supabase Storagestorage (default)
Cloudinarycloudinary, image upload
AWS S3s3, aws storage
Uploadthinguploadthing

Integration Templates

💳 Stripe Integration

Trigger: "เพิ่มระบบชำระเงิน Stripe" / "add payment"

AI Creates:

lib/
├── stripe.ts              # Stripe client setup
├── stripe-helpers.ts      # Helper functions
app/api/
├── checkout/route.ts      # Create checkout session
├── webhook/route.ts       # Handle webhooks
components/
├── PaymentButton.tsx      # Checkout button
├── PaymentSuccess.tsx     # Success page
.env.local (template)
├── STRIPE_SECRET_KEY=
├── STRIPE_PUBLISHABLE_KEY=
├── STRIPE_WEBHOOK_SECRET=

Response:

markdown
✅ **เพิ่มระบบชำระเงิน Stripe แล้วครับ!**

📁 ไฟล์ที่สร้าง:
- lib/stripe.ts - Stripe client
- app/api/checkout/route.ts - API สร้าง checkout
- app/api/webhook/route.ts - รับ webhook
- components/PaymentButton.tsx - ปุ่มชำระเงิน

⚙️ **ขั้นตอนถัดไป:**
1. ไปที่ https://dashboard.stripe.com/apikeys
2. Copy API keys ใส่ใน `.env.local`:

STRIPE_SECRET_KEY=sk_test_xxx STRIPE_PUBLISHABLE_KEY=pk_test_xxx

3. ใช้งานได้เลย!

💡 ต้องการทดสอบ payment flow ไหมครับ?

💳 PromptPay QR Integration

Trigger: "เพิ่ม PromptPay" / "พร้อมเพย์"

AI Creates:

lib/
├── promptpay.ts           # PromptPay QR generator
components/
├── PromptPayQR.tsx        # QR display component
├── PaymentConfirm.tsx     # Manual confirmation
app/api/
├── generate-qr/route.ts   # Generate QR API

Response:

markdown
✅ **เพิ่มระบบ PromptPay แล้วครับ!**

📁 ไฟล์ที่สร้าง:
- lib/promptpay.ts - สร้าง QR code
- components/PromptPayQR.tsx - แสดง QR
- components/PaymentConfirm.tsx - ยืนยันการชำระ

⚙️ **ตั้งค่า:**
ใส่เบอร์โทร/เลขบัตรประชาชน ใน `.env.local`:

PROMPTPAY_ID=0812345678


💡 หมายเหตุ: PromptPay ไม่มี webhook
ต้องให้ user กดยืนยันว่าโอนแล้ว หรือเชื่อม bank API ครับ

📧 Email with Resend

Trigger: "เพิ่มระบบส่งอีเมล" / "add email"

AI Creates:

lib/
├── email.ts               # Email client
├── email-templates/       # Email templates
│   ├── welcome.tsx
│   └── order-confirmation.tsx
app/api/
├── send-email/route.ts    # Send email API

Response:

markdown
✅ **เพิ่มระบบส่งอีเมลแล้วครับ!**

📁 ไฟล์ที่สร้าง:
- lib/email.ts - Email client (Resend)
- lib/email-templates/ - Email templates
- app/api/send-email/route.ts - API ส่งอีเมล

⚙️ **ตั้งค่า:**
1. ไปที่ https://resend.com/api-keys
2. ใส่ API key ใน `.env.local`:

RESEND_API_KEY=re_xxx


💡 พร้อมใช้งานแล้ว! ต้องการเพิ่ม template อีเมลไหมครับ?

📊 Google Analytics

Trigger: "เพิ่ม analytics" / "google analytics"

AI Creates:

components/
├── GoogleAnalytics.tsx    # GA script component
app/
├── layout.tsx             # (modified to include GA)
lib/
├── analytics.ts           # Track events helper

Response:

markdown
✅ **เพิ่ม Google Analytics แล้วครับ!**

📁 ไฟล์ที่สร้าง/แก้ไข:
- components/GoogleAnalytics.tsx
- lib/analytics.ts - Helper functions
- app/layout.tsx - เพิ่ม GA script

⚙️ **ตั้งค่า:**
1. ไปที่ https://analytics.google.com
2. สร้าง property ใหม่ แล้ว copy Measurement ID
3. ใส่ใน `.env.local`:

NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX


💡 ใช้ `trackEvent('button_click', { name: 'buy' })` เพื่อ track events ครับ

Quick Integration Commands

User can say:

CommandAI Does
"เพิ่ม payment"Add Stripe (default)
"เพิ่ม PromptPay"Add PromptPay QR
"เพิ่ม email"Add Resend
"เพิ่ม analytics"Add Google Analytics
"เพิ่ม auth"Add Supabase Auth (usually already there)
"เพิ่ม push notification"Add Firebase FCM
"เพิ่ม LINE notify"Add LINE Notify
"เพิ่ม image upload"Add Cloudinary/Supabase Storage

Smart Recommendations

Based on business type, AI suggests relevant integrations:

Business TypeRecommended Integrations
E-commerceStripe, PromptPay, Email (order confirm), Analytics
F&BPromptPay, LINE Notify (orders), Receipt/Bill
BookingEmail (reminders), Calendar sync, SMS
SaaSStripe (subscription), Email, Analytics, Auth

AI Prompt:

markdown
💡 สำหรับ [Business Type] แนะนำให้เพิ่ม:
1. [Integration 1] - [why]
2. [Integration 2] - [why]

ต้องการเพิ่มตัวไหนครับ?

Environment Variables Template

After adding integrations, AI updates .env.local.example:

bash
# === Supabase ===
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=

# === Stripe ===
STRIPE_SECRET_KEY=
STRIPE_PUBLISHABLE_KEY=
STRIPE_WEBHOOK_SECRET=

# === PromptPay ===
PROMPTPAY_ID=

# === Email (Resend) ===
RESEND_API_KEY=

# === Analytics ===
NEXT_PUBLIC_GA_ID=

# === LINE ===
LINE_NOTIFY_TOKEN=
LINE_CHANNEL_SECRET=
LINE_CHANNEL_ACCESS_TOKEN=

Error Handling

If user requests integration that needs prerequisite:

markdown
⚠️ **ก่อนเพิ่ม [Integration]**

ต้องมี [Prerequisite] ก่อนครับ:
- [What's missing]

💡 ต้องการให้เพิ่ม [Prerequisite] ก่อนไหมครับ?

Best Practices

DO:

  • ✅ Create complete, working integration
  • ✅ Include all necessary files
  • ✅ Provide clear .env setup instructions
  • ✅ Add error handling in API routes
  • ✅ Include example usage

DON'T:

  • ❌ Leave incomplete setup
  • ❌ Forget webhook handling
  • ❌ Skip error handling
  • ❌ Use hardcoded credentials

Last Updated: 2024-12-03

よくある質問

AIスキル「Integrations」では何ができますか?

One-request, complete setup of external services — payment (Stripe, PromptPay, Omise, 2C2P), email, auth, analytics, storage and other integrations, including Thai-market services. Installs SDKs, creates API routes, env templates, and UI components in one pass. Use when the user asks to add payments, email, login, analytics, or any third-party service (e.g. "เพิ่มระบบชำระเงิน").

TypingMindでIntegrationsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Integrationsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにIntegrationsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wasintoh/toh-framework/tree/main/src/skills/integrationsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Integrationsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Integrationsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもIntegrationsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Integrations」は無料ですか?

はい。wasintohがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇