storing-data
Skill by BuilderIO
Teaches an AI assistant how to store application data in agent-native apps. All data lives in SQL, and large files go to blob storage. Aimed at developers adding data models or read and write paths to these apps.
Install storing-data
Built from the published package, never by AI.
git clone --depth 1 https://github.com/BuilderIO/agent-native /tmp/agent-native && mkdir -p ~/.claude/skills && cp -r /tmp/agent-native/.agents/skills/storing-data ~/.claude/skills/storing-dataRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/BuilderIO/agent-native /tmp/agent-native && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-native/.agents/skills/storing-data ~/.gemini/antigravity-cli/skills/storing-dataAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets the data storage rules for agent-native apps. All application data goes into SQL, using PGlite for local development and hosted Postgres in production. The agent and the UI share the same database, which holds structured records, metadata, references and searchable text. Large files such as images, PDFs and video go through configured blob storage, and only the returned URL or handle is saved in SQL.
It also covers Drizzle ORM schemas, additive migration rules, identity column policies and state machines for status columns. Raw SQL is limited to typed helpers and maintenance tasks. An opt-in Local File Mode lets some artifact apps keep repo files as their source of truth. It is written for developers building or extending agent-native apps.
Written from the project's SKILL.md and checked against it.
What it can do
- SQL as source of truthKeeps structured records, metadata and searchable text in SQL shared by the agent and UI.
- Drizzle schemasDefines tables with drizzle-orm/pg-core and queries them with Drizzle's query DSL.
- Blob storage for filesRoutes large payloads through uploadFile or putPrivateBlob and stores only the returned reference.
- Attachment referencesMints and opens uploaded file references with core AttachmentRef helpers.
- Named migrationsAdds additive migrations with unique names that stay compatible with older running code.
- Identity column policiesDeclares how identity columns are handled during offboarding and email changes.
- Status state machinesDefines lifecycle status columns with defineMachine and compare-and-set transitions.
- Local File ModeLets opted-in artifact apps read and write scoped repo files through local-artifacts.
What you need
- PGlite for local development at data/pglite
- A persistent hosted PostgreSQL DATABASE_URL for production and shared preview deploys
Try asking
- Add a tasks table with title and completed fields to this app
- Store this uploaded PDF in blob storage and save its reference in SQL
- Add a status column with a state machine for this order workflow
Good to know
- Large binary files must go to blob storage, and the app fails closed if storage is unavailable.
- Local File Mode is opt-in and only applies when explicitly configured.
- Raw SQL is meant for additive migrations, health checks and one-off maintenance, not normal features.
- The skill is marked internal with dev scope in its metadata.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/storing-data/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB
Alternatives to storing-data
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
storing-data: common questions
Where does application data live in agent-native apps?
All application data lives in SQL. Local development uses PGlite at data/pglite, and production needs a persistent hosted PostgreSQL DATABASE_URL.
Should images or PDFs be stored in the database?
No. Large binary or file payloads go through configured blob storage such as uploadFile() or putPrivateBlob(), and only the returned URL or handle is saved in SQL.
Can an app use repo files instead of SQL?
Only in Local File Mode, which must be set explicitly through agent-native.json, AGENT_NATIVE_MODE=local-files, or an app-owned local-file action helper.
How do I install storing-data?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is storing-data free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is storing-data safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to storing-data?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
