dev-process-kit

中文文档
0.3.3发布于 2026/11/03MITES Module零依赖构建来源已验证

Web Components for single-file HTML pages that a human reviews in the browser, with a structured draft/feedback loop back to an agent.

原始使用文档
文档目录13 节
  1. What you get
  2. A design system for one page
  3. Views: the whole page
  4. Boards: embed one, or make it the page
  5. Components
  6. The review loop
  7. The shape
  8. Load it
  9. Usage
  10. Claude Artifacts
  11. Install the skill
  12. Why dev-process-kit?
  13. License

dev-process-kit

npm npm beta jsDelivr CI Landing site License: MIT
Web Components Agent skill Claude Code plugin

A one-page design system for the documents an agent writes and a human reviews.

An agent generates one HTML file; a human opens it, reads it, and leaves the review as structured change requests; the agent applies them and rewrites the same file. dev-process-kit ships the shell, the review loop, and the parts the page is made of — tokens, CSS atoms, components, views and boards — as Web Components, with no build step.

What you get

A design system for one page

  • Tokens and CSS atoms for the things a page is made of: layout (stack, cluster, grid, toolbar), controls (buttons, fields, menus, segmented controls, selects, comboboxes), surfaces (cards, callouts, tables, data tables), and data display (timeline, status, chart, meter).
  • Components that compose them: review rail, inline editing, tables and matrices, checklists, tabs, dialogs, tag filters, commentable sections, mocks.
  • One consistent look, light and dark, from the same tokens. Your own page CSS still wins.
  • No build. One <script type="module"> and the elements are there.

Views: the whole page

A view owns the whole page and cannot be embedded. Pick the one whose subject is what you need to agree on with the reader.

ViewElementWhat it is
User Story Mappingdpk-view-usmScope, steps, stories and releases on one map; milestones, dependencies, labels and a burndown
UX Prototypedpk-view-prototypeScreen flow and what each step looks like: activities, stories, steps, screens and previews
Slidesdpk-view-slidesA deck paged through one slide at a time
Task Context Boarddpk-view-task-boardDesign docs and the tasks under them: Markdown design docs, a Kanban of todos, proposals, outputs and questions
Delegation Pokerdpk-view-delegation-pokerManagement 3.0 delegation poker: seven levels per decision area, settled on one agreed level per row
Plaindpk-view-plainA titled page with no domain of its own: your markup and comments, for anything no other view fits

Boards: embed one, or make it the page

A board is a self-contained visual surface. It can be embedded inside a view, and it can be the content of a page. That is one element used two ways, not two kinds of element.

BoardElementWhat it is
ER diagramdpk-board-er-diagramWhat changed between two schema snapshots
State diagramdpk-board-state-diagramWhich states exist, and what moves between them
Sequence diagramdpk-board-sequence-diagramIn what order participants talk
Dependency graphdpk-board-dependency-graphWhat depends on what, and what is circular
Architecture mapdpk-board-architecture-mapWhich services exist, in which boundary
Mind mapdpk-board-mind-mapA central topic and its subtopics, fanned out left and right, with folding
Event Stormingdpk-board-event-stormingSticky notes on swimlanes in timeline order, with causality links
Example Mappingdpk-board-example-mappingOne story per column, rules beneath it, examples beneath each rule, questions pinned to any of them
Whiteboarddpk-board-whiteboardSticky notes, text, shapes and titled frames on a pannable, zoomable canvas, joined by labeled connectors
Kanbandpk-board-kanbanColumns of cards with WIP limits; reviewers move and add cards as draft actions

Components

Components are the pieces you combine inside a view, a board or your own markup. They never fill a page by themselves: the review rail (dpk-comment-panel), inline editing (dpk-inline-edit), formal specs (dpk-formal-spec), tables and matrices (dpk-table, dpk-matrix), selects and comboboxes (dpk-select, dpk-combobox), checklists, tabs, dialogs, tag filters, commentable sections and the comment popover/thread, mocks and the CSS atoms. Each has a page under docs/components/ and docs/boards/.

The review loop

The page is not a picture: the reader operates it, and the operations are the review.

  • Draft actions. Moving a card, renaming a step, adding a todo or changing a relation is recorded as a structured action. The page never mutates its own base data; the agent applies the actions and writes the next version of the HTML.
  • Comments. The reader comments on the page as a whole (app:app), on a view's element, or on a board's node, field or edge. A comment on something that is gone stays in the draft as stale instead of disappearing.
  • One draft per document. A page with several boards — scope, domain, screens — has one header, one review, one draft and one brief for all of them.
  • Ask, don't just show. Any page can carry questions (data-dpk-grill) for the reader to answer; they are a core feature of the shell, not a view of their own.
  • Hand-off. Copy changes & comments puts readable markdown plus the canonical draft JSON on the clipboard. In a Claude Artifact it becomes Send to Claude, one click back to the session that published the page.

The shape

