Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 58b480e

Browse files
docs(skills): project-setup.md’s CLI table drops the retired objectui add row and says analyze is the bundle-size report over dist/ (objectui#11503) (#11507)
Fixes #11503 Clause-②: no ## What changed Two rows of the "CLI commands" table in `skills/objectui/guides/project-setup.md`, the guide of the shipped `objectui` skill. - The `objectui add` row ("Add a component renderer scaffold") is deleted. On this branch's base `aea682a3`, `packages/cli/src/cli.ts` registers no `add` command and `packages/cli/src/commands/` holds no `add.ts`; a grep for `objectui add` over `packages/cli/src` is empty. The pin in `packages/cli/src/__tests__/cli-bin.test.ts` already holds: running `add` is refused with `unknown command 'add'`. - The `objectui analyze` row. Before: "Analyze bundle size / render performance". After: "Bundle-size report over the built `dist/` output". That is what the command does today: `.command('analyze')` in `cli.ts` takes no option, and `analyze()` in `packages/cli/src/commands/analyze.ts` only calls `analyzeBundleSize()`, which reads the `dist/` directory under the current working directory (its docblock: "Analyze application performance: the bundle-size report over `dist/`"). The same pin test holds `--render-performance` and `--bundle-size` as refused options. The new row names no flag and carries no retirement narrative: the skill teaches the current spelling only. Both retirements are PR objectui#11499 (objectui#11496, triage ruling 5958245941), merged to main before this branch was cut; this PR only follows them. Not touched: the `create plugin`, `lint`, `test` and `studio` rows — objectui#11500 is still queued with no PR, so the CLI still has them and the guide must not run ahead of the CLI; every other row of the table; the rest of the guide; `skills/objectui/evals/**` (no eval token names `analyze`, `add`, `render` or `bundle`: a grep over `skills/objectui/evals/*.json` for those is empty); `packages/**`. No test is added: the card is prose, and the code side is already pinned by `cli-bin.test.ts`. An empty-frontmatter changeset, `.changeset/11503-project-setup-cli-table-add-analyze.md`, declares the change as unreleased (nothing under a published package's `files[]` moved; `check-changeset-presence` says no changeset is owed and counts the one added). ## Line readings (lines; objectui has no token ratchet) | surface | before | after | delta | |---|---|---|---| | `skills/objectui/guides/project-setup.md`, whole file | 351 | 350 | -1 | | whole package: every `skills/objectui/**/*.md` plus every `skills/*/SKILL.md`, as a union (16 files; the only `SKILL.md` is `skills/objectui/SKILL.md`, already inside the first set) | 4816 | 4815 | -1 | Budget for this card: net at most 0. The diff is two deletions and one insertion; the `analyze` row stays one line and no neighbouring line is re-wrapped. Both readings are taken from the git objects at the base `aea682a3` and at head `6604f48f`. ## Verification (head `6604f48f`; every exit code redirected to a file before being read) Gate roster derived by hand from `.github/workflows/*.yml` on the base (objectui has no `dispatch-gates`). Each gate's own verdict line is quoted in the `os-dev-report` comment on objectui#11503. - `node scripts/check-skills-paths.mjs` → exit 0 ("89/90 stated path(s) resolve across 20 guide file(s); 1 baselined"); the path set this guide states is unchanged and `scripts/skills-path-baseline.json` is untouched. - `node scripts/check-skill-examples.mjs --self-test` → exit 0 (60 cases) and `node scripts/check-skill-examples.mjs` → exit 0 ("Every marked skill example holds up against the built types"), after the gate's own `--build-filter` scoped build (12 named packages plus closure, 29 turbo tasks, 3m29s under the shared verify lock, VERDICT command-exit 0). No code fence moved in this diff. - `node scripts/check-skill-eval-tokens.mjs --self-test` → exit 0 (29 cases); `node scripts/check-skill-eval-tokens.mjs` → exit 0 ("Every must_contain token is taught by its own skill bundle"). - `node scripts/check-new-cross-file-line-citations.mjs` → exit 0 ("0 new citation(s)"); this body cites by content, never by line address. - `node scripts/check-control-bytes.mjs` → exit 0 (10096 tracked text files). - `node scripts/check-changeset-presence.mjs` → exit 0 ("1 file(s) changed, 0 of them published source … 1 changeset(s) added … no changeset is owed"); `node scripts/check-changeset-no-major.mjs` → exit 0; `node scripts/check-changeset-overwrite.mjs` → exit 0 ("1 changeset(s) added, 0 modified, 0 deleted"). - `node scripts/check-governed-queue-guard.mjs --test` over the two files → exit 3 GOVERNED (`skills/**`, the published skills catalog): this PR stays a draft until an authorized APPROVED review, then the seat lands it. - `pnpm exec vitest run --maxWorkers=2 scripts/__tests__/doc-version-claims.test.ts` → exit 0 (1 file, 29 tests passed): the one test in the tree that reads this guide. - Card pin: `grep -rnE "objectui add|render.performance|--bundle-size|generate --output|generate --from" skills/` → two hits on the base (these two rows), zero after. - Not run locally, declared to CI: the `lint.yml` and `ci.yml` jobs, whose "Decide whether this change needs a full run" step excludes `**/*.md` and `.changeset/**`, so on this diff they report a skip. ## Acceptance notes - Every other row of the table was read against `cli.ts` on the base: `init` (templates `dashboard`, `form`, `simple`), `dev` (alias for `serve`), `build`, `start`, `studio`, `validate`, `check`, `lint`, `test`, `generate` (`resource`/`object`, `page`, `plugin`), `create plugin` and `doctor` each match a registered command and its options. No other stale row; nothing to file. - The container's Node (v22.22.0) is below the `engines` floor of a transitive `jsdom`, so `pnpm install` ran with `--config.engine-strict=false`, as the earlier skills cards did; nothing in this diff depends on it. ## 维护者速读(草稿) ### 改了什么 `skills/objectui/guides/project-setup.md`(发布给使用者的 objectui 技能)CLI 命令表里两行:删掉 `objectui add` 一行;`objectui analyze` 一行从「分析包体积 / 渲染性能」改为「对构建产物 `dist/` 的包体积报告」。另加一个空 frontmatter 的 changeset,声明本次不发版。文件 351 → 350 行,整个 skills 包 4816 → 4815 行。 ### 为什么改 PR objectui#11499(objectui#11496)已把 CLI 的 `add` 命令和 `analyze` 的渲染性能模式退役:现在 `objectui add` 会被 CLI 拒绝为未知命令,`analyze` 只剩包体积报告。技能面却还在教这两样,照着做的 AI 会敲出一条 CLI 拒收的命令、或期待一个不存在的模式。本 PR 只让技能表跟上 CLI 的现状,只教现行写法,不加「已退役」叙事。 ### 风险与代价(含回滚) 纯散文改动:不碰代码、测试、evals,代码围栏一字未动,技能示例门禁实测无差异;行数 -1,在预算内。`create plugin` / `lint` / `test` / `studio` 四行刻意不动 —— objectui#11500 还在队列里、CLI 侧未退役,技能面不能跑在 CLI 前面。回滚 = revert 本 PR 的 squash commit。受管面(`skills/**`,Tier H):停在 draft,等获授权批准后由席位落地,本 PR 不自行翻 ready、不入队。 ### 席位意见 (留空,席位定稿) ### 你要做的 读一遍 `analyze` 新行的措辞是否符合你对该命令现状的理解(只做 `dist/` 的包体积报告,无其他模式);认可则留一条 APPROVED review,席位接手 ready 与入队。 Session `session_01FNKm1SmPpuJASnbjxWGtsJ`, seat `domain:skills#1`, dispatched by the PM loop on card objectui#11503. --- _Generated by [Claude Code](https://claude.ai/code/session_01FNKm1SmPpuJASnbjxWGtsJ)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8cce12c commit 58b480e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
---
3+
4+
Skill prose only, no package released: the CLI command table in
5+
`skills/objectui/guides/project-setup.md` no longer lists `objectui add`, and its
6+
`objectui analyze` row now says what the command does today — the bundle-size report over the
7+
built `dist/` output. PR objectui#11499 (objectui#11496) retired the `add` command and the
8+
`--render-performance` / `--bundle-size` modes of `analyze`, while the shipped skill kept
9+
teaching both, so an agent following the guide would run a command the CLI refuses as unknown
10+
and name a mode it no longer has. The other table rows and the rest of the guide are unchanged
11+
(objectui#11503).

‎skills/objectui/guides/project-setup.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,9 @@ overriding the token values: [`rules/styling.md`](../rules/styling.md).
171171
| `objectui lint` | Lint generated app code (ESLint) |
172172
| `objectui test` | Run app tests (Vitest) |
173173
| `objectui generate` | Code/schema generation (`object`, `page`, `plugin`) |
174-
| `objectui add` | Add a component renderer scaffold |
175174
| `objectui create plugin` | Scaffold a new plugin |
176175
| `objectui doctor` | Diagnostics (Node version, deps, etc.) |
177-
| `objectui analyze` | Analyze bundle size / render performance |
176+
| `objectui analyze` | Bundle-size report over the built `dist/` output |
178177

179178
### Dev server modes
180179

0 commit comments

Comments
 (0)