extensions
하는 일
이 스킬은 확장을 만들고, 편집하고, 관리하는 방법을 설명합니다. 확장은 iframe에 표시되는 작은 샌드박스 Alpine.js 미니 앱입니다. 도우미 함수 참고 페이지와 실제 예제가 포함됩니다. 내가 관리하는 앱 안에 맞춤 블록을 원하는 빌더를 위한 스킬입니다.
사용하는 경우
- ✓호스트 앱이 확장을 허용하고 사용자가 일회성 맞춤 블록을 요청할 때.
- ✓상태 위젯이나 빠른 메모 패널처럼 작은 미니 앱을 원할 때.
- ✓확장 안에서 쓸 수 있는 정확한 도우미 함수가 필요할 때.
스킬 링크
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/extensions/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 API의 상태를 보여 주고 1분마다 새로고침하는 작은 확장을 만들어 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 Alpine.js와 Tailwind 클래스를 쓴 작은 HTML 파일을 작성합니다. 제공된 도우미 함수로 데이터를 가져오거나 저장하며, 결과는 샌드박스 프레임에서 실행됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
확장이란 무엇인가요?
HTML과 Alpine.js로 작성되어, 앱 안의 샌드박스 프레임에서 실행되는 작은 미니 앱입니다.
확장은 AI 도구와 같은 것인가요?
아니요. 이 스킬은 확장은 사용자가 만든 미니 앱이고, 도구는 AI가 사용하는 함수 호출이라고 말합니다.
예제를 볼 수 있나요?
네. 이 스킬에는 상태 대시보드와 빠른 메모 앱 같은 예제 다섯 개가 포함되어 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 7.6k
- 순위
- #13157
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
design-exploration
7.6k에이전트가 여러 UI 디자인 방향을 나란히 보여 주고, 사용자가 하나를 고르면 그 디자인을 다듬도록 돕습니다.
visual-edit
7.6k에이전트가 실행 중인 로컬 앱을 시각 편집기에 열어, 실제 화면을 함께 검토하고 편집하도록 돕습니다.
turn-into-app
7.6k워크플로, 스프레드시트 또는 프로젝트를 데이터가 채워진 세련된 시각 앱으로 바꾸고, 컨트롤 뒤에서 에이전트가 작업하도록 합니다.
visual-plan
7.6k일반 텍스트 계획을 다이어그램, 파일 맵, 코드 조각, 열린 질문이 담긴 대화형 시각 계획으로 바꿔 줍니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.