Skip to content
Back to skills

App Builder

ASecurity

Use when making or changing one of the user's apps (made here: a form, steps, a view, data, screens and examples), or when they want a tool they will run again and again, or work that runs by itself.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsjavascripttypescriptpythongojavasqlawsapidocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add algoprog/hydor --skill app-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of App Builder?

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

Security grade badge for App Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/algoprog-app-builder/badge)](https://www.skillsdirectory.com/skills/algoprog-app-builder)

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: app-builder
description: "Use when making or changing one of the user's apps (made here: a form, steps, a view, data, screens and examples), or when they want a tool they will run again and again, or work that runs by itself."
category: app
triggers: [make a template, build a template, make an app, build an app, an app that, a tool that, every time I, automate, workflow]
---

# Building apps

An app is a small tool for one job that helps people see and find information: a few questions in, the looking up
and working out done by its steps, and the answer shown clearly in a view of its own (a map, a chart, a table,
cards). It opens on its own page, and agents run it for the user in any chat (they find it by its name and
description, so make those say plainly what it does). Keep it to one job, quick and cheap to run; when asked for
something big (a whole product, many jobs at once), propose the one or two small apps that matter most, or a
project in a session instead.

An app is what it asks (a form), what it does (one agent's task, or steps), what it gives back
(answer fields), how its answer looks (a view: pages, elements, events), what it keeps (lists of records, a
memory), its own page (a screen, or view pages for it), when it runs (its form, a schedule, a webhook, a watcher)
and examples to try it with. Build them with app_get, app_sketch, app_save, app_try,
app_screen and app_data (its records: start it off with some, or see what its runs kept), and app_services for
the free data services to call; app_guide's apps topic says what each part does, and its API topic gives the format.

## 0. Learn from the ready-made apps, then sketch

- Before you design, app_get with `like` (what the app does, in a few words) gives the three closest ready-made
  apps; read the one or two nearest whole (`app: "tpl:<id>"`) and build the way they do: their steps, their
  views, how they call services and handle what fails. `ready: true` lists them all.
- For data, look in app_services (forecasts, places, encyclopedia pages, exchange rates…) before you call an
  address from memory; for a service it does not list, read its documentation (read_page) first.
- A new app: your first reply is one app_sketch, and nothing is saved until the user says to build it. The sketch
  is the draft as app_save takes it (its steps may still be words: `steps: [{ title, kind }]`), what you assumed
  (`assumed`, a short line each), and at most three `questions`, only those whose answers change the design, each
  with its likely answers as `choices` (the one you assumed first). The user sees it as a card with **Build it**,
  which sends "Build it" and the choices they picked, and **Change it…**. End your turn and wait for that.
- A change to an existing app, or a user who says to just build it: no sketch, build.

## 1. Pin down the job

- What goes in: the form's questions, few, each of the kind that fits (number, date, choice, yes or no, file,
  project). A `project` question is a select of the user's projects: the run then works in the one picked (its folder,
  its knowledge in knowledge_search and knowledge_read), and `{{project_name}}` and `{{project_folder}}` name it. Use
  it when the app works on a project's sources, not a folder named in the recipe. Its `default` is the only project
  a run started with an app key or a webhook can use: set one only when the user says which.
