Skip to content
Back to skills

Aimeat App Building

ASecurity

The research-first precondition for building any app on AIMEAT, and the repo-side rules for the app-building prompt system and the served browser SDK libs. Use when the task is to build, make, publish or fork an AIMEAT application (game or tool), or when editing src/services/builder/atelier-prompt.ts, its platform sections or /v1/app-templates. Authoring a served SDK lib is skill aimeat-library-authoring.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentstypescriptgoshellnodeawsapidatabase

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add miikkij/aimeat-protocol --skill aimeat-app-building --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aimeat App Building?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aimeat App Building
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/miikkij-aimeat-app-building/badge)](https://www.skillsdirectory.com/skills/miikkij-aimeat-app-building)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aimeat-app-building
description: The research-first precondition for building any app on AIMEAT, and the repo-side rules for the app-building prompt system and the served browser SDK libs. Use when the task is to build, make, publish or fork an AIMEAT application (game or tool), or when editing src/services/builder/atelier-prompt.ts, its platform sections or /v1/app-templates. Authoring a served SDK lib is skill aimeat-library-authoring.
---

# Building an AIMEAT application

## Research first, before reading repo source

The moment the task is "build / make / publish an app on AIMEAT":

> You have `aimeat_*` MCP tools. Follow the research-first flow: load `node:aimeat-app-builder-atelier` and call `aimeat_appdev_overview` first. Every app, new or changed, is built with the **Atelier specification** (`aimeat_handbook_get { tier: "build-app-atelier" }`, in parts, or `GET /v1/prompts/build-app-atelier`); its part `platform` lists the sections only some apps need. The level is `fine` unless the owner chose `proto` or `plain` in their own words; it is not asked. On `fine` (and when no level is stated) the build forks a genre (`aimeat_designbook_search { kind: "genre" }`, then `aimeat_app_template_get { id: "genre-<id>" }`); a `proto` or `plain` page starts from the shell `shell-atelier` with no genre and no register. The Classic track (its spec, skill and T1/T2/T3 shells) was retired on 2026-11-19; an app built on it is moved with the section `from-classic`.

**One guide, the whole build.** On 2026-09-19 a model began on Atelier, judged the Classic shell quicker to start from, changed over, and gave Jouni an app with a hand-built header and a broken sign-in bar; it had accepted that because its own tests passed. That option is closed now. If the Atelier track stops you, say what stopped you and wait. The publish names a new page that is not an Atelier app (`app_hints`, pitfall `track-drift`), and a finished app is compared with the genre it was forked from before it is shown.

This is a hard precondition of the build, not an optional preamble, and it comes **before** reading repo source: existing published apps and the KB show which libs and patterns are already proven, so reuse beats re-deriving from lib sources. Skipping it once produced non-theming (hardcoded colours), meta-less, duplicate, low-polish apps.

Five node-side stores answer almost everything, and they are shared by every session:

- **`aimeat_appdev_overview`**: what apps, extensions and capabilities already exist. Check before building anything.
- **`aimeat_skill_list`** then **`aimeat_skill_get`**: most published apps have their own operating guide as a skill (`user:{owner}/{app}-agent-guide`, `cadence-crm`, `operate-exchange`, `node:origami-boards`, …). If you are working on or against a named app, load its skill instead of reconstructing how it works.
- **App Development Notes**: the dev organism's workspace `fbb51de5-56d5-4143-9871-b998a1187655` / `ws-mslr8u99kzk`, one `appnote` document per app: locked design decisions, prod organism/workspace ids, traps hit while building, open questions the developer still owns. Read the app's note before changing it; write back what the next session would want.
- **`aimeat_appdev_pitfall_list`**: the app-building trap catalogue (curated plus what other sessions learned).
- **`node:aimeat-app-workstation`**, once the app is past roughly 300 kB or a few thousand lines. One file has no natural size limit, and the cost is in the edit loop: a 3.18 MB app on this node turned five-minute changes into forty-minute ones, and 477 kB of it was base64 images inlined into the source. The skill is the fix (assets to storage, sources split behind a build script that assembles the one file, `GET /v1/app-templates/workstation-project` for the scaffold). The publish response's `next_steps.size` says when you are there.

Where a new lesson goes depends on who needs it, and the three are not interchangeable:

| What you learned | Where it goes |
|---|---|
| How to use or operate the app | its skill: **public**, bound with `metadata.binding` |
| How it was built, and what is still open | an **App Development Notes** document |
| A trap that would bite anyone building here | `aimeat_appdev_pitfall_report` |

**Never put development notes in a skill.** Skills are published and app-bound; they are written for whoever uses the app, not for the developer building it.

Non-negotiables that flow enforces:

- Never hardcode theme colours in an app that follows the person's theme: the kit's `--ak-*` tokens are the look. An Atelier genre that keeps its own palette (`<meta name="aimeat-light" content="fixed">`) is the exception the Atelier spec names ("Fixed colours or following their theme?"), and the owner chooses it.
- Include `<meta name="aimeat-scopes">`, and use only scopes that exist in the node's vocabulary. An invented scope means `INVALID_SCOPE` and nobody can log in.
- AIMEAT SDK libs load from `/v1/libs/`; vendored styling from `/lib/`. Do not mix the two.
- **Touch input goes through `aimeat-input`, never a hand-rolled `touchstart` listener.** `AIMEAT.input.tappable(el, fn)` for every button, card and row (built on `click`, so tap, mouse and Enter/Space each arrive once and a screen reader announces it); `AIMEAT.input.on(el, handlers, { axis })` when a click is not enough, declaring `axis` on anything that also scrolls. A hand-rolled touch listener fires twice, triggers mid-scroll, and locks out the keyboard. The mobile rules in the build-app prompt cover LAYOUT; this is the other half.
- **Data on the node reaches the screen through an event, and a timer is the last resort.** `AIMEAT.live.subscribe(['agent-tasks'], …)`, the mosaic's `live` map (a `keyPrefix` for the owner's records, `domains` for the rest) and `AIMEAT.agents.watch` for one task. Both build specifications contain the rule, the domains an app may hear and the three places a timer belongs; the text and what happened without it are in `aimeat/src/services/builder/events-first.ts`. An app built from this repo read an agent task's stage every 30 seconds and showed it 37 seconds late on aimeat.io (Jouni, 2026-10-11).
- Morsels are plain integers, never the meat emoji.
- Check `aimeat_appdev_overview.apps` for an existing app or capability before building. Reuse beats duplicate.

App sources are in the `aimeat-apps/` repo, not in this protocol repo.

## When an app is finished: six records beside it

An app is not done when it is published and works. It is done when these six exist, and "done" is not said to Jouni before that. Every one of them is written for whoever opens the app next, who has only these to go on.

| Record | What it says | How it is written | The publish answer shows it as |
|---|---|---|---|
| **Agent face** | what the app does, for an agent that opens its address | `aimeat_app_manage { action: "face_set", filename, markdown }`, or `AIMEATAgentFace.publish` in the app | `next_steps.agent_face_present` |
| **Bound skill** | how to USE the app through the person's own AI: where the data lives, the record shape, the rules, what the person confirms, the app tools | `aimeat_skill_publish`, `metadata.binding: app:{owner}/{file}` (Atelier section `ai-path`; an app that enforces a rule also gets app tools, section `app-tools`) | `next_steps.bound_skills_count`, `next_steps.ai_path` |
| **Data map** | what the app is for, and per family of keys or files where it lives, who owns and reads it, and why there | `aimeat_datamap_set { app, data_map }` | `next_steps.data_map_present` |
| **Design spec** | purpose, screens, data, decisions and why, AI and agents, open questions, traps | `aimeat_app_manage { action: "spec_set", filename, markdown }` (`spec` answers the outline) | `next_steps.design_spec_present` |
| **Text about the app** | for a person who finds the app: what it does, for whom, how it is used; 150 to 400 words of checkable facts, no instructions to an AI | `aimeat_app_manage { action: "settings", filename, about, about_lang }` | `own_words` in the `seo` answer |
| **App Development Note** | how it was built: commits, prod ids, what broke, what is open | a document in `ws-mslr8u99kzk` (the note-writer role, `.claude/agents/note-writer.md`: a subagent in Claude Code, instructions you follow yourself in another tool) | not in the answer: it is ours, not the node's |

The node holds the first four: from an app's second version on, a publish is refused (`APP_OWES_ITEMS`, every route, a script's too) while the design spec, the data map of an app that keeps data, or the bound skill and agent face of an app that is not a quick prototype or a presentation is missing, or the update has no `roadmap` line. An open acceptance criterion in the design spec refuses nothing: the publish answer's `acceptance_state` says whether the app is accepted at its live version (`criteria_set`, `services/app/acceptance-criteria.ts`). The refusal names each item; nothing is stored (`services/app/owed-gate.ts`, setting `apps.owed_on_publish`). One act is not held to it: `aimeat_app_manage { action: "rollback" }` puts an earlier version back when a release broke the app, and names what is owed in its answer instead (`services/app/rollback-ops.ts`).

The text about the app is what its page and its App Catalog page show under the description, and the only text a search engine reads there before the app draws itself. The node refuses to switch search on while the page has fewer than 150 words of the app's own text (name, description and this text), and announces only an app that has them (TARGET-093, 2026-11-06). Write it in the language of the description and set `about_lang` to match: the page's `lang` attribute follows it.

Three habits keep them from being forgotten:

- **Read the whole publish answer and keep it whole.** Never pipe it through `head` or cut it to its first characters. `next_steps` is the node's list of what the app still owes, and the four booleans above are in it. On 2026-10-10 a signing app reached version 4 with a face and a skill and with neither a data map nor a design spec: the answer was cut to 200 characters on every publish, and until that day `next_steps` did not name those two at all.
- **Write the data map and the design spec straight after the first publish**, while you still know why each thing is where it is. Leave a `why` you do not know empty.
- **Write them again after a publish that changed the screens, a decision, or where data lives.** A design that is reversed mid-build (a request that kept only a hash, then kept the PDF) is exactly what the next builder cannot work out from the code.

## The app-building prompt system

There is one specification, **node-served**: `GET /v1/prompts/build-app-atelier` (over MCP `aimeat_handbook_get { tier: "build-app-atelier" }`, in parts). Source of truth: `src/services/builder/atelier-prompt.ts` and its siblings `atelier-*.ts`. Its platform sections (`atelier-platform.ts`) are cut from the text `src/services/builder/app-prompt.ts` builds, which is served whole to nobody since the Classic track was retired on 2026-11-19; the old addresses (`/v1/prompts/build-app`, tier `build-app`) answer with the Atelier text (`classic-retired.ts`). `?delivery=paste` is the text for an AI that cannot connect.

Consumers: the App Catalog's "Create" dialog (`public/views/appcat/dialogs/generate-prompt.js`) sends a connected AI to Atelier and folds the prompt delivery for an AI that cannot connect; the front page's builder (`public/views/landing-builder.js`) does the same; the OpenHands app-builder (`tools/aimeat-openhands/`) fetches the spec at runtime. Agent-facing discovery is `/llms.txt` plus the bootstrap `app_building` block.

**Improve app-building guidance in the node services (`atelier-*.ts`, and `app-prompt.ts` for a platform section cut from it), never in a client.**

When editing that prompt or any app-building guidance, verify every API claim against the served browser SDK sources under `src/static/sdk-libs/<name>/` and `public/cortex-bundled/*.js`:

- extension data → `getPublic('ext:name', key)`
- user data, including translations and settings → `AIMEAT.data.get(key)`, never `getPublic('ext:...')`
- extension actions → `export default async function(ctx, input) { ... }`

### If several people share the app: draw the data map first

A **group application** is one where several people work on the same thing, somebody owns it, a
person may belong to more than one of them, and not everyone may do everything. The full guidance is
in the node-served spec, `GET /v1/prompts/build-app-atelier` (the interview's data map questions,
"How the data map answers steer the build", and the platform section `group`). Two things belong here as well,
because they decide the work before any code is written.

**The build interview asks the data map step, and nothing is built before a yes.** Three questions (who opens the app: just me, my organisation, anyone; for each kind of data, is it personal, shared by the team or public; who may change the shared data), then a two- or three-sentence scenario from the person's own idea with named people, which they confirm. Team data goes to one organism workspace (`AIMEAT.organism`, `workspacePicker`), never to per-user memory, which gives every person an empty copy (pitfall `team-data-in-personal-memory`; TaskGrid on orgnode.example was asked for one shared talent database and kept one per person). Who opens it is the app's `open_to` setting. The text is in `aimeat/src/services/builder/data-map-step.ts`, included by `atelier-prompt.ts`; change it there, once.

**The data map is a deliverable, and the owner approves it before the first `set()`.** Columns: what
· where it lives · who owns it · who can read it · what happens when a member leaves · is it
personal data. The last two are also exactly what a GDPR audit asks for, so this table is worth
keeping rather than drawing once. Four homes, and one question picks between them: *whose question
does this answer?*

| Home | For | Owner |
|---|---|---|
| organism workspace, schema-locked record | the shared work, and the group's own settings | the organism |
| owner memory | this person's view, and ONE pointer saying which group they are in | the person |
| owner memory, `visibility: public` | what somebody not signed in must read (never people) | the person |
| the extension's namespace | a rule enforced server-side with no human present | the extension |

**Four rows nobody draws, and they are the ones an audit finds.** The table above is what the
node holds and can return. These are not, and each answers *can you delete it* differently:

| What | Where the real one is | What deleting it means |
|---|---|---|
| work with no final state yet: a draft, a half-done send, a hold, an approval waiting | your workspace, unsettled | delete it, and say what happens to the work it was part of |
| a copy of somebody else's record: a registry lookup, an enrichment | THEIR system | your copy goes, theirs does not, and it returns on the next fetch |
| what has already left: an email delivered, a webhook posted | the recipient's inbox | you cannot. All you hold is the record that it happened |
| a credential for a system you do not run | your store, encrypted | the connection stops; the other system is unaffected |

The last row of that table is the one to design against. An erasure request cannot reach a message
delivered last week, so decide BEFORE building what you keep about it: an opaque token instead of an
address, a hash instead of the value, the fact of a send instead of its content. **Deliberate
non-holding only exists if you chose it early.** And in-flight work needs its own answer on screen:
finished, still running, or given up on: a row that renders identically in all three is a lie the
person will repeat.

**Owner memory is the wrong default and it wins by being one line shorter.** Group data stored per
person follows the PERSON between groups while staying invisible to their own TEAM, wrong in both
directions at once. The campaign work in one CRM app (2026-08-24) made that mistake four times in
one feature: campaigns, pipeline stages, follow-up thresholds and the permission binding. Nothing
had shipped, so it cost a rewrite instead of a migration. → appdev pitfall
`group-apps/group-data-in-owner-memory`.

### Memory record shape, decided before the first `set()`

An app that treats memory as a cell-per-fact burns the key budget and gains nothing. The measured
limits, from `src/config.ts`: **1024 kB per value**, **1000 keys per principal** by default. aimeat.io
runs the key ceiling at 100 000, which no other node does, so build against 1000.

- One key holds one entity a user can open on its own, or one collection they read as a unit. Never
  one key per field, never one key per row of a list the UI always renders together. A high-score
  table is one key holding an array.
- **The gate: if `keys_per_day × 365` exceeds 1000, the shape is wrong.** Fold per-item keys into a
  per-period record (`myapp.log.2026-08` holding an array); split only past ~256 kB serialised.
- Nesting is free for search: the key, its segments, the tags and the scalars inside the value are all
  indexed. Stay within 5 levels of the value root (Postgres stops collecting past 6).
- A key name is a stable address, not a sentence: no titles, no tag labels, no user-typed text.

Shared feeds still need one key per **author**, because a user may only write their own namespace.
That is not a reason for one key per entry: `getPublic(gaii, key)` needs a known key either way, and
the data SDK has no cross-owner enumeration at all, so the per-entry split buys no discovery.

Background and the numbers: **MEMORY KEY SHAPE AUDIT** in Platform Development Notes.

## An agent that comes with the app

An app whose work continues while nobody has it open brings an agent of its own. The app declares
it in one `<script type="application/json" id="aimeat-crews">` block in its HTML: what the agent is
for (`description`), the permissions its job needs (`scopes`), its crew and its tasks. Every publish
route reads that block, and so does a package made from the app. A person adds the agent from the
app's page in the App Catalog or through their AI (`aimeat_app_manage`, action `agent_deploy`), and
it exists only after they approve it.

The node skill **`aimeat-app-agents`** (`aimeat_skill_get`) has the shape, a whole example and the
check to run after the publish. Two things go wrong most often, and the publish answer names both
in `app_hints`: a block the node could not use (`bundled-agent-block`), and an agent that names
tools and asks for no permissions (`bundled-agent-permissions`). An agent approved without the
permissions its tools need does the work and then has it refused: measured 2026-11-11, with the
marketplace tools on an agent that held only the memory permissions.

When the code behind this changes, the facts are in `aimeat/src/models/crew-def-schemas.ts`,
`aimeat/src/services/app/bundled-crews.ts`, `app/agent-propose.ts`, `app/agent-deploy.ts` and
`app-agents/app-agent-link.ts`, and the skill text in `aimeat/src/data/builtin-skills.app-agents.ts`.

## Served browser SDK libs

Loading them is app work; **authoring or fixing one is platform work** and has its own rules (ESM
source under `src/static/sdk-libs/<name>/`, esbuild bundle, never JS inside a TypeScript template
string, cached bundle needs a restart). → skill `aimeat-library-authoring`.

The rule that matters from this side: when an app needs behaviour the platform should own, **fix the
lib, not the app**; the fix then reaches every app instead of one.

## A key for an outside service is named, never held

An app never asks for, stores or sends an API key: the browser cannot keep a secret. The call that
needs one is made from an extension, and the extension writes the key into an outbound header by name,
`{{secret:NAME}}`. The node fills it from the **signed-in person's own vault** on the way out (then
from the extension's operator-level `type: secret` config, then fails as `SECRET_UNKNOWN` naming
the header and the secret, with nothing sent). No script, record, log or tool ever reads a stored
value back. What the app owes the person is the NAME and where it goes: their Access page, section
04 Secrets, or their own AI (`aimeat_secret_set { name, value }`, behind `secrets:manage`, which no
wildcard scope includes; `aimeat_secret_list` shows names and which extensions used them). A living
document names a key the same way in a trigger's or a source's `headers`, and its gear dialogs pick
from the stored names. Show a missing key by its name in the UI; never draw a text field for the key.
→ `docs/coding-guidelines/extension-memory-architecture.md` (Secrets: the fourth namespace). A different trap is the one that the `{{secret:NAME}}` placeholder exposed: a capability with a shared builder and a VM bridge was implemented twice, and one copy was dead.

## Removed, do not revive

The SPA service generator (`public/js/services/generator-prompts-*.js`) and the Foundry were removed in July 2026. Do not reference `generator-*` files.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.