@gavin-hu/my-pi-agent 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -45
- package/README.zh-CN.md +54 -42
- package/docs/extensions/README.md +34 -0
- package/docs/extensions/board.md +344 -0
- package/{extensions/bytefly/README.md → docs/extensions/bytefly.md} +465 -416
- package/{extensions/check/README.md → docs/extensions/check.md} +83 -68
- package/{extensions/context/README.md → docs/extensions/context.md} +40 -23
- package/docs/extensions/file-browse.md +554 -0
- package/{extensions/file-open/README.md → docs/extensions/file-open.md} +31 -23
- package/{extensions/file-read/README.md → docs/extensions/file-read.md} +47 -55
- package/{extensions/goal/README.md → docs/extensions/goal.md} +115 -131
- package/{extensions/job/README.md → docs/extensions/job.md} +66 -53
- package/{extensions/memory/README.md → docs/extensions/memory.md} +74 -63
- package/docs/extensions/plan.md +976 -0
- package/{extensions/question/README.md → docs/extensions/question.md} +54 -28
- package/{extensions/rewind/README.md → docs/extensions/rewind.md} +115 -122
- package/docs/extensions/session-bus.md +285 -0
- package/{extensions/subagent/README.md → docs/extensions/subagent.md} +166 -119
- package/docs/extensions/team.md +226 -0
- package/{extensions/todo/README.md → docs/extensions/todo.md} +85 -88
- package/{extensions/watch/README.md → docs/extensions/watch.md} +60 -38
- package/{extensions/web-access/README.md → docs/extensions/web-access.md} +93 -50
- package/{extensions/wechat/README.md → docs/extensions/wechat.md} +275 -192
- package/{extensions/worktree/README.md → docs/extensions/worktree.md} +115 -72
- package/extensions/board/commands.ts +87 -0
- package/extensions/board/config.ts +36 -0
- package/extensions/board/format.ts +72 -0
- package/extensions/board/index.ts +40 -0
- package/extensions/board/input.ts +54 -0
- package/extensions/board/join.ts +42 -0
- package/extensions/board/page.ts +312 -0
- package/extensions/board/result.ts +99 -0
- package/extensions/board/rows.ts +48 -0
- package/extensions/board/schema.ts +75 -0
- package/extensions/board/seat.ts +29 -0
- package/extensions/board/snapshot.ts +41 -0
- package/extensions/board/tools.ts +279 -0
- package/extensions/board/transport/router.ts +172 -0
- package/extensions/board/transport/server.ts +149 -0
- package/extensions/board/types.ts +54 -0
- package/extensions/board/view/actions.ts +306 -0
- package/extensions/board/view/client.ts +41 -0
- package/extensions/board/view/keys.ts +121 -0
- package/extensions/board/view/live.ts +397 -0
- package/extensions/board/view/page.ts +158 -0
- package/extensions/board/view/render.ts +496 -0
- package/extensions/board/view/styles.ts +211 -0
- package/extensions/board/view/team.ts +305 -0
- package/extensions/board/writes.ts +99 -0
- package/extensions/bytefly/notify/types.ts +1 -1
- package/extensions/bytefly/panel/commands.ts +40 -7
- package/extensions/bytefly/panel/settings-runtime.ts +0 -6
- package/extensions/bytefly/panel/settings.ts +11 -21
- package/extensions/bytefly/panel/tui/settings-view.ts +1 -1
- package/extensions/bytefly/picker/discovery.ts +0 -2
- package/extensions/bytefly/picker/types.ts +0 -2
- package/extensions/bytefly/update/check.ts +39 -0
- package/extensions/bytefly/update/format.ts +15 -0
- package/extensions/bytefly/update/register.ts +73 -34
- package/extensions/bytefly/update/state.ts +6 -3
- package/extensions/context/tui.ts +1 -1
- package/extensions/file-browse/{config.ts → config/config.ts} +13 -4
- package/extensions/file-browse/{files.ts → files/files.ts} +1 -14
- package/extensions/file-browse/{paths.ts → files/paths.ts} +1 -1
- package/extensions/file-browse/{git.ts → git/git.ts} +10 -3
- package/extensions/file-browse/index.ts +4 -4
- package/extensions/file-browse/{live.ts → live/live.ts} +54 -82
- package/extensions/file-browse/live/rev.ts +42 -0
- package/extensions/file-browse/{router.ts → transport/router.ts} +44 -17
- package/extensions/file-browse/transport/server.ts +110 -0
- package/extensions/file-browse/view/chrome.ts +83 -0
- package/extensions/file-browse/{client.ts → view/client.ts} +63 -1
- package/extensions/file-browse/view/diff-html.ts +94 -0
- package/extensions/file-browse/{html.ts → view/html.ts} +32 -158
- package/extensions/file-browse/{icons.ts → view/icons.ts} +1 -1
- package/extensions/file-browse/{live-client.ts → view/live-client.ts} +47 -1
- package/extensions/file-browse/{markdown.ts → view/markdown.ts} +7 -7
- package/extensions/file-browse/{raw-html.ts → view/raw-html.ts} +1 -1
- package/extensions/file-browse/{styles.ts → view/styles.ts} +31 -5
- package/extensions/file-browse/{tree.ts → view/tree.ts} +1 -1
- package/extensions/file-browse/{urls.ts → view/urls.ts} +1 -1
- package/extensions/file-read/schema.ts +2 -1
- package/extensions/goal/plan-route.ts +8 -2
- package/extensions/job/index.ts +15 -7
- package/extensions/memory/store.ts +12 -5
- package/extensions/plan/blocks.ts +23 -2
- package/extensions/plan/commands.ts +77 -21
- package/extensions/plan/feedback.ts +409 -63
- package/extensions/plan/index.ts +7 -5
- package/extensions/plan/plan-index.ts +44 -10
- package/extensions/plan/plan-text.ts +51 -24
- package/extensions/plan/plans.ts +162 -57
- package/extensions/plan/policy.ts +20 -12
- package/extensions/plan/review-prompt.ts +93 -0
- package/extensions/plan/review.ts +51 -95
- package/extensions/plan/runtime.ts +22 -10
- package/extensions/plan/sections.ts +112 -0
- package/extensions/plan/steps.ts +63 -95
- package/extensions/plan/tools/enter.ts +8 -3
- package/extensions/plan/tools/exit.ts +13 -19
- package/extensions/plan/tools/write.ts +8 -3
- package/extensions/plan/tools.ts +1 -1
- package/extensions/plan/tui.ts +29 -15
- package/extensions/plan/types.ts +29 -3
- package/extensions/plan/web-chrome.ts +2 -1
- package/extensions/plan/web-client.ts +122 -178
- package/extensions/plan/web-collab.ts +207 -0
- package/extensions/plan/web-comments.ts +269 -0
- package/extensions/plan/web-page.ts +96 -17
- package/extensions/plan/web-router.ts +109 -47
- package/extensions/plan/web-share-session.ts +191 -0
- package/extensions/plan/web-share.ts +169 -0
- package/extensions/plan/web-streams.ts +124 -0
- package/extensions/plan/web-tokens.ts +63 -0
- package/extensions/plan/web.ts +245 -151
- package/extensions/question/dialogs.ts +91 -1
- package/extensions/question/tools.ts +2 -1
- package/extensions/rewind/{commands.ts → commands/commands.ts} +5 -5
- package/extensions/rewind/{review.ts → commands/review.ts} +13 -13
- package/extensions/rewind/{rewind.ts → commands/rewind.ts} +6 -6
- package/extensions/rewind/{config.ts → config/config.ts} +1 -1
- package/extensions/rewind/index.ts +3 -3
- package/extensions/rewind/{policy.ts → state/policy.ts} +4 -4
- package/extensions/rewind/{runtime.ts → state/runtime.ts} +11 -11
- package/extensions/rewind/{snapshot-run.ts → state/snapshot-run.ts} +1 -1
- package/extensions/rewind/{timeline.ts → state/timeline.ts} +2 -2
- package/extensions/rewind/{format.ts → text/format.ts} +3 -3
- package/extensions/rewind/{git.ts → transport/git.ts} +2 -2
- package/extensions/rewind/{restore.ts → transport/restore.ts} +2 -2
- package/extensions/rewind/{snapshot.ts → transport/snapshot.ts} +1 -1
- package/extensions/rewind/{store.ts → transport/store.ts} +1 -1
- package/extensions/rewind/{checklist.ts → view/checklist.ts} +6 -6
- package/extensions/rewind/{hunk-picker.ts → view/hunk-picker.ts} +8 -8
- package/extensions/rewind/{path-picker.ts → view/path-picker.ts} +7 -7
- package/extensions/rewind/{review-tui.ts → view/review-tui.ts} +11 -11
- package/extensions/rewind/{rewind-tui.ts → view/rewind-tui.ts} +17 -11
- package/extensions/rewind/{status.ts → view/status.ts} +4 -4
- package/extensions/session-bus/commands.ts +113 -0
- package/extensions/session-bus/format.ts +101 -0
- package/extensions/session-bus/index.ts +75 -0
- package/extensions/session-bus/join-request.ts +40 -0
- package/extensions/session-bus/mail-watch.ts +134 -0
- package/extensions/session-bus/notice.ts +86 -0
- package/extensions/session-bus/overlap.ts +36 -0
- package/extensions/session-bus/protocol.ts +104 -0
- package/extensions/session-bus/resolve.ts +67 -0
- package/extensions/session-bus/result.ts +208 -0
- package/extensions/session-bus/rows.ts +171 -0
- package/extensions/session-bus/runtime.ts +466 -0
- package/extensions/session-bus/store.ts +365 -0
- package/extensions/session-bus/tools.ts +192 -0
- package/extensions/session-bus/tui.ts +394 -0
- package/extensions/session-bus/types.ts +98 -0
- package/extensions/subagent/agents.ts +9 -8
- package/extensions/subagent/invocation.ts +4 -2
- package/extensions/team/commands.ts +112 -0
- package/extensions/team/dispatch.ts +133 -0
- package/extensions/team/format.ts +105 -0
- package/extensions/team/index.ts +33 -0
- package/extensions/team/schema.ts +29 -0
- package/extensions/team/tools.ts +246 -0
- package/extensions/team/types.ts +48 -0
- package/extensions/watch/index.ts +15 -9
- package/extensions/web-access/fetch/page.ts +4 -1
- package/extensions/web-access/fetch/structured.ts +447 -0
- package/extensions/web-access/fetch/tool.ts +2 -1
- package/extensions/web-access/search/tool.ts +2 -1
- package/extensions/wechat/bridge.ts +76 -92
- package/extensions/wechat/{commands.ts → commands/commands.ts} +26 -18
- package/extensions/wechat/{doctor.ts → commands/doctor.ts} +5 -5
- package/extensions/wechat/{history.ts → commands/history.ts} +1 -1
- package/extensions/wechat/{login.ts → commands/login.ts} +3 -3
- package/extensions/wechat/{slash.ts → commands/slash.ts} +38 -2
- package/extensions/wechat/dialog/channels.ts +136 -0
- package/extensions/wechat/{interaction.ts → dialog/interaction.ts} +66 -51
- package/extensions/wechat/{prompt.ts → dialog/prompt.ts} +40 -25
- package/extensions/wechat/{remote-ui.ts → dialog/remote-ui.ts} +1 -1
- package/extensions/wechat/index.ts +10 -10
- package/extensions/wechat/{admission.ts → peer/admission.ts} +2 -2
- package/extensions/wechat/{peer-session.ts → peer/peer-session.ts} +2 -2
- package/extensions/wechat/{peer-worker.ts → peer/peer-worker.ts} +119 -56
- package/extensions/wechat/{presence.ts → peer/presence.ts} +11 -11
- package/extensions/wechat/{reply-pipeline.ts → peer/reply-pipeline.ts} +13 -5
- package/extensions/wechat/{credentials.ts → state/credentials.ts} +2 -2
- package/extensions/wechat/{state.ts → state/state.ts} +14 -2
- package/extensions/wechat/{format.ts → text/format.ts} +3 -3
- package/extensions/wechat/{notices.ts → text/notices.ts} +15 -7
- package/extensions/wechat/tools.ts +29 -12
- package/extensions/wechat/{client.ts → transport/client.ts} +26 -2
- package/extensions/wechat/{deliver.ts → transport/deliver.ts} +104 -40
- package/extensions/wechat/{inbound.ts → transport/inbound.ts} +5 -5
- package/extensions/wechat/{media.ts → transport/media.ts} +11 -5
- package/extensions/wechat/transport/outbound.ts +142 -0
- package/extensions/wechat/{poll.ts → transport/poll.ts} +3 -3
- package/extensions/wechat/types.ts +10 -1
- package/extensions/wechat/{login-screen.ts → view/login-screen.ts} +4 -4
- package/extensions/wechat/{status-screen.ts → view/status-screen.ts} +31 -26
- package/extensions/worktree/git.ts +5 -0
- package/extensions/worktree/guard.ts +3 -5
- package/extensions/worktree/registry.ts +11 -5
- package/extensions/worktree/status.ts +1 -3
- package/lib/README.md +12 -6
- package/lib/board/card.ts +290 -0
- package/lib/board/links.ts +117 -0
- package/lib/board/page-pointer.ts +256 -0
- package/lib/board/round-text.ts +72 -0
- package/lib/board/round.ts +89 -0
- package/lib/board/rules.ts +304 -0
- package/lib/board/session.ts +105 -0
- package/lib/board/store.ts +310 -0
- package/lib/board/view.ts +150 -0
- package/lib/errors.ts +12 -4
- package/lib/format.ts +13 -0
- package/lib/http/guard.ts +112 -0
- package/lib/http/index.ts +16 -5
- package/lib/http/router.ts +40 -13
- package/lib/http/serve.ts +234 -0
- package/lib/http/server.ts +29 -13
- package/lib/http/sink.ts +110 -0
- package/lib/http/token.ts +38 -0
- package/lib/interaction.ts +10 -0
- package/lib/notice.ts +29 -2
- package/lib/plan-entry.ts +7 -2
- package/lib/policy.ts +12 -2
- package/lib/qr.ts +64 -0
- package/lib/repo-key.ts +74 -0
- package/lib/report.ts +52 -33
- package/lib/requirements.ts +7 -9
- package/lib/session-label.ts +64 -0
- package/lib/session-roster.ts +130 -0
- package/lib/session-tool.ts +184 -0
- package/lib/tool-names.ts +25 -2
- package/lib/tui/README.md +16 -2
- package/lib/tui/dock-screen.ts +85 -17
- package/lib/tui/glyphs.ts +2 -0
- package/lib/tui/line-pane.ts +15 -4
- package/lib/tui/tool.ts +23 -4
- package/lib/web/README.md +5 -2
- package/lib/web/components.ts +6 -1
- package/lib/web/runtime.ts +7 -1
- package/lib/web/tokens.ts +25 -2
- package/package.json +27 -14
- package/skills/init/SKILL.md +80 -45
- package/skills/init/references/agents-md-quality.md +26 -2
- package/skills/init/references/interview-questions.md +36 -14
- package/skills/next/SKILL.md +77 -51
- package/skills/project-docs/SKILL.md +133 -0
- package/skills/project-docs/references/audit.md +131 -0
- package/skills/project-docs/references/changelog.md +105 -0
- package/skills/project-docs/references/discovery.md +127 -0
- package/skills/project-docs/references/readme.md +80 -0
- package/skills/project-docs/references/release.md +84 -0
- package/skills/project-docs/references/roadmap.md +93 -0
- package/skills/project-docs/scripts/state.ts +316 -0
- package/skills/refactor/SKILL.md +100 -125
- package/skills/refactor/references/handoff.md +35 -0
- package/skills/refactor/references/signals.md +54 -0
- package/skills/refactor/scripts/inventory.ts +587 -0
- package/extensions/file-browse/README.md +0 -467
- package/extensions/file-browse/server.ts +0 -134
- package/extensions/plan/README.md +0 -709
- package/extensions/plan/config.ts +0 -27
- package/extensions/wechat/outbound.ts +0 -100
- package/extensions/wechat/qrcode.ts +0 -46
- package/skills/changelog/SKILL.md +0 -148
- /package/extensions/file-browse/{diff.ts → text/diff.ts} +0 -0
- /package/extensions/file-browse/{fuzzy.ts → text/fuzzy.ts} +0 -0
- /package/extensions/file-browse/{palette.ts → view/palette.ts} +0 -0
- /package/extensions/rewind/{patch.ts → text/patch.ts} +0 -0
- /package/extensions/rewind/{paths.ts → text/paths.ts} +0 -0
- /package/extensions/rewind/{queue.ts → transport/queue.ts} +0 -0
- /package/extensions/rewind/{temp-index.ts → transport/temp-index.ts} +0 -0
- /package/extensions/wechat/{lock.ts → state/lock.ts} +0 -0
- /package/extensions/wechat/{channel.ts → text/channel.ts} +0 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Discover the project's documents
|
|
2
|
+
|
|
3
|
+
A document is a convention before it is a file: which documents exist, what each one
|
|
4
|
+
promises, how a version is spelled, and when an entry is written are all things a
|
|
5
|
+
project chose. Read what it chose. Do not import a template where the project says
|
|
6
|
+
something else, and do not average two sources — when they disagree, ask.
|
|
7
|
+
|
|
8
|
+
Find these five things, in this order. The first one locates the rest.
|
|
9
|
+
|
|
10
|
+
## 1. The document set
|
|
11
|
+
|
|
12
|
+
The documents this skill looks for, in the order it looks, and where a project keeps
|
|
13
|
+
them. A project that has only some of them is normal: the skill maintains what exists,
|
|
14
|
+
and whether to adopt a missing one is the maintainer's decision rather than an edit.
|
|
15
|
+
|
|
16
|
+
- **The front door** — `README.md` first, then `README.rst`, `README`, or `docs/README.md`.
|
|
17
|
+
A mirror (`README.zh-CN.md`, `README.ja.md`) is part of the front door, not a
|
|
18
|
+
separate document: it carries the same sections, table rows, and links.
|
|
19
|
+
- **The plan of record** — `ROADMAP.md`, then `ROADMAP`, `docs/roadmap.md`, a
|
|
20
|
+
`ROADMAP` section in the front door, or an issue tracker label the project's docs
|
|
21
|
+
name. A project with none is maintained from the changelog and the tree alone; say so.
|
|
22
|
+
- **The record of what shipped** — `CHANGELOG.md`, then `CHANGELOG`, `CHANGES.md`,
|
|
23
|
+
`HISTORY.md`, `NEWS.md`, `docs/CHANGELOG.md`, `docs/changelog.md`. The bundled script
|
|
24
|
+
takes the first name in that order. Several changelogs belonging to several packages
|
|
25
|
+
are a scope question, not a choice: ask which package is in scope, and never treat one
|
|
26
|
+
package's file as a copy of another's.
|
|
27
|
+
- **The contributor path** — `CONTRIBUTING.md`, then `.github/CONTRIBUTING.md`,
|
|
28
|
+
`docs/contributing.md`, and the instruction file the project's agent reads
|
|
29
|
+
(`AGENTS.md`, `CLAUDE.md`), which usually states the rules the other three obey.
|
|
30
|
+
|
|
31
|
+
Deep guides (`docs/`, `documentation/`) are where detail belongs. Their existence is
|
|
32
|
+
the reason the front door can stay short: it summarizes and links, and the skill must
|
|
33
|
+
not move a guide's content up into it, or copy the front door's catalog down.
|
|
34
|
+
|
|
35
|
+
These rules are written in Markdown's vocabulary because most projects write their docs
|
|
36
|
+
in it. Read the format the project actually uses — reStructuredText, AsciiDoc, plain
|
|
37
|
+
text — and fix it in that format: a heading anchor, a link reference, and a fenced
|
|
38
|
+
example are spelled differently in each, and converting a document is not this skill's
|
|
39
|
+
job.
|
|
40
|
+
|
|
41
|
+
## 2. The version's single source
|
|
42
|
+
|
|
43
|
+
One file decides the version: `package.json`, `pyproject.toml`, `Cargo.toml`, a
|
|
44
|
+
`VERSION` file, or a `version` module. Everything else repeats it — the newest dated
|
|
45
|
+
changelog heading, a tag, a badge, a lockfile. Read the source and the repeats
|
|
46
|
+
together; a version that disagrees in one place is the most common stale claim a
|
|
47
|
+
release leaves behind.
|
|
48
|
+
|
|
49
|
+
## 3. The changelog's local conventions
|
|
50
|
+
|
|
51
|
+
- **Who writes the file** — a preamble that says "generated", a `.changeset/` or
|
|
52
|
+
`.changes/` directory, a release workflow step that writes the changelog, or a
|
|
53
|
+
generator named in the manifest or its config: `semantic-release`, `release-please`,
|
|
54
|
+
`changesets`, `git-cliff`, `goreleaser`, `cargo-release`, `standard-version`. Where a
|
|
55
|
+
tool owns the file, the entry is written upstream — in the commit message's
|
|
56
|
+
convention, in a changeset fragment, or in the generator's config — and never by hand.
|
|
57
|
+
- **The preamble** — whether it names Keep a Changelog, Semantic Versioning, a
|
|
58
|
+
different convention, and whether unreleased entries are kept in the file at all.
|
|
59
|
+
- **The category names and their order** — Keep a Changelog's set is `Added`,
|
|
60
|
+
`Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`, in that order, and a
|
|
61
|
+
project may use a subset, add its own, or reorder them. Copy the spelling exactly:
|
|
62
|
+
`Fix` is not `Fixed`.
|
|
63
|
+
- **The bullet's shape** — read the newest *released* section, not the first one. Note
|
|
64
|
+
the scope prefix (`- \`core\`: …`, `- [core] …`, or none), whether a bullet may run
|
|
65
|
+
several sentences, the wrap column, and whether backticks or bold carry the scope.
|
|
66
|
+
- **Whether the entry ships with the change** — `CONTRIBUTING.md`, the instruction
|
|
67
|
+
file, and a pull-request template say it in one line. Silence is not permission to
|
|
68
|
+
defer: ask, because a changelog maintained per release is a different procedure.
|
|
69
|
+
- **The release procedure** — a release document outranks everything here:
|
|
70
|
+
`docs/release.md`, `RELEASING.md`, `CONTRIBUTING.md`'s release section, a
|
|
71
|
+
`publish.yml` job, or a `release` script in the manifest. Read it for the link-ref
|
|
72
|
+
update, the tag format, and the push and publish order.
|
|
73
|
+
|
|
74
|
+
## 4. The roadmap's rules
|
|
75
|
+
|
|
76
|
+
- **The item form** — how an item is written and whether it carries an id: `**P1 — …**`,
|
|
77
|
+
`- [ ] …`, `R1: …`, a bare heading. Ids are what a citation elsewhere points at.
|
|
78
|
+
- **The buckets and their caps** — horizon names (`Now` / `Next` / `Later`, or
|
|
79
|
+
quarters), and any limit the file states on how many items a bucket holds.
|
|
80
|
+
- **The ledger, if there is one** — the table tying a promise in the front door to the
|
|
81
|
+
items that keep it; a row is open while any of its items are.
|
|
82
|
+
- **What happens to a shipped item** — the stated rule, usually one line: delete it and
|
|
83
|
+
record the reason, or renumber the rest. Never tick it and leave it, unless the file
|
|
84
|
+
says to.
|
|
85
|
+
- **The non-goals** — the "deliberately left thin" or "won't do" list, with the reason
|
|
86
|
+
each carries. Reversing one is a decision, not an edit.
|
|
87
|
+
|
|
88
|
+
## 5. The check and the guards
|
|
89
|
+
|
|
90
|
+
The project's check command (`bun run check`, `npm test`, `make check`, a CI workflow)
|
|
91
|
+
is the finish line for any edit. Find the guards on these documents by name, because a
|
|
92
|
+
guard states the rule better than a summary of it: `release.test.ts`,
|
|
93
|
+
`changelog.test.ts`, `docs-parity.test.ts`, `roadmap.test.ts`, a link checker, or a CI
|
|
94
|
+
step that compares a count in the docs with the tree.
|
|
95
|
+
|
|
96
|
+
Quote a guard's name and what it holds; do not restate its rule. Run the guard
|
|
97
|
+
directly while iterating — a failing guard names the rule you just broke.
|
|
98
|
+
|
|
99
|
+
## State the profile
|
|
100
|
+
|
|
101
|
+
Before editing, write one short paragraph: the documents found, the version's source,
|
|
102
|
+
the changelog's categories and scope spelling, the roadmap's item form and caps, the
|
|
103
|
+
check command, and the guards. It is how the user catches a misread in one line
|
|
104
|
+
instead of in a diff. Do not invent a rule the project never stated; ask instead.
|
|
105
|
+
|
|
106
|
+
## A worked example
|
|
107
|
+
|
|
108
|
+
When you are in this repository, the answers are already written down:
|
|
109
|
+
|
|
110
|
+
- `README.md` and `README.zh-CN.md` — the front door and its mirror; `test/docs-parity.test.ts`
|
|
111
|
+
holds the two to the same headings, table rows, and links.
|
|
112
|
+
- `CHANGELOG.md` — Keep a Changelog preamble, categories in the standard order,
|
|
113
|
+
`[Unreleased]` kept in the file, scope in backticks followed by a colon.
|
|
114
|
+
- `ROADMAP.md` — items as `**P1 — …**`, `Now` and `Next` capped at ten, a promise
|
|
115
|
+
ledger, and the rule that a shipped item is deleted with its reason;
|
|
116
|
+
`test/roadmap.test.ts` pins the ids, links, and caps, and cannot see that an item
|
|
117
|
+
has shipped.
|
|
118
|
+
- `CONTRIBUTING.md` and `AGENTS.md` — the entry lands in the same commit as the
|
|
119
|
+
change, and a behavior change also updates the catalog table in both entry READMEs
|
|
120
|
+
and the relevant guide.
|
|
121
|
+
- `docs/development.md` — the normative release procedure.
|
|
122
|
+
- `test/release.test.ts` — the guard on subsection names, order, emptiness, and the
|
|
123
|
+
version pin against the newest tag.
|
|
124
|
+
- `bun run check` — the finish line; `bun test test/roadmap.test.ts` for one guard alone.
|
|
125
|
+
|
|
126
|
+
The paths are named, not linked: a skill is installed into projects that do not
|
|
127
|
+
contain them, so a link would point nowhere from the place it is read.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Readme
|
|
2
|
+
|
|
3
|
+
The front door is the only document a reader is guaranteed to see, so it carries two
|
|
4
|
+
burdens at once: it must be *enough* on its own, and it must not become the manual. This
|
|
5
|
+
mode keeps it true to the tree without letting it grow.
|
|
6
|
+
|
|
7
|
+
Read [`discovery.md`](./discovery.md) first for the file, its mirror, and the guides it
|
|
8
|
+
links to.
|
|
9
|
+
|
|
10
|
+
## What belongs on the front door
|
|
11
|
+
|
|
12
|
+
- What the thing is, in one or two sentences a stranger can act on.
|
|
13
|
+
- Install, and the first command that proves the install worked.
|
|
14
|
+
- The catalog: one row per capability, grouped by what the reader is trying to do.
|
|
15
|
+
- Configuration that a reader must choose before the first run, and where the rest
|
|
16
|
+
lives.
|
|
17
|
+
- Links onward to the guides, and the license.
|
|
18
|
+
|
|
19
|
+
What does not belong: a tool's parameter table, an exhaustive options list, an internal
|
|
20
|
+
architecture, or a tutorial. When a row needs three sentences of mechanism, the
|
|
21
|
+
mechanism belongs in a guide and the row links to it — do not copy the guide up, and do
|
|
22
|
+
not let the row become a summary of a summary.
|
|
23
|
+
|
|
24
|
+
## Rows and counts belong to the tree
|
|
25
|
+
|
|
26
|
+
Where the project has a catalog of capabilities, each row follows the tree:
|
|
27
|
+
- Every row names something that exists and is spelled the way the code spells it: the
|
|
28
|
+
tool, the command, the flag, the file. A renamed tool with an unchanged row is a
|
|
29
|
+
broken promise to the reader who types it.
|
|
30
|
+
- Every count the page states — extensions, tools, skills, themes, formats — is read
|
|
31
|
+
from the tree. A project with a guard that derives it has the number already: change
|
|
32
|
+
the tree, or the guard, never the number in the prose.
|
|
33
|
+
- A capability with no row is invisible; a row with no capability is a lie. Both
|
|
34
|
+
directions, in the same pass.
|
|
35
|
+
|
|
36
|
+
## Examples must run
|
|
37
|
+
|
|
38
|
+
Run the quickstart as written, in a clean directory, before editing anything else on the
|
|
39
|
+
page. The first command is the most expensive promise on the page: a broken one costs
|
|
40
|
+
the reader the whole document. Then check the worked example — an import, a
|
|
41
|
+
configuration snippet, a call — against the current surface, and prefer the shortest
|
|
42
|
+
form that still runs.
|
|
43
|
+
|
|
44
|
+
## The mirror, where the project has one
|
|
45
|
+
|
|
46
|
+
A translated front door is the same document in another language: the same sections,
|
|
47
|
+
the same table rows in the same order, the same relative links. Prose is translated;
|
|
48
|
+
structure is not. A project with one language has no mirror to check, and adding one is
|
|
49
|
+
not this mode's job. A row added to one and not the other is a finding, and the count on
|
|
50
|
+
both sides is the tree's.
|
|
51
|
+
|
|
52
|
+
## Screenshots and assets
|
|
53
|
+
|
|
54
|
+
An image is a claim about a surface. Recapture it when the surface changed — and only
|
|
55
|
+
then, because a stale frame is worse than no frame and a fresh frame is expensive to
|
|
56
|
+
produce. Check that the alt text describes what the frame now shows, that the image is
|
|
57
|
+
referenced by a relative path, and that an image whose feature was removed is deleted
|
|
58
|
+
rather than left unreferenced.
|
|
59
|
+
|
|
60
|
+
## Report
|
|
61
|
+
|
|
62
|
+
Say which rows, counts, examples, and images moved, and which claims you could not check
|
|
63
|
+
without running the product. A front door that matches the tree already is a valid
|
|
64
|
+
result; say what you verified — the command you ran, the counts you derived — and stop.
|
|
65
|
+
|
|
66
|
+
## In this repository
|
|
67
|
+
|
|
68
|
+
- `README.md` is the front door and `README.zh-CN.md` mirrors it section for section;
|
|
69
|
+
`test/docs-parity.test.ts` holds the two to the same headings, table rows, and links,
|
|
70
|
+
and derives the catalog's counts from the tree.
|
|
71
|
+
- `test/extension-load.test.ts` pins every count the pages state — extensions, tools,
|
|
72
|
+
skills, themes — against what actually loads and ships, and requires a row in both
|
|
73
|
+
entry READMEs for every packaged skill.
|
|
74
|
+
- `assets/` holds the frames the pages show; `bun run screenshots` recaptures one, and a
|
|
75
|
+
frame is only recaptured when its surface changed.
|
|
76
|
+
- Deep detail lives in `docs/extensions/<name>.md`, `lib/README.md`, and `docs/`; the
|
|
77
|
+
front door links there and does not restate them.
|
|
78
|
+
|
|
79
|
+
The paths are named, not linked: a skill is installed into projects that do not
|
|
80
|
+
contain them, so a link would point nowhere from the place it is read.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Release
|
|
2
|
+
|
|
3
|
+
Only when the user asked for a specific version. A release is a promise: a tag, a
|
|
4
|
+
published artifact, and a section of the changelog that says what is in it. The
|
|
5
|
+
project's release document owns the whole procedure; this file adds the changelog
|
|
6
|
+
steps and the order they fit into, not a competing one.
|
|
7
|
+
|
|
8
|
+
## Before touching the file
|
|
9
|
+
|
|
10
|
+
1. Read the project's release document — `docs/release.md`, `RELEASING.md`,
|
|
11
|
+
`CONTRIBUTING.md`'s release section, `.github/workflows/publish.yml`. It decides
|
|
12
|
+
the files to bump, the tag format, and the push and publish order.
|
|
13
|
+
2. Confirm the version and the reason with the user. Say the reason in SemVer's
|
|
14
|
+
terms: a fix with no surface change is a patch, an additive surface is a minor, a
|
|
15
|
+
breaking change is a major — and ask when a project in `0.x` treats minors as the
|
|
16
|
+
breaking channel, because many do. Never infer a version from the size of the
|
|
17
|
+
diff and never raise the version in the release without the user's word for it.
|
|
18
|
+
|
|
19
|
+
## Move the entries
|
|
20
|
+
|
|
21
|
+
A project that keeps no changelog file — only GitHub or GitLab releases, or release
|
|
22
|
+
notes a tool generates — has nothing to move: say so and stop, and do not create the
|
|
23
|
+
file as part of a release. The rest of this section assumes one exists.
|
|
24
|
+
|
|
25
|
+
A file a tool generates is moved by that tool, not here: `changeset version`,
|
|
26
|
+
`git-cliff --tag`, `release-please`, `semantic-release`, or whatever the project's
|
|
27
|
+
release document names. In that case this mode's job is to check the result — the
|
|
28
|
+
version, the dated heading, the category order, the link refs — and to report the step
|
|
29
|
+
that is still owed, never to edit the generated file.
|
|
30
|
+
|
|
31
|
+
- Read `[Unreleased]` and check it is what the release contains: everything since
|
|
32
|
+
the last tag, nothing that already shipped.
|
|
33
|
+
- Move every entry under `## [X.Y.Z] - YYYY-MM-DD`, categories in the file's own
|
|
34
|
+
order and spelling, creating only the categories that hold an entry. Keep each
|
|
35
|
+
bullet's text; a release is a move, not a rewrite.
|
|
36
|
+
- Leave `[Unreleased]` present and empty, unless the file's preamble says it is
|
|
37
|
+
removed between releases. An empty heading is how the next change knows where to
|
|
38
|
+
land.
|
|
39
|
+
- Update the link references: `[Unreleased]` now compares from the new tag, and the
|
|
40
|
+
new version gets a reference in the file's existing style (`compare/vOLD...vNEW`
|
|
41
|
+
or `releases/tag/vNEW`).
|
|
42
|
+
- Bump the version where the project keeps it — usually one manifest, sometimes a
|
|
43
|
+
lockfile, a version file, and an install pin. The build manifest and the newest
|
|
44
|
+
dated heading must agree, or a consistency guard fails.
|
|
45
|
+
- The release commit holds the changelog move, the version bump, and the link refs.
|
|
46
|
+
No behavior, no new entries, no unrelated docs: a release commit that also changes
|
|
47
|
+
code cannot be diffed as a release.
|
|
48
|
+
|
|
49
|
+
## Finish
|
|
50
|
+
|
|
51
|
+
- Run the project's release guard (often `release.test.ts` or a `changelog` check),
|
|
52
|
+
then the project's full check. The guard is the one test that names a version, so
|
|
53
|
+
run it directly while iterating.
|
|
54
|
+
- Then, in the project's order and only with explicit approval for that push: commit,
|
|
55
|
+
tag (`vX.Y.Z`, annotated where the project does that), push the tag together with
|
|
56
|
+
the branch — a branch push that lands before its tag races the checkout that
|
|
57
|
+
asserts they agree — and publish through the project's pipeline, not a local
|
|
58
|
+
publish.
|
|
59
|
+
- The release body is that section verbatim, heading included. Do not add a summary,
|
|
60
|
+
a thank-you, or a rewrite of the bullets a reader already has.
|
|
61
|
+
|
|
62
|
+
## Verify a release you did not cut
|
|
63
|
+
|
|
64
|
+
A release is a chain of steps, and the last one can sit for hours waiting on a
|
|
65
|
+
pipeline's approval, so checking a tagged version is its own job. It touches no file:
|
|
66
|
+
open the tag, read each of these, and report the line.
|
|
67
|
+
|
|
68
|
+
- The tag's own manifest — `git show vX.Y.Z:package.json`, or the equivalent — because
|
|
69
|
+
the publish job proves that before it publishes, not the branch's.
|
|
70
|
+
- The newest dated heading, and the project's release guard where it has one.
|
|
71
|
+
- The link refs: `[Unreleased]` compares from the new tag, and `X.Y.Z` points at it.
|
|
72
|
+
- Whatever the release document bumps in the same commit — an install pin, a version
|
|
73
|
+
stamped in a guide, a captured image.
|
|
74
|
+
- The release body against the section the project's own tooling prints, never against
|
|
75
|
+
memory.
|
|
76
|
+
- The publish run itself: a workflow that checks out `vX.Y.Z` publishes the tagged tree
|
|
77
|
+
whatever ref the dispatch named, so what remains is its environment approval and the
|
|
78
|
+
registry version after it.
|
|
79
|
+
|
|
80
|
+
## After
|
|
81
|
+
|
|
82
|
+
If a shipped change turns out to have no bullet, do not edit the released section.
|
|
83
|
+
Record the gap to the user and add a bullet to `[Unreleased]` for the next release,
|
|
84
|
+
naming the fix; a released section is a record of what was published, not a draft.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Roadmap
|
|
2
|
+
|
|
3
|
+
The roadmap is the one document that describes the tree rather than the last release,
|
|
4
|
+
so it goes stale two ways: it keeps what already shipped, and it promises what the
|
|
5
|
+
tree already does differently. This mode re-derives it and deletes what is done. It
|
|
6
|
+
never decides what matters.
|
|
7
|
+
|
|
8
|
+
Read [`discovery.md`](./discovery.md) first for the file, the item form, the buckets
|
|
9
|
+
and their caps, the ledger, and the stated rule for a shipped item. A file with no ids
|
|
10
|
+
and no buckets is not a defect to fix: it gets the deletion pass below, and no invented
|
|
11
|
+
id scheme.
|
|
12
|
+
|
|
13
|
+
## Re-derive before editing
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git log --oneline <last-tag>..HEAD
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Use `HEAD`, or the branch the project documents as its default — a project's branch is
|
|
20
|
+
not always `main`. Read the changelog's newest dated heading beside it: the window is
|
|
21
|
+
everything that landed, and the release is what a reader has. A project with no tags has
|
|
22
|
+
no window at all: re-derive from the newest dated heading and the tree instead, and say
|
|
23
|
+
that is what you did. An item is not "shipped" because a branch merged — the tree
|
|
24
|
+
decides whether the promise is met, the maintainer decides whether it shipped.
|
|
25
|
+
|
|
26
|
+
Then, for every item in the file, open the code it names. Three outcomes:
|
|
27
|
+
|
|
28
|
+
- **The tree does it.** Delete the item, and record the reason where it was — one line
|
|
29
|
+
is enough, and it is what stops the same item being re-added next review. A file with
|
|
30
|
+
its own history or "previous `Now`" section gets the note there instead.
|
|
31
|
+
- **The tree does part of it.** Rewrite the item down to the part still missing. A
|
|
32
|
+
condensed item is a finding; a deleted one that was not done is a lost promise.
|
|
33
|
+
- **The tree contradicts it** — the approach changed, or the problem was solved another
|
|
34
|
+
way. Delete it with that reason. Parking it as "still available" describes a tree
|
|
35
|
+
that no longer exists.
|
|
36
|
+
|
|
37
|
+
Never tick an item and leave it. A checklist with finished rows is a changelog written
|
|
38
|
+
in the wrong file, and it is what the project's own rule usually forbids.
|
|
39
|
+
|
|
40
|
+
## Renumber and fix every citation
|
|
41
|
+
|
|
42
|
+
After a deletion, ids break in four places, and all four move in the same edit:
|
|
43
|
+
|
|
44
|
+
- The item headings, so a prefix's numbers stay contiguous.
|
|
45
|
+
- Every reference elsewhere in the file — a ledger row, a "if only two things ship"
|
|
46
|
+
list, a `P1–P3` range whose endpoints both still resolve.
|
|
47
|
+
- Every mention in the guides, the front door, and the instruction file, which is what
|
|
48
|
+
a stale id breaks first because nothing validates it.
|
|
49
|
+
- The relative links and `path:line` citations the items carry.
|
|
50
|
+
|
|
51
|
+
Change an id only when a deletion forces it. Renumbering for tidiness loses the
|
|
52
|
+
citations the file's readers already have.
|
|
53
|
+
|
|
54
|
+
## Keep the buckets honest
|
|
55
|
+
|
|
56
|
+
- A bucket over the cap the file states is a priority list that stopped being one:
|
|
57
|
+
demote an item rather than widening the cap.
|
|
58
|
+
- A horizon whose exit condition has been met gets rewritten, not left as decoration.
|
|
59
|
+
- A ledger row whose items have all closed is closed; an open item with no ledger row
|
|
60
|
+
gets one, or it is not part of a promise.
|
|
61
|
+
|
|
62
|
+
## Numbers belong to the tree
|
|
63
|
+
|
|
64
|
+
Any count the file states about the code — modules, extensions, tools, screens — is
|
|
65
|
+
read from the tree, not adjusted by hand. A project that derives it in a guard has the
|
|
66
|
+
count already: run the guard, and change the tree or the guard, never the number. A
|
|
67
|
+
project that does not is a finding for the audit, and the fix is a guard.
|
|
68
|
+
|
|
69
|
+
## Non-goals are decisions
|
|
70
|
+
|
|
71
|
+
The non-goal list carries a reason per entry. When the changelog, a discussion, or the
|
|
72
|
+
audit contradicts one, that is a decision for the maintainer: list it, with the
|
|
73
|
+
evidence, and ask. Reversing a documented non-goal is not a roadmap edit, and an item
|
|
74
|
+
that needs one reversed says so in the item.
|
|
75
|
+
|
|
76
|
+
## Report
|
|
77
|
+
|
|
78
|
+
Every edit named by the item it touched: deleted, rewritten, renumbered, or cited.
|
|
79
|
+
Then the items that need a decision, one line each. A roadmap whose window changed and
|
|
80
|
+
whose items are all still true is a valid result — say so instead of finding work to
|
|
81
|
+
look thorough.
|
|
82
|
+
|
|
83
|
+
## In this repository
|
|
84
|
+
|
|
85
|
+
- `ROADMAP.md` states its own rules under *How items are ordered*: an item is deleted
|
|
86
|
+
when it ships, never ticked, and `Now` and `Next` hold at most ten.
|
|
87
|
+
- `test/roadmap.test.ts` pins the mechanical half — id uniqueness and contiguity, the
|
|
88
|
+
links, the citations, and the caps — and cannot tell that an item has shipped, which
|
|
89
|
+
is why the file states that rule in prose.
|
|
90
|
+
- `AGENTS.md` requires the deletion or renumbering in the same commit as the change.
|
|
91
|
+
|
|
92
|
+
The paths are named, not linked: a skill is installed into projects that do not
|
|
93
|
+
contain them, so a link would point nowhere from the place it is read.
|