[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DVG0V28534JV1GH1P3PCQQ":3,"skill-same:01M7DVG0V28534JV1GH1P3PCQQ":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":28,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7DVG0V28534JV1GH1P3PCQQ","design_page",null,"gents-ai\u002Fgents","gents-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F309907012?v=4","01M6PDDJQ5NPFJZNQ0M1QA5SNP","Gents","01M6PDDJVT921WYQS6G1PATX85",24,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fdesign_page\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: design-page\ndescription: Load before writing or changing an app page: SDK blocks, theme tokens, layout, preview check.\n---\n\n# Design a page\n\nA page is a document on this node: create it with `config` (`help page`) and the app shows it at once and reloads it on each change. No file or pack is needed. Its module is one plain ES module with no build step, in a sandboxed frame. It imports only `@gents\u002Fux-sdk`, `react` and `react\u002Fjsx-runtime`, writes elements with `jsx` and `jsxs`, and can't reach the app's DOM or styles. Block props: `config help page sdk`.\n\n## Use the blocks\n\nUse SDK blocks before any CSS. CSS is for layout only.\n\n- **Layout**: `Page`, `Grid` (`minWidth: 360` for charts)\n- **Data**: `Table` (sortable, scrolls itself), `Stat` (label, value, delta, tone), `Tabs`, `Select`\n- **Charts**: `LineChart` (dates placed by time), `BarChart`, `DonutChart`\n- **States**: `LoadingState`, `EmptyState`, `ErrorState` (pass `q.error`, `q.refresh`), `LastUpdated` (pass `q.updatedAt`, `q.loading`)\n\nSmaller parts (cards, buttons, badges, rows, dialogs) are listed there too.\n\nThe page runs only the datastore tools its `data` field grants, the same surfaces an agent uses. Read data with `useQuery(ctx, surface, tool, { args, pages: 'all' })`. Rows are at `data.results`. Compute totals from rows; don't store them twice.\n\n## Tokens\n\nTheme tokens only, so light and dark both work: `var(--text)`, `var(--text-muted)`, `var(--heading)`, `var(--card)`, `var(--border)`, `var(--primary)`, `var(--destructive)`, `var(--success)`, `var(--warning)`, `var(--chart-1)` to `var(--chart-8)`. No hex, rgb or hsl. Never `--background` or `--foreground`: they don't exist here, and the text disappears.\n\n## Layout\n\n- The first screen shows the three or four numbers that matter, then the detail people act on, worst or newest first.\n- Lists scroll in their own region. The page never runs off the bottom.\n- Names, not internal IDs. One color means one thing. Numbers align right.\n- Every section has loading, empty and error states and shows when it was last updated.\n- At most one primary action per view.\n\n## Check it\n\nRun `config` with argv `[\"page\",\"lint\",\"\u003Cid>\"]`, then `[\"ux\",\"preview\",\"page\u002F\u003Cid>\"]`. The preview renders light and dark with this node's data and reports problems. Fix every one and run it again. Check real data, no rows and a long list. If you can't render it, say so; don't describe how it looks.\n\nNext: `automate` if it must refresh on its own, otherwise `control-access`.\n","# Design a page\n\nA page is a document on this node: create it with `config` (`help page`) and the app shows it at once and reloads it on each change. No file or pack is needed. Its module is one plain ES module with no build step, in a sandboxed frame. It imports only `@gents\u002Fux-sdk`, `react` and `react\u002Fjsx-runtime`, writes elements with `jsx` and `jsxs`, and can't reach the app's DOM or styles. Block props: `config help page sdk`.\n\n## Use the blocks\n\nUse SDK blocks before any CSS. CSS is for layout only.\n\n- **Layout**: `Page`, `Grid` (`minWidth: 360` for charts)\n- **Data**: `Table` (sortable, scrolls itself), `Stat` (label, value, delta, tone), `Tabs`, `Select`\n- **Charts**: `LineChart` (dates placed by time), `BarChart`, `DonutChart`\n- **States**: `LoadingState`, `EmptyState`, `ErrorState` (pass `q.error`, `q.refresh`), `LastUpdated` (pass `q.updatedAt`, `q.loading`)\n\nSmaller parts (cards, buttons, badges, rows, dialogs) are listed there too.\n\nThe page runs only the datastore tools its `data` field grants, the same surfaces an agent uses. Read data with `useQuery(ctx, surface, tool, { args, pages: 'all' })`. Rows are at `data.results`. Compute totals from rows; don't store them twice.\n\n## Tokens\n\nTheme tokens only, so light and dark both work: `var(--text)`, `var(--text-muted)`, `var(--heading)`, `var(--card)`, `var(--border)`, `var(--primary)`, `var(--destructive)`, `var(--success)`, `var(--warning)`, `var(--chart-1)` to `var(--chart-8)`. No hex, rgb or hsl. Never `--background` or `--foreground`: they don't exist here, and the text disappears.\n\n## Layout\n\n- The first screen shows the three or four numbers that matter, then the detail people act on, worst or newest first.\n- Lists scroll in their own region. The page never runs off the bottom.\n- Names, not internal IDs. One color means one thing. Numbers align right.\n- Every section has loading, empty and error states and shows when it was last updated.\n- At most one primary action per view.\n\n## Check it\n\nRun `config` with argv `[\"page\",\"lint\",\"\u003Cid>\"]`, then `[\"ux\",\"preview\",\"page\u002F\u003Cid>\"]`. The preview renders light and dark with this node's data and reports problems. Fix every one and run it again. Check real data, no rows and a long list. If you can't render it, say so; don't describe how it looks.\n\nNext: `automate` if it must refresh on its own, otherwise `control-access`.\n",{},"main","e97b49597dea9307045c05031612a0e839d310d4","core-packs\u002Fpack_builder\u002Fskills\u002Fdesign_page",4,"https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents","https:\u002F\u002Fgents.xyz","https:\u002F\u002Fgithub.com\u002Fgents-ai","Multiplayer coding harness","2026-11-15 04:03:00",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add gents-ai\u002Fgents --skill design_page",{"tool":38,"command":39},"bunx","bunx skills add gents-ai\u002Fgents --skill design_page",{"tool":41,"command":42},"pnpm","pnpm dlx skills add gents-ai\u002Fgents --skill design_page","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fdesign_page\u002FSKILL.md",true,[],[47,53,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7DVGK026T5C33HDQSGP6FH2","write_plugin","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fwrite_plugin\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7DVGGG6HND5KZFTSVAG9ZHW","use-database","Load before designing an app's data. What DefraDB does for you, and how to shape collections.","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fuse_database\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7DVGCK7XV1X9DEKV9J0RW9M","plan-work","Load first when asked to build or automate an app for people. Sets the checks and build order.","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fplan_work\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7DVG8J4AD445M9W5HC6RAAZ","package-pack","Load when a working app should become a pack, or when installing or changing a pack. Export, check, install, versions.","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fpackage_pack\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7DVG4FVTG16WMGSSWB22JV5","diagnose-node","Load when a trigger, tool, request or session didn't work as expected. Gives the order of checks.","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fdiagnose_node\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7DVFWVT55GMG2KVF96ADQGZ","delegate-work","Load before a long build, or when parts of a job can run on their own. When and how to use helpers.","https:\u002F\u002Fgithub.com\u002Fgents-ai\u002Fgents\u002Fblob\u002Fmain\u002Fcore-packs\u002Fpack_builder\u002Fskills\u002Fdelegate_work\u002FSKILL.md",[],[]]