始める
AIオンボード
暗号化アシスタントとエージェントが Sendtern で安全に働くようにしてください。
Cursor
You are Cursor. Integrate Sendtern transactional email into the repository currently open. Explain the result to me in ja. Read the Agent Skill at https://sendtern.com/SKILL.md and setup instructions at https://sendtern.com/setup.md. Use https://sendtern.com/llms.txt to discover docs and https://sendtern.com/agent.md for the complete HTTP contract. Inspect the existing server-side email code, runtime, configuration examples, and tests. Reuse project conventions. If the app already uses the Resend Node.js SDK, keep it and point baseUrl to the Sendtern endpoint; for Supabase Auth, follow /docs/supabase-smtp.md to configure Custom SMTP and raise Supabase rate limits. Verify Playground-first using POST https://sendtern.com/test/emails or Resend SDK baseUrl https://sendtern.com/test. For production, use POST https://sendtern.com/emails or Resend SDK baseUrl https://sendtern.com/resend. Capture one email in Email Playground using an example.com recipient. Do not send live email without my explicit approval. Read SENDTERN_API_KEY from server-side secrets only. Never paste a key into chat, print it, bundle it into client code, or commit it. Keep a stable Idempotency-Key per logical business event and check the response status before treating an email as queued. Make the code changes and run relevant tests. If a key or DNS access is missing, finish the code and mock verification. Report changed files, test results, an actual capture ID if captured, and any remaining DNS or dashboard actions.
Codex、Claude Code、またはOpenCode用のセットアッププロンプトをコピーします。リポジトリにアクセスできるエージェントにそれを貼り付けます。エージェントが統合を実装し、Playgroundを使用してテストを行うことができます。
捜査官に文書を渡せ
| ファイル | 含む |
|---|---|
| /setup.md | リポジトリの統合、テストのキャプチャ、および移行 |
| あなたは 私の 愛する 妻 です | セットアップとAPIリソースの簡潔な索引 |
| /docs/llms.txt | トピックごとにグループ化されたMarkdown記事の索引 |
| あなたは 私のことを 知ってる | コアガイドとリファレンスリンクのバンドル |
エージェントのルール
- 送信のみの鍵を使う。エージェントに完全アクセスを与えない。
SENDTERN_API_KEYから鍵を読み込みます。ソースファイルに書き込まないでください。- 常に
Idempotency-Keyヘッダを送信します。再送信はメールの重複を防ぎます。 - ワークスペースオペレータにダッシュボードでの配達状態を確認するよう依頼します。送信キーはメールのキューのみをキューにします。
429では、Retry-Afterの秒数を待ち、再試行します。
統合を確認する
最初にPOST /test/emailsを使用し、次にEmail Playgroundでキャプチャを確認してください。送信元ドメインが検証され、受信者が承認されたら、本番環境に切り替えてください。