extensions
Fungsinya
Skill ini menjelaskan cara membuat, mengedit, dan mengelola ekstensi, yaitu aplikasi mini terkotak-kotak berbasis Alpine.js yang ditampilkan dalam iframe. Skill ini mencakup halaman referensi berisi fungsi pembantu dan contoh kerja. Skill ini untuk pembangun yang menginginkan blok kustom di dalam aplikasi yang mereka kendalikan.
Kapan dipakai
- βSaat aplikasi tuan rumah mengizinkan ekstensi dan pengguna meminta blok kustom sekali pakai.
- βKetika Anda menginginkan aplikasi mini kecil, misalnya widget status atau panel catatan cepat.
- βSaat Anda memerlukan daftar pasti fungsi pembantu yang tersedia di dalam ekstensi.
Link skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/extensions/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda membuat ekstensi kecil yang menampilkan status API kami dan menyegarkan dirinya setiap menit?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menulis berkas HTML kecil dengan Alpine.js dan kelas Tailwind. Agent memakai fungsi pembantu yang disediakan untuk mengambil atau menyimpan data, dan hasilnya berjalan dalam bingkai terkotak-kotak.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Extensions
Terminology note. This skill is about extensions β the framework's user-authored mini-app primitive (sandboxed Alpine.js HTML rendered in an iframe). It is NOT the same thing as LLM "tools", which are the function-calling primitives the AI agent uses (actions, MCP tools, etc.). Other skills still talk about "the agent calls actions as tools" β that's the LLM concept and stays as-is. When this doc says "tool" without qualification, it means LLM tool. When it says "extension", it means the sandboxed mini-app.
Historical naming: extensions were previously called "tools". The physical SQL table names (
tools,tool_data,tool_shares) and a few legacy in-iframe globals (toolFetch,toolData) are kept for back-compat β see the back-compat table inreferences/api.md.
References
references/api.mdβ the exhaustive helper/global tables (appAction,appFetch,dbQuery,dbExec,extensionFetch,extensionData), secrets, Tailwind classes, sharing, navigation, routes, and the full back-compat naming table. Read this when you need the precise signature, scope option, or route for any helper.references/examples.mdβ five worked HTML extensions (API status dashboard, weather widget, todo list withextensionData, quick notes). Read this when you want a complete copy-pasteable starting point.
CRITICAL: What Extensions Are (and Are Not)
An Extension is a self-contained Alpine.js HTML snippet stored in the
SQL tools table (table name kept for back-compat; the Drizzle export is
extensions). It runs inside a sandboxed iframe with its own Tailwind CSS
and Alpine.js runtime.
Extensions are NOT:
- React components
- New source code files
- Database schema changes
- Action files in
actions/ - Routes
When the Request Needs Code Instead
Route by the user's exact outcome, not by whether they called it an
"extension." Extensions render only on their own page or inside an existing
named ExtensionSlot; they cannot inject UI into arbitrary native components,
replace built-in views, or appear at a location where the host app has no slot.
If the requested placement or behavior requires changing native components, host layout/styles/routes/business logic, or adding a new slot:
- Briefly explain the extension boundary.
- Do not stop at "an extension cannot do that," and do not silently move the UI to a less useful slot.
- Continue through the normal source-code customization flow:
- In hosted/app-rendered chat, call
connect-builder. When itsbuilderEnabledresult is true, offer the Builder.io Cloud Agent handoff; when false, say the change can be made with local code editing, Agent Native Desktop, or Builder.io cloud editing. - In a local development or outer code-editing surface, follow the
self-modifying-codeskill and edit the app source directly.
- In hosted/app-rendered chat, call
Full source-code customization is a core Agent-Native capability. Extensions are an optional, sandboxed, no-deploy patch layerβnot the limit of what the app can become. Most apps keep extension creation disabled; do not offer or create one unless the host app has explicitly opted in.
Use this decision rule when either path could solve the request:
- Start with native app behavior or app code. Use an extension only when the app opted in, the user explicitly wants a bespoke one-off block, and an existing extension surface fits the requested placement.
- Use app code for a core template feature, native UI/layout/routes/business logic, a new slot, or behavior that should be reused across dashboards or users.
- Treat an extension as an agent-authored patch. Make that provenance clear, preserve it while promoting, and use Promote to app code when the behavior becomes durable. Do not imply that promotion is a lossless mechanical conversion.
As a rule of thumb, default to app code. In Analytics, an explicitly requested one-off custom visualization can be a Custom Block; a new chart type that should be available across dashboards belongs in the template code.
When a user asks to "make an extension", "create an extension", or "build a ... extension" (or the older phrasings "make a tool" / "create a tool"):
- Write the Alpine.js HTML
- Call
create-extensionwith the HTML ascontent - That's it β no files to create, no schema changes, no actions
Extensions have full access to app data via helpers injected into
Pertanyaan umum
Apa itu ekstensi?
Itu adalah aplikasi mini kecil yang berjalan dalam bingkai terkotak-kotak di dalam aplikasi, ditulis dengan HTML dan Alpine.js.
Apakah ekstensi sama dengan alat AI?
Tidak. Skill ini menyatakan ekstensi adalah aplikasi mini yang dibuat pengguna, sedangkan alat adalah pemanggilan fungsi yang dipakai AI.
Bisakah saya melihat contohnya?
Bisa. Skill ini menyertakan lima contoh kerja, seperti dasbor status dan aplikasi catatan cepat.
Detail
Deskripsi asli dari pembuat
Creating, editing, and managing extensions β sandboxed Alpine.js mini-apps that run inside iframes. Use only when the host app explicitly enables extensions and the user asks for a one-off custom block or mini-app. Distinct from LLM "tools" (function calls) β see note below.
repo: BuilderIO/agent-native
Popularitas
- Bintang GitHub
- 7.6k
- Peringkat
- #13157
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
design-exploration
7.6kMembantu agent Anda mengeksplorasi beberapa arah desain UI secara berdampingan, membiarkan Anda memilih satu, lalu menyempurnakan desain yang dipilih.
visual-edit
7.6kMembantu agent Anda membuka aplikasi lokal yang sedang berjalan di editor visual agar Anda dapat meninjau dan mengedit layar aslinya bersama-sama.
turn-into-app
7.6kMengubah alur kerja, spreadsheet, atau proyek menjadi aplikasi visual yang rapi, dengan layar yang terisi dan agent yang bekerja di balik kontrol.
visual-plan
7.6kMengubah rencana teks biasa menjadi rencana visual interaktif dengan diagram, peta file, cuplikan kode, dan pertanyaan terbuka.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.