[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79SKB00PKVTANVBJKMBWXH7":3,"skill-same:01M79SKB00PKVTANVBJKMBWXH7":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M79SKB00PKVTANVBJKMBWXH7","bolt-primer",null,"Build a Bolt workspace with no other skill - source roles, contract queries, authoring order, pitfalls.","norbital-ai\u002Foss","norbital-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F124877547?v=4","01M79SJKDFTRF9EATNGVEPTTC2","Norbital","01M79SJKE16F7G9NK7P9X6RQES",1,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fbolt-primer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bolt-primer\ndescription: Build a Bolt workspace with no other skill - source roles, contract queries, authoring order, pitfalls.\n---\n\nThis page, its starters at the end and `workspace_lang` are enough for a normal build: read no other skill first. Read a reference only for a diagnostic this page does not resolve. Ask for several types in one `workspace_lang` call.\n\n## Roles\n\nA `+` file is a compiler role, default-exporting its declaration; its path is its name (`^[a-z][a-z0-9_]*$`, folders singular). Other files are plain modules. Under `src\u002F`:\n\n- `+workspace.ts` `workspace(spec)`: zone, locale, currency, apps, capabilities\n- `+secrets.ts` `secrets(spec)`: secret names\n- `data\u002Fmodel\u002F\u003Cname>\u002F+model.ts` `model(spec)`: fields, reads, writes, state, search, `effect` (work after a committed write). Folders nest; the leaf names it. `+representation.svelte` beside it: record view; `+\u003Csync>.sync.ts` `sync('\u003Cmodel>', '\u003Csync>', spec)`: a file or remote sync\n- `data\u002Fcustom_field\u002F\u003Cname>\u002F+custom_field.ts` `custom_field(spec)`, `+renderer.svelte`: value type\n- `access_control\u002Fpolicy\u002F+\u003Cname>.policy.ts` `policy(spec)`: what holders may do\n- `access_control\u002Fteam\u002F+team.ts` `team(spec)`: team handles to policies\n- `automation\u002F+\u003Cname>.automation.ts` `automation(spec)`: job or call with its own policies; `agent` controls its use as a tool\n- `integration\u002F\u003Cname>\u002F+integration.ts` `integration(spec)`, `+integration.svelte`: connection, setup\n- `app\u002F\u003Capp>\u002F+app.ts` `app(spec)`: label and `pages`; `+group.ts` `group(spec)`\n- `app\u002F\u003Capp>\u002F+\u003Cpage>.page.svelte`: page with a `ctx` prop\n- `app\u002F\u003Ck>\u002F+app.ts` with `shell: 'kiosk'`: shared-device surface with fixed policies\n- `agent\u002F+agent.md`, `agent\u002Fskill\u002F\u003Cs>\u002F+skill.md`: brief, skill\n- `agent\u002Fmcp\u002F+\u003Cn>.mcp.ts` `mcp(spec)`; envoys are runtime `sys_envoy` rows\n- `i18n\u002F+messages.ts` `messages(spec)`, `+\u003Clocale>.messages.ts`\n\nBeside `src\u002F`: `seed\u002F+seeder.ts` `seeder(spec)`; rows `seed\u002Fpublic\u002F**\u002F\u003Cmodel>.json`, `seed\u002Ftest\u002F**\u002F\u003Cmodel>.json`; `tests\u002F*.test.ts`; `assets\u002F`.\n\n## Contracts\n\nWrite each role from its starter below. A role's card in `bolt-contract` lists its symbols' fields and types, generated from them: read it once, only for a field the starter does not show. A role without a card is answered by `workspace_lang` on the exported type; never guess a filename.\n\nA body that takes `ctx` is a generator, `function* (…)`: a policy `verdict`, a transform, an effect or a `run`. It goes through `yield*`.\n\n`workspace_lang` answers only what a card leaves out:\n\n- A type: `{ op:'type', type:[\"import('@norbital-ai\u002Fui').TableProps\"] }`, several at once. `import('pkg').X` works only for exported types; a value is `typeof import('pkg').x`. Packages: bolt, ui, std, bolt-cli.\n- A declaration's spec: `Parameters\u003Ctypeof import('pkg').fn>[0]`; its file supplies the name. Narrow with `X['field']`. Models and integrations use their generated per-file binding, not a root declaration imported back from their source.\n- `type` answers any shape with no file. `completions`, `hover`, `signature` need path, line, column of a file you are writing: a file written only to ask is a wasted edit.\n- Live names: `describe_workspace`, `workspace_list_dir`.\n\n## Protocol\n\n1. Author in order: model, access, automation or sync, page, tests. Add a page only for a task the model's table and record sheet do not cover.\n2. Edit with `workspace_write`, `workspace_edit` and `workspace_move`, one file a call, or `workspace_patch`, any number of files in one call. Edits stay in your working tree and check nothing: finish the source, then diagnose. After a schema change `workspace_generate` writes the generated migrations into the working tree; a diagnosis fails until they exist. `workspace_migrate` runs them on your own workspace's database, with SQL reads before and after, so you see what they do to real rows. Only a merge migrates live.\n3. `workspace_diagnose` runs the diagnosis on the working tree. `workspace_test` runs the tests; a long run goes on in the background and reports by itself. Both run by hand. Fix what they name. Tests `empty` proves nothing: every automation and refused state carries a test.\n4. `workspace_commit` with a message, in any state; new commits join your line on top of live. `workspace_rebase` replays them on top of live, migrations too, when you want to test against live as it is now; a merge never needs it. Reverting to redo work never helps.\n5. `workspace_preview` builds the last commit, serves it and opens every page. `workspace_try` runs each automation once on the preview and reads what it changed. A preview binds no integration links: a sync's decoding is proved in a test. After the merge, create its connection on live with `sys_integration.create { integration, name }`, start it, and read the rows.\n6. `workspace_merge` with the last commit, a summary and a ledger saying for each capability what implements it, or `skip: reason`. It needs no uncommitted edits and a preview of that commit, and is refused over a known failed diagnosis or failed tests. Merges land one at a time: the queue replays your commits on live as it stands, runs any diagnosis or tests that head lacks, and checks again if the replay changed anything.\n\n## Rules\n\n- A model exposes guarded verbs only. A business operation is an automation.\n- A policy can only grant a verb the model declares; it filters rows, never shape.\n- An automation runs with its declared `policies`, never its starter's; `actor.*` there matches nothing.\n- Effectful bodies are `function*` and `yield*` their `ctx` Effects.\n- Decimals in policy and model code use `dec` values from the decimal module, never plain numbers.\n- Named constraints take arrays for `unique` and `per`. Mark one unique constraint `import_key: true` for matching imports. Computed expressions live on fields; physical and search indexes live under `indexes`.\n- Each create\u002Fupdate transform and per-verb effect receives `{ before, set, after, changed }` changes. Return sets or `{ sets, with, on_approved }` from create\u002Fupdate transforms; a delete transform returns nothing or `{ with, on_approved }`. Effects receive approval lifecycle details in `ctx.event`.\n- Commit related writes through one `ctx.act({ '\u003Cmodel>.\u003Cverb>': inputs })` map. Update\u002Fdelete targets carry selected rows and their revisions. There are no `many`, `checked`, upsert or transaction alternatives.\n- `seed\u002Ftest\u002Fassets.json` and `seed\u002Fpublic\u002Fassets.json` are the reserved asset list: never name seed rows that, even for a model called assets.\n- Migrations are generated. Edit one only to move data: the schema must arrive at what the models declare. Never edit `.norbital\u002F`.\n- Credentials never enter source, seeds or model fields.\n- Never rebuild search, filters, paging, import\u002Fexport, approvals, history or label maps: the views render them.\n\nDetail: the `authoring-tenant-workspace` skill indexes every reference.\n- A test sets no `timeout` option and never waits on the wall clock: the test lint refuses the run even when every case passes.\n- Porting a system: `reference` its repository first, then read its schema, routes, jobs and permissions with `read_file` (a script over `tool('read_file', …)` reads many at once). Inventory every capability, map each to a Bolt mechanism, build from that, never from memory of the product. Import and export carry over as a file sync per model that had them.\n\n## Messaging and envoys\n\nEnvoys are runtime `sys_envoy` rows, deployed through `sys_integration.envoy`. Do not look for an envoy source declaration or assume a contract filename. `describe_workspace { names: ['system'] }` returns available setup capabilities and account IDs. Create the envoy and its workspace account through native records, then open `integration.manage` with `page { path, configure }` for the person to pair it. Never collect credentials in chat.\n\nA daily message is a cron automation using `ctx.send` through the intended active, paired account. Resolve it from runtime records, narrow its definition with `instance_id`, and fail clearly if missing or ambiguous. Recipient replies continue through the deployed envoy in the same conversation. Confirm queue admission separately from provider delivery; a timeout may be uncertain and a retried automation may repeat a committed send.\n\n## Asking to apply a change\n\nWrite the approval summary in one or two short sentences: what changes for the person and any material data risk. Keep evaluation scores, schema inventories, commit messages and test logs in the work evidence. The native card already presents the version, measured data changes and decision buttons; do not paste the same proposal again in an assistant reply. Let the person use the card.\n","This page, its starters at the end and `workspace_lang` are enough for a normal build: read no other skill first. Read a reference only for a diagnostic this page does not resolve. Ask for several types in one `workspace_lang` call.\n\n## Roles\n\nA `+` file is a compiler role, default-exporting its declaration; its path is its name (`^[a-z][a-z0-9_]*$`, folders singular). Other files are plain modules. Under `src\u002F`:\n\n- `+workspace.ts` `workspace(spec)`: zone, locale, currency, apps, capabilities\n- `+secrets.ts` `secrets(spec)`: secret names\n- `data\u002Fmodel\u002F\u003Cname>\u002F+model.ts` `model(spec)`: fields, reads, writes, state, search, `effect` (work after a committed write). Folders nest; the leaf names it. `+representation.svelte` beside it: record view; `+\u003Csync>.sync.ts` `sync('\u003Cmodel>', '\u003Csync>', spec)`: a file or remote sync\n- `data\u002Fcustom_field\u002F\u003Cname>\u002F+custom_field.ts` `custom_field(spec)`, `+renderer.svelte`: value type\n- `access_control\u002Fpolicy\u002F+\u003Cname>.policy.ts` `policy(spec)`: what holders may do\n- `access_control\u002Fteam\u002F+team.ts` `team(spec)`: team handles to policies\n- `automation\u002F+\u003Cname>.automation.ts` `automation(spec)`: job or call with its own policies; `agent` controls its use as a tool\n- `integration\u002F\u003Cname>\u002F+integration.ts` `integration(spec)`, `+integration.svelte`: connection, setup\n- `app\u002F\u003Capp>\u002F+app.ts` `app(spec)`: label and `pages`; `+group.ts` `group(spec)`\n- `app\u002F\u003Capp>\u002F+\u003Cpage>.page.svelte`: page with a `ctx` prop\n- `app\u002F\u003Ck>\u002F+app.ts` with `shell: 'kiosk'`: shared-device surface with fixed policies\n- `agent\u002F+agent.md`, `agent\u002Fskill\u002F\u003Cs>\u002F+skill.md`: brief, skill\n- `agent\u002Fmcp\u002F+\u003Cn>.mcp.ts` `mcp(spec)`; envoys are runtime `sys_envoy` rows\n- `i18n\u002F+messages.ts` `messages(spec)`, `+\u003Clocale>.messages.ts`\n\nBeside `src\u002F`: `seed\u002F+seeder.ts` `seeder(spec)`; rows `seed\u002Fpublic\u002F**\u002F\u003Cmodel>.json`, `seed\u002Ftest\u002F**\u002F\u003Cmodel>.json`; `tests\u002F*.test.ts`; `assets\u002F`.\n\n## Contracts\n\nWrite each role from its starter below. A role's card in `bolt-contract` lists its symbols' fields and types, generated from them: read it once, only for a field the starter does not show. A role without a card is answered by `workspace_lang` on the exported type; never guess a filename.\n\nA body that takes `ctx` is a generator, `function* (…)`: a policy `verdict`, a transform, an effect or a `run`. It goes through `yield*`.\n\n`workspace_lang` answers only what a card leaves out:\n\n- A type: `{ op:'type', type:[\"import('@norbital-ai\u002Fui').TableProps\"] }`, several at once. `import('pkg').X` works only for exported types; a value is `typeof import('pkg').x`. Packages: bolt, ui, std, bolt-cli.\n- A declaration's spec: `Parameters\u003Ctypeof import('pkg').fn>[0]`; its file supplies the name. Narrow with `X['field']`. Models and integrations use their generated per-file binding, not a root declaration imported back from their source.\n- `type` answers any shape with no file. `completions`, `hover`, `signature` need path, line, column of a file you are writing: a file written only to ask is a wasted edit.\n- Live names: `describe_workspace`, `workspace_list_dir`.\n\n## Protocol\n\n1. Author in order: model, access, automation or sync, page, tests. Add a page only for a task the model's table and record sheet do not cover.\n2. Edit with `workspace_write`, `workspace_edit` and `workspace_move`, one file a call, or `workspace_patch`, any number of files in one call. Edits stay in your working tree and check nothing: finish the source, then diagnose. After a schema change `workspace_generate` writes the generated migrations into the working tree; a diagnosis fails until they exist. `workspace_migrate` runs them on your own workspace's database, with SQL reads before and after, so you see what they do to real rows. Only a merge migrates live.\n3. `workspace_diagnose` runs the diagnosis on the working tree. `workspace_test` runs the tests; a long run goes on in the background and reports by itself. Both run by hand. Fix what they name. Tests `empty` proves nothing: every automation and refused state carries a test.\n4. `workspace_commit` with a message, in any state; new commits join your line on top of live. `workspace_rebase` replays them on top of live, migrations too, when you want to test against live as it is now; a merge never needs it. Reverting to redo work never helps.\n5. `workspace_preview` builds the last commit, serves it and opens every page. `workspace_try` runs each automation once on the preview and reads what it changed. A preview binds no integration links: a sync's decoding is proved in a test. After the merge, create its connection on live with `sys_integration.create { integration, name }`, start it, and read the rows.\n6. `workspace_merge` with the last commit, a summary and a ledger saying for each capability what implements it, or `skip: reason`. It needs no uncommitted edits and a preview of that commit, and is refused over a known failed diagnosis or failed tests. Merges land one at a time: the queue replays your commits on live as it stands, runs any diagnosis or tests that head lacks, and checks again if the replay changed anything.\n\n## Rules\n\n- A model exposes guarded verbs only. A business operation is an automation.\n- A policy can only grant a verb the model declares; it filters rows, never shape.\n- An automation runs with its declared `policies`, never its starter's; `actor.*` there matches nothing.\n- Effectful bodies are `function*` and `yield*` their `ctx` Effects.\n- Decimals in policy and model code use `dec` values from the decimal module, never plain numbers.\n- Named constraints take arrays for `unique` and `per`. Mark one unique constraint `import_key: true` for matching imports. Computed expressions live on fields; physical and search indexes live under `indexes`.\n- Each create\u002Fupdate transform and per-verb effect receives `{ before, set, after, changed }` changes. Return sets or `{ sets, with, on_approved }` from create\u002Fupdate transforms; a delete transform returns nothing or `{ with, on_approved }`. Effects receive approval lifecycle details in `ctx.event`.\n- Commit related writes through one `ctx.act({ '\u003Cmodel>.\u003Cverb>': inputs })` map. Update\u002Fdelete targets carry selected rows and their revisions. There are no `many`, `checked`, upsert or transaction alternatives.\n- `seed\u002Ftest\u002Fassets.json` and `seed\u002Fpublic\u002Fassets.json` are the reserved asset list: never name seed rows that, even for a model called assets.\n- Migrations are generated. Edit one only to move data: the schema must arrive at what the models declare. Never edit `.norbital\u002F`.\n- Credentials never enter source, seeds or model fields.\n- Never rebuild search, filters, paging, import\u002Fexport, approvals, history or label maps: the views render them.\n\nDetail: the `authoring-tenant-workspace` skill indexes every reference.\n- A test sets no `timeout` option and never waits on the wall clock: the test lint refuses the run even when every case passes.\n- Porting a system: `reference` its repository first, then read its schema, routes, jobs and permissions with `read_file` (a script over `tool('read_file', …)` reads many at once). Inventory every capability, map each to a Bolt mechanism, build from that, never from memory of the product. Import and export carry over as a file sync per model that had them.\n\n## Messaging and envoys\n\nEnvoys are runtime `sys_envoy` rows, deployed through `sys_integration.envoy`. Do not look for an envoy source declaration or assume a contract filename. `describe_workspace { names: ['system'] }` returns available setup capabilities and account IDs. Create the envoy and its workspace account through native records, then open `integration.manage` with `page { path, configure }` for the person to pair it. Never collect credentials in chat.\n\nA daily message is a cron automation using `ctx.send` through the intended active, paired account. Resolve it from runtime records, narrow its definition with `instance_id`, and fail clearly if missing or ambiguous. Recipient replies continue through the deployed envoy in the same conversation. Confirm queue admission separately from provider delivery; a timeout may be uncertain and a retried automation may repeat a committed send.\n\n## Asking to apply a change\n\nWrite the approval summary in one or two short sentences: what changes for the person and any material data risk. Keep evaluation scores, schema inventories, commit messages and test logs in the work evidence. The native card already presents the version, measured data changes and decision buttons; do not paste the same proposal again in an assistant reply. Let the person use the card.\n",{"name":5,"description":7},"main","1118b55dea1623fcfea2047b282780a96da33bdf","skills\u002Fbolt-primer",0,"https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss","https:\u002F\u002Fgithub.com\u002Fnorbital-ai","norbital.ai","2026-11-15 01:10:01",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add norbital-ai\u002Foss --skill bolt-primer",{"tool":38,"command":39},"bunx","bunx skills add norbital-ai\u002Foss --skill bolt-primer",{"tool":41,"command":42},"pnpm","pnpm dlx skills add norbital-ai\u002Foss --skill bolt-primer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fbolt-primer\u002FSKILL.md",true,[],[47,55,62,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79SKN0H7KKQDQSAED9BH9K1","norbital-platform","How Norbital behaves at runtime - approvals, policies, history, audit, agent limits. Read before answering.","MIT","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fnorbital-platform\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79SKH68V53GJDWWA9F7NEE4","data-modelling","Route data modelling decisions - models, fields, layers, state, invariants, search, migrations.","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fdata-modelling\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79SKE35TCXPRB4MW6EB71XQ","bolt-requirements","Turn a vague business requirement into a concrete Norbital build plan a stakeholder can confirm.","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fbolt-requirements\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79SK7NW3CFKV3KSPF1NDV3Z","bolt-feasibility","Decide per sub-function whether a business function is native, mediated, or not appropriate on Norbital.","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fbolt-feasibility\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79SK4RSPZ0WF8F7VNBTW2A8","authoring-test-suites","Choose, write and review Bolt tests that fail for a named production defect.","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fauthoring-test-suites\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79SK1PA4VAKB2V516561H4Q","authoring-tenant-workspace","Index of Bolt authoring references - models, access, apps, automations, integrations, UI, build.","https:\u002F\u002Fgithub.com\u002Fnorbital-ai\u002Foss\u002Fblob\u002Fmain\u002Fskills\u002Fauthoring-tenant-workspace\u002FSKILL.md",[],[]]