@graview/skills

中文文档
0.2.5发布于 2026/11/16Elastic-2.0TypeScriptES Module零依赖构建来源已验证近 30 天下载 9530

Skills that teach an assistant the authoring moves, each ending in a real graview check verdict.

原始使用文档

@graview/skills

Skills that teach an assistant how to build with Graview — and, more usefully, how to find out whether it worked.

npx graview skills install .    # into .claude/skills and .agents/skills
npx graview skills list

The command line is the graview package; this one ships the skills and the move, and graview skills dispatches here.

Why this framework is worth having skills for

Most skills end in a claim: "you have added a node kind." That is worth very little, because the assistant writing it is the same one that just decided it was done.

Graview can answer the question itself. graview check reads the declaration and reports an edge to a kind nobody wrote, an invariant scoped to a kind that does not exist, a repair naming a mutation nobody registered, a lens role bound to a missing field, a mutation with no title, a palette pair that fails WCAG AA, a role that may do nothing. So every skill here ends in a check and reports the real verdict — including when the verdict is bad.

A skill that cannot verify its own outcome says so. That is the rule, and the skills say which parts of their work the checker cannot see.

The skills

SkillThe move it teaches
graview-node-kindAdd a node kind: fields, edges, plural, roles, verbs, and what renders for free
graview-view-specsSay a kind's card, row and page as data, and the values worked out from others that they show
graview-listsKeep lists usable as an app grows: filters, order and groups, cards at a glance, several at once, a static page, a date that repeats
graview-tidyingSet records aside instead of deleting them, merge a duplicate, and let the app's own actor tidy by suggestion
graview-invariantWrite a rule that names the mutations that would repair it
graview-lensBuild a lens that binds roles rather than field names, so another domain can reuse it
graview-shipped-lensDeclare a lens the framework ships as a titled place, with the options it takes and what the checker and add-lens refuse
graview-agent-seatWire an agent seat that shares the interface's actions rather than shadowing them
graview-permissionsDeclare who may do what, once, and let the strip and the seat narrow themselves
graview-brandPut someone's name on an installation without forking a package
graview-localeSay money, days and times the way the app's people do: a currency, a locale and a time zone, once
graview-logoPut a client's logo and page icon on an app: one for each scheme, an inverted fallback only when asked, an emoji icon
graview-new-appStart a product on Graview in its own repository, with the CI that keeps it honest
graview-shipDeploy: persistence, op-log-native migrations, export, health, serving and a host that compiles once
graview-syncKeep an app in step with another system: a snapshot projected from it, a sync back, an MCP remote, a Google calendar
graview-pagesThe routed face: derived pages, one page in the app's words, and the embed
graview-pages-designA product design over every surface of the routed face: its own shell, its tabs lit from a kind's section, a trail that says where a person is, and Find and the way back in its own bar at its own height
graview-embedPut an app on somebody else's page, its theme scoped to one element, and somebody's HTML page inside the app as a framed view
graview-host-pageHost an app as the page itself: the address bar, a chat's widget, the host's menu and news, when a place has drawn, a view proposed and not kept, and pictures of places
graview-port-appPort an existing application onto Graview, deciding what is a node and what is a field
graview-studioOpen the declaration as a graph, change it with acts, check before applying, migrate, and write it back as the scaffold's files
graview-worker-viewWrite a worker view: one plain script with a manifest the host enforces, its limits, and a headless run
graview-view-linksLink from a worker view to a record, a place or a list: an <a>, or a whole card or row that opens on a click, a phone's tap and Enter, narrowed and to a section
graview-view-formsLet a worker view change records: a bound press, a record's text filled to edit, a field that saves as it is typed, and hearing what became of each
graview-view-drawingDraw in a worker view: what the host keeps, the app's tokens, the images a view may show — the logo, the app's own images, the pictures on records — and a record's video the host plays, with its full-screen viewer

The worked examples live in apps/ in the framework repository. The skills point at them rather than restating them — a skill that copies an example goes stale the moment the example changes.

版本与发布记录

@graview/skills 共发布 78 个版本,首次发布于 2026/10/02;过去 12 个月发布了 78 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.5latest2026/11/16今天
0.2.42026/11/16今天
0.2.32026/11/152 天前
0.2.22026/11/152 天前
0.2.12026/11/152 天前
0.2.02026/11/134 天前

关于 @graview/skills 的常见问题

@graview/skills 是什么?

Skills that teach an assistant the authoring moves, each ending in a real graview check verdict.

如何安装 @graview/skills?

在项目目录运行 npm install @graview/skills,或使用 pnpm add / yarn add / bun add。

@graview/skills 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@graview/skills 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@graview/skills 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.22.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@graview/skills 可以商用吗?

@graview/skills 使用 Elastic-2.0 许可。声明的许可为 Elastic-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@graview/skills 的下载量有多少?

根据 npm 官方下载统计,@graview/skills 在 2026/10/17 – 2026/11/15 这 30 天内被下载 9,530 次,日均约 318 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@graview/skills 还在维护吗?

最新版本 0.2.5 发布于 2026/11/16(今天);至今共发布 78 个版本,其中过去 12 个月发布了 78 个;首次发布于 2026/10/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。