Skip to content

cli: install, update and report the published skills at the server's version, with or without a project #34773

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this seat's chat, 2026-11-17, verbatim: 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, and, on the list of thirteen cards the seat then showed: 「同意」. The ruling records are #34659 comment 6940528935 and #34691 comment 6943107981. Readings: objectstack a0326b06, cloud 53a5844, 2026-11-17.

Why

A person who only connected an MCP client has no way to install the skills. A person with a project has no command to refresh them after an upgrade, so the local knowledge quietly falls behind the server.

Who acts: the server lane (packages/cli, packages/skills). Reader: every user of the skills.

Evidence

  • The only install path is create-objectstack, which runs a third-party sync at scaffold time. No os command refreshes .claude/skills/.
  • os validate --target warns when the local skills version differs from the target's (packages/cli/src/commands/validate.ts:235); nothing repairs it.
  • Nothing documents an install for a user with no project (content/docs/ai/connect-mcp.mdx).
  • Vendors solve version skew with a command: npx convex ai-files install|update|status, stripe agent setup, nb init, and the Next.js rules block refreshed on upgrade.

Scope

Done when

  • In an empty directory, the command installs the catalog matching a running server's version, and status reports a mismatch after the server is upgraded.

Relations

Activity

  1. added
    pm:epic
    area:ai
    domain:server
    on Nov 17, 2026
  2. added
    pm:on-hold
    and removed
    pm:epic
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Released by the maintainer (recorded on #34659 at 23:01Z, comment 6963538703: 「云端的任务你说暂缓,他也不会排的呀,是不是应该先放回队列」 and 「其他技能体系的卡如果改动面大不是理由啊…那就应该开放」). pm:on-hold → pm:queue. Theme: MCP, epic #34659 (in focus).

    Named effect: the ask-data skill is published, but a user who only connected an MCP client has no way to install it, which limits milestone 1's value today. So p1.

  4. added
    pm:queue
    priority:p1
    and removed
    pm:on-hold
    on Nov 17, 2026
  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH

    Claim: PM loop round 1 · 2026-11-17T23:06Z
    Session: session_01WGufzgNCAXyGfBQFZBwixH
    Account: os-support-ai
    Branch: claude/issue-34773-os-skills-install
    Worktree: objectstack-issue-34773
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface:

    Lease o3-G (seat post #34584); child of epic #34659. L1 is L1-c, then the seat's opus L2 for the Clause-② declaration.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  7. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH
    os-dev-report
    Stamp: 2026-11-18T01:40Z

    {
      "issue": 34773,
      "status": "done",
      "branch": "claude/issue-34773-os-skills-install",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35060",
      "session": "session_01WGufzgNCAXyGfBQFZBwixH",
      "premise_still_valid": true,
      "summary": "Added `os skills install | update | status` (packages/cli/src/commands/skills/*, helpers in src/utils/skills-catalog.ts, skills-install-state.ts, skills-command.ts, `skills` oclif topic). Version order: --version (exact), else --target (the `os validate --target` reader, versions.skills), else the CLI's own version (same changeset fixed group); output names the source. The catalog is the @objectstack/skills tarball at that exact version read with `npm pack` in the cwd (user .npmrc / npm_config_* apply; no existing registry helper existed), unpacked in process keeping only dist/skills/NAME/** with a SKILL.md; unknown versions refused by name; a .objectstack-skills.json record (version + per-file sha256) lets update replace/remove only catalog-owned skills and status report missing/modified/extra, with --check exiting 1 on a mismatch; all three take --json. The MCP open server's initialize install line now names `os skills install --version V` (plus the `npx -p @objectstack/cli@V` form) instead of pnpm add; pin, README, cli.mdx (new Skills section), skills.mdx and connect-mcp.mdx updated; patch changeset for cli and mcp.",
      "tests": "Head 3dcccc7826 (merge of origin/main onto bec9bdc5cb). New packages/cli/test/skills-commands.test.ts (unit tier, registry and target seams stubbed, no network): 22 passed at bec9bdc5cb; after the merge with test/mcp-connect.test.ts 36 passed. MCP pin red first (`expected 'ObjectStack MCP Server...' to contain 'os skills install --version 18.5.0'`, 1 failed / 7 passed), then 8 passed (also 8 passed after the merge). At bec9bdc5cb: `pnpm --filter @objectstack/mcp test && typecheck` 71 files / 1254 tests passed, check:test-typecheck OK; `pnpm --filter @objectstack/cli typecheck` exit 0; cli `vitest run --project unit` 427/427 files, 6085/6085 tests; integration tier declared to CI (no integration file, bin/ or serve-process touched). Ablations via scripts/ablation-replace.mjs (tests import src, no dist leg): A1 update ownership (planSkillsWrite conflict branch to `else if (false)`) red 2 failed / 20 passed, restored blob == HEAD and git diff HEAD empty; first A1 attempt was a vacuous syntax-error run (no tests), discarded and rerun. A2 status mismatch (drop !versionMatches) red 3 failed / 19 passed incl. the Done-when test, restored blob == HEAD. Live against the real registry in an empty dir: install --version 18.5.0 put 11 skills (objectstack-data byte-identical to the tarball), status --check exit 0, update --version 99.0.0 exit 1 naming the version, update --version 18.4.0 then status --check exit 1.",
      "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 118 families at 3dcccc7826; all run with exit codes captured before any pipe; --ran reconciliation `118 derived, 116 run, 2 NOT-MEASURED, 0 UNRUN`. NOT MEASURED (exit 3 prerequisite): check:skill-examples, check:i18n-coverage. check:docs and check:docs-transcript-drift first exited 1 on the merged head because spec/lint dist predated the merged sources (json-schema older than src; rule count 70 vs 71); after rebuilding spec and lint both exit 0, so 116 run green. Earlier sweep at bec9bdc5cb: 115 green, 3 exit 3. overlap-check at 3dcccc7826: VERDICT overlap exit 1, only #34791 conflicting in content/docs/deployment/cli.mdx, and that conflict is #34791 against main itself (its 70-to-69 line vs main's 70-to-71 at cli.mdx:890; git merge-tree origin/main vs #34791 head), not this diff; at bec9bdc5cb VERDICT clean exit 0. check-governed-merges --branch: 0 of 15 paths governed, 1518 changed lines. check-changeset-no-major with a simulated PR payload: level axis OK (widening + none at patch). CI on PR head 3dcccc7826: 41 check-runs success, 15 skipped, 0 failed; including Lint & Repo Gate jobs, Type Check workspace/source/consumer/debt, Test Core 1-10/10, Build Core, Governed Surface Queue Guard, Dogfood Regression Gate, Live E2E UI, Test UI, Check Changeset, PR-body guards success; Lint UI, Type Check UI, Build & E2E UI skipped by filter.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch probe and later pushes, not REST); relay pr_create (objectstack-ai/objectstack#35060, read back identical, assignee os-support-ai); post-stamped comment on #34773 (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — an open-source server does not serve /api/v1/discovery/restriction-profile (cloud-only route per restriction-profile.ts), so --target against os dev is refused by the validate reader's existing 404 sentence; for open servers the version reaches users through the MCP initialize line",
        "carrier: none · noted, not filed — the order's premise that /mcp/skill carries the install line is false on a841e26b23: only skillsInstallLine in mcp-server-runtime.ts (initialize) carries it",
        "carrier: skills lane · noted, not filed — skills-reference.mdx and packages/skills/README.md still lead with pnpm add plus experimental_sync, which keeps working",
        "carrier: #34791 · its cli.mdx:890 line conflicts with main, independent of this PR"
      ],
      "deviations": "PR body cites readings at bec9bdc5cb; the head is the origin/main merge 3dcccc7826, whose re-run readings are in this report (no body patch, to stay inside the write budget). The container restarted mid gate re-run; the sweep was resumed, not restarted from zero. Merge commit carries git's default message (no trailers)."
    }
  8. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH

    Delivered · 2026-11-18T03:11Z

    PR #35060 merged to main at 0c6089725b and closed this card (Fixes).

    • os skills install / update / status install the published @objectstack/skills at the server's version into the agent's skills directory, with or without a project, then refresh and check it. Paths from the tarball and from the install record are refused if they could leave the skills directory (.., \, :, or a resolved target outside the root), and every target is judged before the first write. On Windows the npm pack destination is quoted.
    • The MCP open server's initialize skills line now names os skills install --version VERSION, with the npx -p @objectstack/cli@VERSION fallback. The pending mcp: the open door's initialize instructions carry the ask-data selection rule and the skills install line; /mcp/skill renders from the published skill #34686 release note was corrected to match. That was a DELIBERATE CORRECTION, confirmed by the seat's record 6967431826.

    Declared Clause-②: yes (widening), Metadata-protocol: none, patch. Reviews: L1-c ACCEPT 6966450600, delta ACCEPT 6967097514; seat contract review PASS 6966546222, delta PASS 6967431826. Follow-ups: #35079 (atomic applySkillsWrite, triage); N5 (sync-catalog.mjs should apply the reader's name rules) is with the skills lane. Version Packages #33849 regenerates from the corrected note. pm:dispatched and lease:o3-G removed in this stroke.

  9. removed
    pm:dispatched
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions