build-an-app
ما الذي تفعله
تحوّل هذه المهارة طلباً قصيراً إلى تطبيق نطاق صغير يعمل، مبنياً على قالب البداية في Agent-Native. تركز أولاً على سير عمل واحد مفيد، وتسمّي ما يُؤجَّل. وهي مخصصة للبنّائين الذين يريدون نسخة أولى تعمل بسرعة.
متى تستخدمها
- ✓عندما يطلب منك أحد بناء أداة بسيطة أو متتبع أو لوحة معلومات أو نظام حجوزات.
- ✓عندما يكون الطلب غامضاً وتحتاج إلى نسخة أولى ضيقة تعمل.
- ✓عندما تريد اختبار دخان يُظهر أن القاعدة الأساسية في التطبيق تعمل.
رابط المهارة
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/build-an-app/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك بناء تطبيق بسيط لحجز الغرف، يستطيع فيه الناس حجز غرفة ورؤية الجدول الأسبوعي؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يختار الوكيل سير عمل واحداً، ويقرر من يرى كل جدول، ويبني الشاشات والإجراءات، ويضيف سياق الوكيل، ثم يشغّل اختبار دخان على القاعدة الأساسية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
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
الأسئلة الشائعة
هل سيبني كل ميزة أذكرها؟
لا. ينجز شريحة واحدة ضيقة أولاً، ويذكر الميزات المؤجلة.
ما اختبار الدخان؟
هو تشغيل سريع يتحقق من أن القاعدة الأساسية للتطبيق تعمل، مثل رفض حجز متداخل.
هل يمكن لتطبيق منشور أن يستخدم هذه المهارة؟
لا. تنص المهارة على أن الجلسة التي لا تستطيع كتابة الملفات يجب أن تخبرك بأن التغيير يحتاج إلى جلسة برمجة.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 7.6k
- الترتيب
- #13142
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
design-exploration
7.6kيساعد وكيلك على استكشاف عدة اتجاهات تصميم لواجهة المستخدم جنباً إلى جنب، ثم تختار أنت واحداً، ويحسّن الوكيل التصميم المختار.
visual-edit
7.6kيساعد وكيلك على فتح تطبيق محلي يعمل في محرر مرئي، لتراجع شاشاته الحقيقية وتحررها معاً.
turn-into-app
7.6kيحوّل سير عمل أو جدول بيانات أو مشروعاً إلى تطبيق مرئي مصقول، فيه شاشات مملوءة بالبيانات ووكيل يعمل خلف أدوات التحكم.
visual-plan
7.6kيحوّل خطة نصية عادية إلى خطة مرئية تفاعلية فيها مخططات وخرائط ملفات ومقتطفات كود وأسئلة مفتوحة.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.