Skip to content

chore: install and sync the published @objectstack/skills bundle (#2419) - #2792

Draft
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/issue-2419-install-published-skills
Draft

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/issue-2419-install-published-skills

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #2419

Clause-②: no
Metadata-protocol: none
Rule-change: yes — AGENTS.md's Platform Upgrades step 3 now tells an agent to re-sync and commit the published skills after a platform bump (a new step in what an agent does on an upgrade). Governed paths (AGENTS.md, .claude/**): this PR stays a draft for the maintainer's merge.

维护者速读

  • 用户无感:只影响在本仓库里工作的 AI 编码助手,它们开始能读到平台发布的十二个编写技能。
  • 为什么做:仓库规则说业务元数据的编写要参照平台发布的技能,但仓库里一直没有装,这次按卡上推荐的方案 A 补上。
  • 出错会怎样:最坏只是技能内容和当前平台版本对不上,应用本身的校验与构建不受影响;整个改动可以直接撤回。
  • 要你做什么:审阅后亲自合并这个草稿(它改了受管路径)。

What changes

  • package.json / pnpm-lock.yaml: @objectstack/skills added as a devDependency at 18.6.0, the exact version the repo pins for @objectstack/spec (no platform bump). npm view @objectstack/skills@18.6.0 version answers 18.6.0.
  • .claude/skills/** (104 files, new): the copies written by the sync the platform teaches today (objectstack skills/README.md, re-read on objectstack main d62f9e9c), run verbatim: pnpm add -D "@objectstack/skills@$(node -p "require('@objectstack/spec/package.json').version")" then npx skills@1.7.2 experimental_sync --agent claude-code --copy -y. --copy makes them real files (0 symlinks), so a clone carries them.
  • skills-lock.json (new): the lock the sync writes — one entry per skill, source @objectstack/skills, version 18.6.0, content hash.
  • AGENTS.md: Platform Upgrades step 3 gains the re-sync sentence. Nothing else in the file changes.
  • Changeset: none. This ships nothing to app users; the route is the skip-changeset label (AGENTS.md, Every PR carries a changeset), applied with this PR's create.

Tests

  • .claude/skills/*/SKILL.md present for every skill the package ships: 12 (objectstack-ai, -api, -ask, -automation, -data, -formula, -i18n, -platform, -query, -ui, -upgrade, objectui). The package itself carries 12 SKILL.md; the card's "eleven" was counted on an earlier version.
  • pnpm verify on 24f8cc19: exit 0 (validate, typecheck, lint, hygiene, build, test — Test Files 338 passed (338), Tests 6495 passed | 58 skipped (6553)).
  • pnpm validate and pnpm build output compared with a baseline run on 0682c4bf (timings stripped): identical; artifact dist/objectstack.json (4607.2 KB) both times.

Acceptance notes

  • The objectstack README index on main lists 14 skills (objectstack-mcp-build, objectstack-project besides these); they are not in the published 18.6.0 package, so they arrive with a later bump and re-sync. Not a defect here.
  • The sync's log also prints ./.agents/skills/... paths, but writes no .agents/ directory in this checkout; only .claude/skills/ and skills-lock.json appear.

Verification

Read first: AGENTS.md (the one changed sentence in step 3), skills-lock.json, package.json.

Two-minute check: ls .claude/skills/*/SKILL.md | wc -l on this branch prints 12.

🤖 Generated with Claude Code

https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns

Add @objectstack/skills at the pinned @objectstack/spec version (18.6.0),
run the sync the platform teaches with --copy so a clone carries the
twelve skills under .claude/skills/, commit skills-lock.json, and name the
re-sync in AGENTS.md's Platform Upgrades step so a version bump refreshes
the copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR ships nothing to users (pure CI/docs chore) — changeset gate waived label Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Nov 25, 2026 9:55am UTC

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Dependency bumps and lockfile changes labels Nov 25, 2026
@objectstack-fleet

objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

Seat record · ACCEPT · head 24f8cc19 · 2026-11-25T10:07Z

速读(维护者四行,独立评审结论):

  • 改了什么: 新增 devDependency @objectstack/skills@18.6.0(与 @objectstack/spec 同版本),把该包的 12 个 skill 原样拷进 .claude/skills/(104 个文件),新增 skills-lock.json,AGENTS.md 的 Platform Upgrades 第 3 步加一句「升级后重新 sync 并同 PR 提交」。不涉及 workflow,没有人因此能碰到生产发布密钥或发布权。
  • 为什么改、谁提的: AGENTS.md:17 说元数据编写 "guided by the platform's published skills",但仓库里一个都没装。卡 hotcrm installs none of the published skills (no @objectstack/skills, no .claude/skills/) while AGENTS.md says authoring is guided by them — install and sync the pinned bundle, or say what guides it #2419 由你 2026-11-07 的「按照你的建议立卡」立卡,走方案 A。
  • 最坏情况与能否撤回: 在 hotcrm 工作的 agent 读到平台 skill 里有误或与本仓规则冲突的文字,写出不当元数据。这仍要过 pnpm verify 和评审,不触达应用用户。纯新增,revert 这一个 squash 提交即可完全撤回。
  • 本评审未验证的:
    • 没有实跑 skills experimental_sync:复现被会话权限拒绝,改为按 CLI 源码重算哈希。
    • 没有逐字节比对 dist/objectstack.json。
    • 没有逐行审读 2.1 万行 skill 正文的语义。
    • Link Check 全量模式尚未扫过这 71 个 .md。

席位意见: 建议合并。合并前请知悉 N1:此后每次平台升级 PR 都要同 PR 提交刷新后的 .claude/skills/,而 .claude/** 是受管路径,所以 patch 和 minor 升级也会变成 draft、由你亲手合并。这是这条规则带来的常态工作量。

要你做什么: 合并本 PR。独立评审 ACCEPT-WITH-NITS,评审的 Head-sha 是 24f8cc19329d134fc041dffbb9bbfd55189757ba。本 PR 碰受管路径(.claude/**、AGENTS.md),且改动超过 3000 行,按 AGENTS.md 是你本人的合并:席位不转 ready、不挂 auto-merge。

席位核对 — ACCEPT · repo:hotcrm#2 · head 24f8cc19

  • 形态: 单提交 24f8cc19,base origin/main 0682c4bf,+21545/−1,108 个文件,draft,mergeable_state: clean。check-governed-merges.mjs --pr 判为 Tier H(.claude/** 104 个文件,AGENTS.md 1 处)。
  • 前提实测:
    • 卡上的前提在 0682c4bf 上仍然成立:package.json 里没有 @objectstack/skills,.claude/ 下只有 launch.json,也没有 lock 文件。
    • 拷贝与发布包逐 blob 一致:104/104 个文件 git hash-object 相同,无符号链接、无可执行位。
    • skills-lock.json 的 12 个 computedHash 按 CLI 算法重算吻合。
    • pnpm-lock.yaml 的 integrity 与 npm pack 下来的 tarball sha512 一致。
    • 控制字符和 bidi 扫描只命中 48 处跟在 ⚠ ☁ 后面的 U+FE0F,属于 emoji 呈现选择符,无害。
  • 门禁 check-runs: 21 个检查全部完成,19 个 success、1 个 skipped。唯一的 failure 是 Check Changeset 在 opened 事件上跑的那次(run 45589978798),它早于 skip-changeset 标签;labeled 事件那次(run 45589987130)是 skipped,以它为准。唯一的必需检查 Build and Test (22.x) 是 success。dev 本地 pnpm verify 也通过:338 个测试文件、6495 个测试。
  • 接受的偏差: 卡上写 11 个 skill,18.6.0 实际发布 12 个(多 objectui),是超集。changeset 走 skip-changeset 标签,符合规则:hotcrm 是 private,市场只上传 dist/objectstack.json。
  • 范围外去向:
    • N2:scripts/lib/source-hygiene-surface.mjs:108 的注释还写着 ".claude/ holds a single launch.json",合并后不再属实。席位合并后另立卡。
    • N3:Dependabot 可能单独升级 @objectstack/skills 而不重新 sync。只记录,按 Scope 规则 3 不在本仓加门禁。
    • N4:Link Check 的扫描面扩大到这些拷贝进来的 .md。只记录。
    • N6:npx skills@1.7.2 默认发一次遥测。这是平台 README 规定的原命令,只记录。
    • Skills-docs: none — 本 PR 不改任何元数据作者能写的内容(Metadata-protocol: none)。
  • 落地条款: 维护者本人合并。席位不转 ready、不入队、不挂 auto-merge。head 若再移动,本记录失效,需按 delta 重审。

@objectstack-fleet

objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 24f8cc19329d134fc041dffbb9bbfd55189757ba
Local-runs: none
Scope: AGENTS.md, .claude/skills/** + package.json, pnpm-lock.yaml, skills-lock.json
Security-touching: yes
Rule-change-verified: yes

The reviewer was an isolated read-only subagent at CONTRACT_REVIEW_TIER (effort high, under the maintainer's 2026-11-22 effort ruling). It took no part in the change and read neither the PR description, the os-dev-report, nor any seat comment before its verdict. The seat adopts it.

① Derived judgments

  • AGENTS.md: one hunk (--numstat 2/1), in Platform Upgrades step 3 (AGENTS.md:316-317 on the head). The re-sync command is byte-identical to objectstack skills/README.md:13 on main and in the 18.6.0 package (grep -F -x). Line 17, CLAUDE.md and .github/** are untouched.
  • .claude/skills/**: 104 files, blob-identical to npm pack @objectstack/skills@18.6.0's dist/skills (git hash-object, 104/104). The package's top-level README.md is the only file not copied, which is what the sync does. Every entry is mode 100644: no symlinks, no exec bits, no dotfiles.
  • skills-lock.json: the 12 computedHash values recompute from the CLI's computeSkillFolderHash. It holds no absolute path, URL or secret.
  • package.json / pnpm-lock.yaml: +1 devDependency at the @objectstack/spec pin (18.6.0). The lock adds 3 hunks for that one package and its integrity equals the tarball's sha512. There are no install scripts.

② Semver level

None. hotcrm is "private": true and the marketplace publish uploads dist/objectstack.json, the README and a CHANGELOG excerpt (scripts/publish-marketplace.mjs:185-207). Nothing reaches app users. The skip-changeset label is legitimate: it landed in the same second the PR opened, not to turn a red check green.

③ Boundary flags

  • Author: objectstack-fleet[bot], through the relay pr_create.
  • The dev's report: open_questions is empty, and its one out-of-scope note (main's README lists 14 skills, while 18.6.0 ships 12) is expected for unreleased main.
  • SQL push-down check: not applicable; no query code.
  • Control and bidi scan: only 48 U+FE0F emoji presentation selectors.
  • Prompt-injection phrase scan: only ordinary platform-doc sentences.
  • Hooks and settings: the 12 SKILL.md frontmatters carry no allowed-tools, hooks or model, and the bodies hold no dynamic ! injection. No settings.json, hooks, commands or agents are added.
  • CI on the head: 21/21 completed. The one failure is the opened-event Check Changeset (run 45589978798), superseded by the labeled run 45589987130 (skipped). The required Build and Test (22.x) is success.

④ Design judgment

  • AGENTS.md: the added step holds. The sync CLI overwrites node_modules-sourced skills and prunes removed ones, so committing the lock with the copy is required. The step says so.
  • .claude/skills/**: a faithful vendored copy of the pinned release, and it satisfies the card's acceptance. The card says eleven skills; 12 ship (a superset).
  • No finding is graded above nit.
  • nits:
    • N1: every platform bump now edits .claude/**, a governed path, so minor and patch bumps become maintainer merges. This is a consequence to accept, not a defect.
    • N2: scripts/lib/source-hygiene-surface.mjs:108 has a stale comment. It goes to a follow-up card.
    • N3: Dependabot can bump @objectstack/skills without a re-sync. It stays noted only (Scope rule 3: no new gate here).
    • N4: Link Check's full mode now walks the vendored .md files. Their 150 relative links resolve.

Implemented-by: claude/issue-2419-install-published-skills
Reviewed-by: session_017xRBcV3h25dAMNWki8e1ns

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

维护者速读

This PR touches governed paths and changes more than 3000 lines, so it is the maintainer's own merge. The seat leaves it a draft and arms nothing.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency bumps and lockfile changes documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue skip-changeset PR ships nothing to users (pure CI/docs chore) — changeset gate waived

Projects

None yet

2 participants