build-an-app
Skill này làm gì
Skill này biến một yêu cầu ngắn thành một ứng dụng nghiệp vụ nhỏ, hoạt động được, xây trên starter Agent-Native. Nó tập trung vào một quy trình hữu ích trước tiên và nêu rõ những gì bị hoãn lại. Skill dành cho người xây dựng muốn có phiên bản đầu tiên chạy được nhanh chóng.
Khi nào nên dùng
- ✓Khi ai đó yêu cầu bạn xây một công cụ đơn giản, bộ theo dõi, bảng điều khiển hoặc hệ thống đặt chỗ.
- ✓Khi một yêu cầu mơ hồ và bạn cần một phiên bản đầu tiên hẹp nhưng chạy được.
- ✓Khi bạn muốn một kiểm thử nhanh cho thấy quy tắc chính của ứng dụng hoạt động.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/build-an-app/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể xây một ứng dụng đặt phòng đơn giản, nơi mọi người đặt phòng và xem lưới theo tuần không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chọn một quy trình, quyết định ai thấy bảng nào, xây màn hình và action, thêm ngữ cảnh cho agent, rồi chạy kiểm thử nhanh cho quy tắc chính.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Build an App
Done means one useful domain workflow with a designed route, shared UI/agent actions, correct access, agent context, and a smoke run that proves its key rule. Finish a narrow slice before expanding it.
This skill edits source files. If this session cannot write files (a deployed app's runtime agent), say the change needs a code session and stop.
The four-area parity rule from adding-a-feature (UI, action, instructions,
application state) applies to everything you add. This skill supplies the
order and decisions; use the edit-point reference for the scaffold you have.
1. Orient
Read AGENTS.md, this skill, and only the files you will edit. Skip broad repo
surveys, README.md, and DESIGN.md. Use the bundled docs/source commands in
AGENTS.md only to answer a concrete API question; do not web-research
framework APIs.
2. Decide
Choose these six things before writing code:
- Slice: the one workflow that proves the app. For a booking app: create a booking, reject an overlap, cancel, weekly grid per room. Name what you are deferring (recurrence, notifications, roles, integrations) unless requested.
- Who sees each table: pick one row of the access table in
references/data-and-access.md: private, team-visible, shared on invite, or a child that inherits its parent's access. Making a team resource private per user is the usual wrong turn. Everyone then sees an empty list, and no conflict check can see anyone else's rows. Give each tableowner_emailand/ororg_id, directly or viaownableColumns();org_idalone passes[db-tool-scoping]. Doctor checks the schema marker, not query authorization; never denylist or opt outroomsorbookings. - Invariants: rules that must hold under concurrent requests (no overlap, stock never negative, unique slug). Enforce them in a write action inside a transaction or with a database constraint; the UI alone is insufficient.
- Actions:
list-<things>,create-<thing>, a singleupdate-<thing>patch per resource, and the domain verbs (cancel-booking). Fewer, orthogonal tools make the agent choose better. - Route: give the domain its own route (for example,
/rooms). Preserve existing routes and setapp.homePathso sign-in lands on the domain when that is the requested home screen. - Agent context: URL ids and filters (for example
roomId,week) that belong innavigation.
3. Build: write everything, then verify once
In a generated app, read package.json at
["agent-native"].scaffold.template and choose the matching reference:
chat:references/edit-points-chat.mddefault:references/edit-points-default.md- workspace root: use
adding-workspace-appsto create an app, then follow the new app's ownAGENTS.mdand scaffold reference. - another domain template: use its
AGENTS.mdandadding-a-feature; do not apply Chat or default shell instructions to it.
If metadata is absent, inspect the actual route, layout, plugin, and navigation files before choosing an edit point. Do not infer a shell from the app name.
Write the UI, actions, instructions, and state before running the verification steps below. Do not leave placeholder or comment-only screens.
references/rooms-example.md gives a booking slice to adapt. It was verified
against the Chat starter; use the selected edit-point reference for the shell.
Use frontend-design for a deliberate visual direction and finish the
requested screens and interactions.
Data
- Use PostgreSQL only, and keep migrations additive: new columns are nullable or have a default, and nothing is dropped or renamed. Never edit an applied entry; append a new named one.
- Set
ownerEmailfromctx.userEmailandorgIdfromctx.orgIdon inserts where those columns exist. Never rely on a development identity fallback. - Ids are text from
crypto.randomUUID(). - Bound every list (a time range or
.limit()), select only the columns it renders, and index the columns it filters and sorts on. - Store normalized UTC ISO timestamps; collect/display local times in the user's timezone. Validate offsets at the action boundary before parsing.
The access table, the concurrency pattern, and the security rules are in
references/data-and-access.md.
Actions
schemais zod, with.describe()on every field stating its units and format (for example, "ISO 8601 date-time with offset").- Read
Câu hỏi thường gặp
Nó có xây mọi tính năng tôi nhắc đến không?
Không. Nó hoàn thành một lát nhỏ hẹp trước và nêu rõ các tính năng đang được hoãn.
Kiểm thử nhanh (smoke test) là gì?
Đó là một lần chạy nhanh để kiểm tra quy tắc chính của ứng dụng hoạt động, chẳng hạn từ chối một đặt chỗ bị chồng lấp.
Một ứng dụng đã triển khai có dùng được skill này không?
Không. Skill nói rằng phiên không ghi được file phải thông báo rằng thay đổi cần một phiên code.
Chi tiết
Mô tả gốc của tác giả
Fast end-to-end workflow for turning this starter into a working domain app from a short or vague request. Use when asked to build, make, create, or prototype an app, tool, tracker, dashboard, booking, inventory, or CRM system with Agent-Native. Read before the first edit.
repo: BuilderIO/agent-native
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13142
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.