<dpk-app storage-key="checkout-review">
  <script type="application/json">
    { "title": "Checkout review" }
  </script>

  <dpk-page name="scope" label="Scope">
    <dpk-view-usm>
      <script type="application/json">
        { ...base data... }
      </script>
    </dpk-view-usm>
  </dpk-page>

  <dpk-page name="domain" label="Domain">
    <dpk-board-event-storming>
      <script type="application/json">
        { ...base data... }
      </script>
    </dpk-board-event-storming>
  </dpk-page>

  <dpk-page name="notes" label="Notes">
    <dpk-view-plain>
      <script type="application/json">
        { "sections": [{ "id": "decision", "title": "Decision" }] }
      </script>
      <section slot="main" data-dpk-target="section:decision">...</section>
    </dpk-view-plain>
  </dpk-page>
</dpk-app>
  • <dpk-app> — one per HTML file. The header, the review, one draft, one storage record, the hash and undo/redo.
  • <dpk-page name="…"> — one switchable subject. It holds exactly one view or board.
  • A view or a board — the page's content. A board inside a view is embedded; a board directly inside a page is the page.
  • Components — inside the content or your own markup.

Tags are the public contract; Lit is an implementation detail. Targets are type:id@page (story:checkout.pay@scope), the hash is #page=scope&scope.activity=signup, and the document-wide target is app:app. There are no compatibility aliases with the older template-and-board tags.

Load it

Load one entry from jsDelivr, with the version pinned. A page has to keep working when a new version is published, so never generate HTML against a floating URL such as @latest.

EntryUse it when
views/usm.js / views/prototype.js / views/plain.js / views/slides.js / views/task-board.js / views/delegation-poker.jsthe page is that view
boards.jsthe page uses a board, embedded or as its content
components.jsthe page uses components without a view
index.jsone URL for everything
<script type="module" src="https://cdn.jsdelivr.net/npm/dev-process-kit@<version>/dist/views/usm.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/dev-process-kit@<version>/dist/boards.js"></script>

A view entry registers the view, <dpk-app>, <dpk-page>, the review rail and inline editing. Add boards.js when the page uses a board, and components.js when it uses components the view does not carry. The full contract, slots, page height and the shape of each view's base data are in docs/.

Usage

dev-process-kit is built to be used by an agent: the instructions for LLMs are the dev-process-kit skill. It is published to npm as dev-process-kit, a page loads it from jsDelivr with the version pinned, and the documentation of each version is docs/ at its v<version> tag.

The landing site of main is live at https://d-kimuson.github.io/dev-process-kit/.

The shortest way to try it is to hand the skill to an agent and say what you want:

Create a USM for this product.
Follow https://raw.githubusercontent.com/d-kimuson/dev-process-kit/main/skills/dev-process-kit/SKILL.md.

Claude Artifacts

Claude Code can publish the page as a Claude Artifact instead of a local file, and dev-process-kit supports that as a first-class target:

  • One-click hand-off. With the comments and db capabilities declared, the review rail offers Send to Claude in place of copying. The review arrives in the Claude Code session that published the page, which applies it and republishes to the same URL.
  • Fits the viewer. The page follows the reader's claude.ai light / dark theme and sizes itself to the viewer's frame.
  • Nothing to configure. The page detects the Artifact at runtime; outside one, or when a send cannot land, the copy hand-off stays as it is.

docs/claude-artifact.md tells the agent when to publish such a page and how to write it; the skill sends the agent there whenever it can publish an Artifact.

Install the skill

The dev-process-kit agent skill tells the agent when to reach for a page and how to keep it focused.

# Any agent supported by the skills CLI
npx skills add d-kimuson/dev-process-kit
# Claude Code
/plugin marketplace add d-kimuson/dev-process-kit
/plugin install dev-process-kit@dev-process-kit

Why dev-process-kit?

Now that AI writes the code, the bottleneck has moved to the human side: the cognitive load of reading, checking and agreeing on what was built. dev-process-kit supports that human context engineering.

It does so with one consistent loop:

flowchart LR
  ask["① Human asks the agent"] --> present["② Agent presents the context and what<br/>it understood, in a form a human<br/>reads at a glance"]
  present --> review["③ Human reviews it and feeds<br/>back the gaps and the details"]
  review -->|"draft actions + brief"| present

② is why the kit ships the views, boards and components that have proven themselves for building shared understanding between human engineers — user story mapping, ER diagrams and the rest — and the design system that makes a page built from them feel like one product.

③ goes further than showing a picture: where a view allows it, the page can be operated directly in the browser, and those operations are collected as a log and handed to the agent, which rewrites the page itself.

License

MIT

版本与发布记录

dev-process-kit 共发布 31 个版本,首次发布于 2026/09/24;过去 12 个月发布了 31 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.3.3latest2026/11/03今天
0.3.22026/11/021 天前
0.3.12026/11/012 天前
0.3.02026/10/304 天前
0.3.0-beta.3beta2026/10/295 天前
0.3.0-beta.22026/10/268 天前

关于 dev-process-kit 的常见问题

dev-process-kit 是什么?

人类在浏览器中审查的单文件HTML页面的Web组件,并将结构化的草稿/反馈循环返回给代理。

如何安装 dev-process-kit?

在项目目录运行 npm install dev-process-kit,或使用 pnpm add / yarn add / bun add。

dev-process-kit 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dev-process-kit 是否存在。

dev-process-kit 支持 ESM 还是 CommonJS?

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

dev-process-kit 需要什么版本的 Node.js?

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

dev-process-kit 可以商用吗?

dev-process-kit 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

dev-process-kit 还在维护吗?

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