- What comes out: answer fields with types (a table when there are rows, a list for short items, `media` for
  pictures, videos or files the agent finds or makes: an https:// address, or a file's path on this computer, of
  which a copy is kept; a table's `image` column for a picture in each row).
- What it needs: keys for the services it calls (an API key, a token) go in `secrets` by name, with the hosts each
  may go to and where to get one, never a value: the user gives them when installing it or before its first run,
  and its runs use them by name (http_request `auth: NAME`). Check list_connections for a key already saved.
- A Hydor plugin it cannot do without goes in `requires.plugins` by name (GET /api/plugins lists them): a run starts
  only while it is on, its agent steps get its tools and skills, and a tool step calls its MCP tools as
  `plugin:<plugin>/<tool>`. Give a tool that writes a file a path under `{{run.folder}}`.
- What makes a run good: the checks you will write. Ask only what changes the design; assume the rest and say so.

## 2. Pick the steps: the cheapest that works

- One agent with a task, when the work is open-ended (research, writing, changing code). Start here when unsure,
  and firm it up later.
- Steps, when parts of the work are fixed:
  - **Use a tool** for one exact call: read a page, search the web, call an address with a saved key, read a document,
    or call a needed plugin's tool (`plugin:sqlite/sqlite_query`).
    A search step's words are searched as written ("events Lisbon December 2026" looks for those events): to keep
    to dates, sites or kinds of page, set `from`, `to`, `sites` or `categories`.
  - **Ask a model** for one quick answer with no tools: sort, pull out, sum up, classify. Cheap; give it outputs.
  - **Decide** by a rule when a value settles it (`{{price}} < 100`), by a question in words otherwise.
  - **Repeat** over a list (a few at a time), or until something holds, with a limit.
  - **At the same time** for parts that do not depend on each other.
  - **Keep data** to add, find, search or change the records the app keeps.
  - **Work out a value** for the first item, a count, a sum or an average, a field of each, a join or a sort: at
    once and free, no code step needed.
  - **Call an app** to reuse a block: an app made to be a step of others (block: true; app_get's list marks
    them). Ready-made ones sum up a page, translate, answer from the web, sort into kinds and pull out facts. A part
    used in several apps is worth making a block of its own (block: true), changed in one place.
  - **Run code** for exact arithmetic, parsing and formatting: JavaScript, TypeScript or Python, no network. A
    program can also be the flow itself, when its logic is easier written than drawn: ctx.model, ctx.agent,
    ctx.tool, ctx.ask, ctx.data and ctx.app are steps of the run, kept and replayed after a restart (so make the
    same calls in the same order for the same input). Say what it gives (outputs).
  - **Ask a person** before anything that sends, spends or deletes, and when the choice is the user's.
    Its form's choice can offer what an earlier step found: an option written as one `{{find.items}}` becomes that
    list's items (or a text's lines) when it asks, and `multi: true` lets the person tick several (the value has one
    a line). Use it to ask which of the things a run found to go on with, instead of a free-text box.
  - **Ask an agent** for the parts that need judgement and tools, with outputs it hands in.
- Have an app's agent think with a tier, not a model by name: set `tier` on the recipe (and on an agent step that needs
  another one). A tier is the model Settings → Models → Tiers means for whichever program runs the app, and it follows
  the table as models change; a `model` named outright wins over it, so leave `model` out. Pick the lowest tier that
  does the job well: `quick` for short, clear jobs (a summary, formatting, a look-up), `standard` for most,
  `best` for research and hard reasoning, `max` rarely. A step with no tier of its own uses the app's.
- Every step's outputs are what later steps use (`{{step.value}}`); the form's answers are `{{field}}`, a Repeat's
  item `{{item}}`, and the built-in values `{{today}}`, `{{now}}`, `{{weekday}}`, `{{timezone}}` (the user's) and
  `{{run.source}}` (web, api, task, batch…: guard an Ask a person step with it, so runs nobody watches never wait).
  Fill the answer fields from the steps (`flow.outputs`), or let them come by name.
- Set `language: "person"` on every new app, so its models and agents write in the user's language; a question about the user (units, currency, country, diet, research fields) says `from: "me.units"` and fills itself from About you, and steps read `{{me.units}}`, `{{language}}`, and code `ctx.locale`.

## 3. Examples, then try

- Write two to four examples with checks (rules on `{{answer.field}}`, `{{step.value}}`, `{{reply}}`) before you
  hand the app over: the usual case, an edge, and one that should be refused or come back empty.
- Try them with app_try and fix what fails. Say what a run costs and how long it takes.
- To change a late step, save the change and run again from that step (its run page, or a test run in its Edit):
  the steps before it give what they gave, at no cost.
- Each save that changes it is a version, its line app_save's why: try the examples on each saved version (Versions
  compares them), and when a change made it worse, app_get with version gives the one before to save again.

## 4. Design how its answer looks

Prefer card fields: an answer field `{ id, label, type: "ui", ui: "<card>" }` (a step's output `ui(<card>)`) is one
of the answer UIs a chat shows (find_ui gives their names and data), filled in by the app's agent and drawn as in a
chat, with no view to write; a comparison, an itinerary, a recipe or a chart look right at once. Write a view only
for what no card draws (a view cannot place a card yet), as `ui`, saved with app_save: its answer then opens in
pages made for it. The format is in app_guide's API topic (Apps: views).

- **Pages** are tabs, one for each thing a person comes back to (the trip, the days, what to book, the budget),
  at most four or five; a detail page (`tab: false`) opens from a click on an item (a day, a product).
- **Elements** are small HTML templates that the answer fills: `{{result.overview}}`, a day card drawn once for
  each day (`data: "result.days", each: true`, with `{{date|weekday}}` inside), a big number (`{{result.flags|count}}`).
  Give each element its own CSS (rules for what is inside it, `&` for itself), with the page kit's colours only
  (`var(--n-card)`, `--n-line`, `--n-muted`, `--n-accent`, `--n-accent-soft`, `--n-ok`, `--n-warn`, `--n-err`,
  `--n-radius`), so it fits the app in light and dark; no fixed widths; no animations; text people read at 14–15px.
  Built-in elements save work: text (Markdown with values), markdown, list, checklist (ticks kept with the run),
  table, chart (bars), and for media: image (pictures side by side, opening large), video (a file, YouTube,
  Vimeo), audio, map (rows with `lat` and `lng`: `with: { label, popup, line: true, numbered: true }`; the agent
  must hand in coordinates) and plot (Plotly from rows: `with: { kind: line|bar|area|scatter|pie|histogram|
  heatmap|scatter3d|surface, x, y, series, stacked }`, or a Plotly figure as the value).
- **Widgets**, for what no element draws (a 3D scene, a game, a chart library's own look): `ui.widgets.<name>.code`
  is an ES module, `export default function (el, value, view) { … }`, placed by a block as an element is; it
  imports the npm packages `ui.libs` names at exact versions (`"three": "0.170.0"`), loaded from jsDelivr. Use
  the built-in map and plot first; a widget reaches the app only through `view.event(name, item)` and `view.set`.
- **Its own files** (pictures, a logo, sample videos, a data file): app_save's `assets` (a name → a path or an
  https:// address); a view shows one as `asset:<name>` (an image block's value, or a template's `src`). They
  travel in its .hydor-app.
- **Events** make it useful: `data-event="name"` on a button, mapped to actions. Go to a detail page with the item;
  tick something off and keep it (`toggle`, `name: "done.@key"`, `keep: true`); filter with `set` and a block's
  `where`; copy the part people paste elsewhere; run it again with one answer changed (`again`: a slower pace,
  one more day, a more formal letter, new questions); start another app on part of it (`start`); put a list of
  experiments to an agent (`experiments`: a request on the start page, sent only by the person; with `source:
  "paper"` and a paper's title as the one item, it asks to try that paper's idea on the person's code). `ask` (a
  follow-up that changes the result) works with steps too, once a run is done; for other answers use `again`, or
  a flow (`run`, with `as` to show its answer).
- Save, then app_try a run with `look: true` and look at the pictures (a computer in the dark and in the light, a
  phone in the dark): fix what reads badly or breaks (text cut off or overlapping, empty blocks, colours that vanish
  in one theme, a phone layout that does not fit), and the names its `view` says the answer did not give (they show
  empty). Look again after each change to the view. Send the user the run's link (the view opens there) and say
  what its buttons do.

## 5. Safe and cheap

- Limits: runs a day and the most a run may spend. Tools: only those it needs.
- No waits or retry loops of your own around a service, in a step or a program: the app tries a failed call
  again, spaces the calls to one service and keeps look-ups for a while by itself (a tool step's `cache: false`
  when an answer must be fresh). What a run could not get shows on its page and in `{{run.misses}}`.
- A step that may fail says what happens then (If it fails…: go on without it, other steps, or `failed: "agent"`:
  an agent does a tool, model, code, data or app step's work with what it was given, and the run goes on).
- Nothing reaches outside data and private data and sends things out in one step without an Ask a person first.

## 6. Firm it up later

- app_get's advice says what an app's runs showed: a step that failed and had an agent do its work (fix it so
  it works by itself), and an agent step that did the same each time, with the fixed steps that could do it.
  Put those in its place, try them on the examples (app_try with the recipe), compare time and cost, then save.

## 7. Hand it over

- A screen (app_screen) when it will be used often or keeps data: start from the one made from its parts. Its
  `<n-chat>` part lets people ask the app's agent about its records, or to change them or run its flows.
- When it should run by itself, propose a scheduled task that runs it (schedule_task with template: the app and its answers).
- Agents in the user's sessions run their apps for them (use_app, when asked for what one does), asking on the
  app's card for what the request left out: give its questions labels that read on their own, and mark only what
  it truly needs as required. An app used on its own page (a screen, or a view of what it keeps) gets
  `sessions: false`, so agents leave it alone.
- Say in a few lines what it asks, what it does, what a run costs, and how to change it (Edit, or ask you).

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.