onboarding
できること
このスキルは、Agent-Native アプリに、サービスの接続やキーの入力などの利用者向けの設定手順を追加する方法を説明します。そのフレームワーク上でアプリを作る開発者向けです。
使う場面
- ✓新しい機能が、動作する前に API キーやアカウント接続を必要とするとき。
- ✓利用者自身が接続する必要がある外部サービスを追加するとき。
- ✓設定項目を、エージェントのサイドバーにある設定チェックリストに表示したいとき。
スキルのリンク
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/onboarding/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この機能を使う前に、利用者がアカウントを接続できるよう、設定手順を追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、各設定手順をチェックリストに表示されるように登録します。認証情報は、コードに書かせず、安全な入力場所へ利用者を案内します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Onboarding Steps
Rule
If a feature requires user-facing setup (API keys, OAuth, connecting a third-party service), register an onboarding step so it appears in the agent sidebar's setup checklist.
Onboarding must point users to a secure credential path; it must never encode
the credential value in source, docs, fixtures, prompts, or generated content.
For a provider represented in the workspace connection catalog, check the
connection readiness and app grant first, then resolve credentials through the
scoped workspace-connection helper. Only when no reusable connection exists
should API keys and service tokens use registerRequiredSecret() from the
secrets skill. For OAuth, check the scoped OAuth token store. Use deployment
env vars only for deploy-level configuration, not per-user credentials.
Model onboarding around the logical connection outcome, not its individual
fields. Because registerRequiredSecret({ required: true }) auto-injects a
checklist item per registration, do not mark every credential/config field as
required by reflex. Use one composite onboarding step or connection readiness
check when several values are needed for one provider.
A custom setup page is appropriate only when it adds provider-specific prerequisites, sequencing, or health checks. Keep it as a thin guide over the shared settings, vault, OAuth, and action surfaces; never make it a second place that stores or manages credentials.
Registering a Step
import { registerOnboardingStep } from "@agent-native/core/onboarding";
import { hasOAuthTokens } from "@agent-native/core/oauth-tokens";
registerOnboardingStep({
id: "gmail",
order: 100,
title: "Connect Gmail",
description: "Grant read/send access.",
methods: [
{
id: "oauth",
kind: "link",
primary: true,
label: "Sign in with Google",
payload: { url: "/_agent-native/google/auth-url" },
},
],
isComplete: async (ctx) =>
ctx?.userEmail ? hasOAuthTokens("google", ctx.userEmail) : false,
});
See packages/core/docs/content/onboarding.md for method kinds and built-in steps.
For S3-compatible file storage, declare a kind: "file-storage" method instead
of a form with S3_* fields. It renders the shared StorageSettingsForm,
which saves through the manage-file-storage action (owners and admins only),
so onboarding, Settings, and templates cannot drift into different rules. A
provider that serves files without a public URL sets
publicBaseUrlOptional: true on its FileUploadProvider.
Shared services: one list for first-run and Infrastructure
WORKSPACE_SERVICES (packages/core/src/onboarding/workspace-services.ts,
exported from @agent-native/core/onboarding) is the one list of services
every app shares: AI model, storage, voice, images, embeddings, and the
Builder.io-only services. First-run "Choose your setup" reads it through
getOnboardingAppProfile(), which tags each capability with its service id
(and builderOnly). Settings › Organization › Infrastructure renders one
Services row per entry and takes its Required/Recommended tags from those ids.
- To add a shared service, add it to
WORKSPACE_SERVICESand give it a row inInfrastructureSettingsPage.tsx; its records are keyed by service id, so the page won't compile without one. Never add a label to first-run alone. - To tailor a service for one app, declare a capability in that app's profile
with one of the service's
capabilityIds(Clips'video-storage). It replaces the default copy and can raise the tag, never lower it. - An app's own capabilities (a Figma token, a Gmail connection) stay out of
WORKSPACE_SERVICES. First-run shows them only when required or suggested. - List a Builder.io capability only if Builder.io actually powers it in code.
Transactional email is deployment configuration, not an onboarding form. The
built-in email step links to the host variables (RESEND_API_KEY or
SENDGRID_API_KEY, plus EMAIL_FROM) and is hidden when the deployment
already provides email. Don't add a step that saves those keys.
Related Skills
adding-a-feature— The four-area checklist; onboarding is often part of a new integrationauthentication— Most onboarding steps involve OAuth or credentials
よくある質問
利用者はこの設定手順をどこで見ますか?
エージェントのサイドバーにある設定チェックリストに表示されます。
認証情報の値をコードに書いてもよいですか?
いいえ。認証情報の値は、ソースコード、文書、プロンプトのいずれにも保存してはいけません。
独自の設定ページが必要なのはどんなときですか?
提供者ごとの手順、順序の制御、状態の確認が必要なときだけです。それ以外は共通の設定を使います。
詳細
作者による元の説明
How to register user-facing setup steps (API keys, OAuth, connecting third-party services) for the sidebar setup checklist. Use when adding a feature that needs initial user configuration.
repo: BuilderIO/agent-native
人気
- GitHubのスター
- 7.6k
- ランキング
- #13170
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
design-exploration
7.6kUIの複数のデザインの方向性を並べて検討し、1つを選んでもらい、選んだデザインを磨き上げるようエージェントを支援します。
visual-edit
7.6k実行中のローカルのアプリをビジュアルエディターで開き、本物の画面をまとめて確認し編集できるようエージェントを支援します。
turn-into-app
7.6kワークフロー、スプレッドシート、プロジェクトを、画面にデータが入り、操作の裏でエージェントが働く、洗練されたビジュアルアプリに変えます。
visual-plan
7.6kプレーンテキストの計画を、図、ファイルのマップ、コードの断片、未解決の質問を含む、対話できるビジュアルな計画に変えます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。