← mdbaseCONTENT HISTORY
WHAT CHANGED
Update to mdbase
Snapshot Nov 17, 2026 · 00:13 UTC · version 0.1.2
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save mdbase and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Build a page, site, dashboard, form or small app on top of an mdbase collection, such as a task board, reading-list tracker or habit log. Use when the user wants an interface for viewing or editing their mdbase records rather than a one-off answer.",
"included_files": [],
"name": "mdbase-frontends",
"skill_md_contents": "---\nname: mdbase-frontends\ndescription: Build a page, site, dashboard, form or small app on top of an mdbase collection, such as a task board, reading-list tracker or habit log. Use when the user wants an interface for viewing or editing their mdbase records rather than a one-off answer.\n---\n\n# Building interfaces on mdbase collections\n\nAn interface built on mdbase reads and writes records through the mdbase\ntools at run time. The collection's type definitions are its schema: derive\nthe interface from them instead of guessing fields from a few sample records.\nFollow the `mdbase-collections` skill for tool usage, query syntax and write\nrules; this skill covers what is different when building an interface.\n\n## Before building\n\n1. Call `list_connections` and confirm with the user which collection the\n interface is for.\n2. Call `describe_collection`, then `read_type` for each type the interface\n shows or edits. Note each field's type, whether it is required, enum\n values, defaults and link targets.\n3. Run one small `query_records` (`limit` around 5) to see real values, then\n agree the scope with the user: which types, which fields, read-only or\n editable, and any filters or grouping.\n\n## Mapping types to UI\n\nTypes validate frontmatter with JSON Schema (`schema.value.properties`) and\ndeclare link fields under `collection.links`.\n\n| Schema | Display | Input |\n| --- | --- | --- |\n| `type: string` | text | text input; textarea for long text |\n| `enum: [...]` | badge | select with exactly the enum values |\n| `type: integer` or `number` | right-aligned number | number input honouring `minimum` and `maximum` |\n| `type: boolean` | check mark | checkbox |\n| `format: date` | formatted date | date input, saved as `YYYY-MM-DD` |\n| `format: date-time` | formatted date and time | datetime input, saved with an offset |\n| `type: array` | chips | multi-select or tag input |\n| field in `collection.links` | link text that opens the target record | picker fed by a query on its `target_type`, saved as `[[path]]` |\n| record body | rendered markdown | markdown textarea |\n\nFields in the schema's `required` list must be required in forms. Use `file.path` as the stable key\nfor each record; titles are not unique.\n\n## Run-time rules\n\n- **Never hard-code a `connection_id`.** Each person who uses the interface\n has their own connection, with its own ID. At start-up call\n `list_connections` and select the collection by its name; if it is missing,\n show a \"Connect collection\" action that calls `add_connection` and opens the\n returned link.\n- **Do filtering, sorting and grouping in the query**, with `where`,\n `order_by`, `group_by` and `summaries`, rather than downloading everything\n and filtering in the page. Use `select` to fetch only the fields shown.\n Page through large collections with cursor pagination.\n- **Edits must be revision-checked.** Query results do not carry revisions, so\n call `read_record` when the user opens a record for editing, keep its\n `revision`, and pass it as `if_revision`. On a conflict, reload the\n record, show the user the current values, and let them re-apply their edit.\n- **Show validation errors next to the field they name.** The collection\n validates every write, so the interface does not need to duplicate every\n rule, but it should prevent obvious errors such as missing required fields.\n- **Refresh after writes** from the tool result, or re-query, so the interface\n shows what was actually saved.\n- Use `list_changes` with the last change cursor to refresh only what changed,\n passing it as `after`, when the interface stays open for a long time. If\n `reset` is true, re-query the displayed state before continuing from the\n returned cursor; do not treat an invalid cursor as no changes.\n\n## Do not\n\n- Do not copy record contents into the page source as static data; the\n interface must read live records.\n- Do not create or modify types to suit the interface. If a field the user\n wants does not exist, tell them and ask before using `create_type` or\n `update_type`.\n- Do not offer delete or bulk-edit actions unless the user asked for them, and\n confirm each one before running it.\n"
}SHA-256 of public snapshot: 668ec31d82b52d5eeec4f6048d03623a9669fb776fc9abf2165175e8a26aa77f