Перейти к содержанию
Skillpedia
Код в целом7.6k · #13142

build-an-app

Что он делает

Этот скилл превращает короткий запрос в небольшое работающее доменное приложение на основе стартового шаблона Agent-Native. Он сначала сосредотачивается на одном полезном процессе и называет то, что откладывается. Он нужен тем, кому нужна первая рабочая версия быстро.

Когда использовать

  • ✓Когда кто-то просит создать простой инструмент, трекер, дашборд или систему бронирования.
  • ✓Когда запрос расплывчат, и нужна узкая первая версия, которая работает.
  • ✓Когда нужна проверка дыма, которая показывает, что главное правило приложения работает.

Ссылка на скилл

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/build-an-app/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/build-an-app/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Можешь сделать простое приложение для бронирования комнат, где люди бронируют комнату и видят недельную сетку?”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Агент выбирает один процесс, решает, кто видит каждую таблицу, строит экраны и действия, добавляет контекст для агента и запускает проверку дыма для главного правила.

Технический текст (оригинальный 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:

  1. 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.
  2. 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 table owner_email and/or org_id, directly or via ownableColumns(); org_id alone passes [db-tool-scoping]. Doctor checks the schema marker, not query authorization; never denylist or opt out rooms or bookings.
  3. 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.
  4. Actions: list-<things>, create-<thing>, a single update-<thing> patch per resource, and the domain verbs (cancel-booking). Fewer, orthogonal tools make the agent choose better.
  5. Route: give the domain its own route (for example, /rooms). Preserve existing routes and set app.homePath so sign-in lands on the domain when that is the requested home screen.
  6. Agent context: URL ids and filters (for example roomId, week) that belong in navigation.

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.md
  • default: references/edit-points-default.md
  • workspace root: use adding-workspace-apps to create an app, then follow the new app's own AGENTS.md and scaffold reference.
  • another domain template: use its AGENTS.md and adding-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 ownerEmail from ctx.userEmail and orgId from ctx.orgId on 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

  • schema is 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
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы