security
Что он делает
Этот скилл перечисляет правила безопасности для данных приложения, действий, маршрутов, загрузок и внешних запросов. Он нужен разработчикам, которые меняют вход в систему, доступ к базе данных, загрузку файлов или серверные вызовы веб-адресов, указанных пользователем.
Когда использовать
- ✓Когда вы меняете код входа, прав доступа или доступа к базе данных.
- ✓Когда приложение принимает загрузки или содержимое от внешних пользователей.
- ✓Когда сервер будет запрашивать веб-адрес, переданный пользователем.
Ссылка на скилл
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/security/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Убедись, что пользователи видят только свои заметки, и проверяй загрузки до сохранения.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл велит агенту проверять каждый входной параметр, использовать параметризованные запросы и фильтровать каждое чтение и запись по доступу вызывающего. Если доступ нельзя подтвердить, он отклоняется.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Security
Rule
Treat each action, route, query, and external request as a trust boundary. Validate inputs, check the caller's authority for every row, and fail closed when access cannot be established.
Validate input and queries
- Define action inputs with a Zod
schema; validate data from forms, URLs, providers, and files before using it. - Build database queries with Drizzle. For raw SQL, bind values as parameters; never concatenate user input into SQL text.
- Keep large uploads and file contents in file storage. Store only their returned ids or URLs in SQL.
Authorize rows and actions
Choose a table's access model when designing its data:
| Data | Access model |
|---|---|
| Private user rows | Store owner_email and filter every read and write by the current caller. |
| Organization-wide catalog | Store org_id and scope action queries to the active org; gate restricted mutations by org or app role. |
| Team-shared or individually shareable resources | Use ownableColumns(), register the resource type, and check access with the sharing helpers. |
| Child rows | Check access to the parent before reading or changing children; add any child-specific rules in the action. |
Do not make a team-wide catalog private by adding a per-user owner filter. For
an organization-owned catalog, org_id without owner_email is valid: scoped
database tools expose only the active organization's rows, while app actions
still need their own org filter and authorization. For resources users can
share, use these helpers:
- Add
accessFilter(table, sharesTable)to list and read-many queries. - Use
resolveAccess(type, id)for an optional read by id, orassertAccess(type, id, role)before a read or write that requires access. - Use an action's
authorizegate for role-wide restrictions. It decides who may call the operation; it does not replace row-level access checks.
Prefer actions for normal app data. A custom HTTP route is appropriate for protocols such as uploads, streaming, webhooks, OAuth callbacks, or public unauthenticated resources. An authenticated custom route must establish the session/request context and apply the same row-level access checks as an action.
Handle untrusted content and URLs
- React escapes rendered text. Do not pass untrusted content to
dangerouslySetInnerHTML,innerHTML,eval, ordocument.write. - Use
ssrfSafeFetchfrom@agent-native/core/extensions/url-safetyfor server-side requests to user- or agent-controlled URLs. It checks private network destinations and redirects. - Treat provider error bodies and uploaded files as untrusted input. Return a useful, bounded error to the user without exposing internal details.
Protect credentials and consequential actions
Never put credential values in source, prompts, action arguments or results,
application state, client bundles, logs, or error messages. Use the shared
credential flow in the secrets skill.
For a genuinely high-consequence outward action, such as sending a message,
charging a payment method, or publishing publicly, use needsApproval to ask
the user to approve that call. Approval does not grant access: keep the normal
authorize and row-level checks as well.
Related skills
actions— define validated operations shared by the agent and UI.secrets— connect external services and resolve credentials safely.sharing— configure access to shareable resources.
Частые вопросы
Что происходит, если доступ нельзя подтвердить?
Скилл советует действовать по принципу отказа по умолчанию (fail closed), то есть запрос отклоняется.
Куда класть большие загруженные файлы?
В файловое хранилище, а в базе данных сохраняется только возвращённый идентификатор или URL.
Как сырой SQL обрабатывает пользовательский ввод?
Значения передаются как параметры и никогда не вставляются в текст SQL.
Подробности
Оригинальное описание автора
Secure app data, actions, routes, and external input. Use when changing authentication, authorization, database access, uploads, untrusted content, or server-side requests to user-provided URLs.
repo: BuilderIO/agent-native
Популярность
- Звёзды на GitHub
- 7.6k
- Место в рейтинге
- #13180
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
design-exploration
7.6kПомогает агенту рассмотреть несколько направлений дизайна интерфейса рядом, дать вам выбрать одно, а затем доработать выбранное.
visual-edit
7.6kПомогает агенту открыть запущенное локальное приложение в визуальном редакторе, чтобы вы вместе просмотрели и правили его настоящие экраны.
turn-into-app
7.6kПревращает процесс, таблицу или проект в аккуратное визуальное приложение с заполненными экранами и агентом, работающим за элементами управления.
visual-plan
7.6kПревращает обычный текстовый план в интерактивный визуальный план с диаграммами, картами файлов, фрагментами кода и открытыми вопросами.
Похожие скиллы
reverse-engineer-anything
422kПомогает агенту изучить готовые приложения и пакеты, объяснить их функции, сравнить версии или помочь с пересборкой через REA.
1password
394kПомогает агенту настроить командную строку 1Password, войти в нее и читать или подставлять секреты, не выводя их значения в чат.
healthcheck
394kПомогает агенту проверить компьютер или сервер, на котором работает OpenClaw, на риски безопасности, такие как SSH, файрвол, обновления и резервные копии, а затем предложить безопасные исправления.