Skip to content

feat(skills): app tool families (lot 10c, part 1) - #3043

Merged
agentiknet merged 4 commits into
mainfrom
feat/tool-docs-app
Dec 1, 2026
Merged

agentiknet merged 4 commits into
mainfrom
feat/tool-docs-app

Conversation

@agentiknet

Copy link
Copy Markdown
Contributor

Summary

Lot 10c, part 1: family docs for the app_* tools (29 tools), removed from legacy.ts. Three declared families in tool-docs/app.ts, split by workflow rather than by prefix:

  • app: install, resync, updates, catalog, list, apply, unapply, list_applied, run, status, stop, uninstall, app_call.
  • app-data: app_data_*, app_state_* (including app_state_append), app_external_*.
  • app-ui: app_tool_call, app_link_mint (with its Telegram human gate), app_tunnel, app_artifact_get, app_skill_get, and the two app-only pull tools app_session_tree / app_session_events (documented as hidden from the model, pointing to session_tree and session_transcript).

Per-app app_ui_<slug> tools

Not documented as a family. They are generated at request time for each installed app that ships a ui block (appUiToolId in app-ui-apps.ts), so they are absent from the fixed daemon tool name list, from legacy.ts, and from the docs partition test. The app-ui doc explains the pattern in its workflow instead of listing them.

Checks

  • pnpm --filter @agentproto/runtime test src/__tests__/tool-docs.test.ts: 178 passed (every example validated by the real zod schema, no stripped key, no deprecated field).
  • pnpm --filter @agentproto/runtime check-types: clean.
  • pnpm skills:check: green. node scripts/check-private-names.mjs: ok.
  • Runtime then skill pack built: app.md, app-data.md, app-ui.md appear in dist/gen/skills/ap-tool-index/reference/.
  • Control: with the 29 names still in legacy.ts and the docs present, the partition test fails ("in both"); after removal it passes.

Part 2 (mcp-import, mcp-apps, skill-import, tool-authoring) follows in a separate PR branched from main.


@agentproto-bot · PR · session sess_7431a9e3 (executor, skills lot 10c) · supervisor sess_c95a955c

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Documents the app tool families (app lifecycle, app data/state/external reads, and the app UI bridge) as hand-written tool family docs, wires the three new families (app, app-data, app-ui) into TOOL_FAMILY_DOCS, and removes the now-documented app_* tools from LEGACY_UNDOCUMENTED_TOOLS.

Verified:

  • All 29 app_* daemon tools are documented across the three families; nothing app_* remains in the legacy list and no tool is duplicated (partition test passes).
  • npx vitest run src/__tests__/tool-docs.test.ts passes (178 tests): every example is validated against the real zod schema, no silently-stripped keys, no deprecated fields, CLI verbs (app) exist, and structure bounds hold.
  • Spot-checked prose against implementation: app_data_read returns exists:false on miss, app_data_write returns {appId,path,size}, app_uninstall returns services only when services were stopped, app_data_list entries are {name,type,size}.
  • @agentproto/runtime is the only changed package.

Changeset

.changeset/tool-docs-app-families.md already declares @agentproto/runtime at patch, which matches the change (docs + legacy-list shrink, no API change). node scripts/list-changed-packages.mjs prints only @agentproto/runtime. No additional changeset is owed.

Findings

  • low — packages/runtime/src/tool-docs/app.ts:46,311: seeAlso entries mcp-apps and tunnels do not resolve to a tool-family id or a skill name (tunnels is ap-tunnels, and there is no mcp-apps family/skill). This is consistent with the pre-existing permissions reference elsewhere and is unvalidated by tests, so it's cosmetic — consider swapping to ap-tunnels / ap-import-mcp if you want cross-links that resolve.

Verdict

Approve. Docs are accurate against the real tool surface, the legacy list shrinks correctly, and the changeset is correct.


🤖 @agentproto-bot — review · session sess_daa288ae (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_5a57582c · $0.0213 · run 46546671905 · sha 029f831eaf32d11836f35c5c35214b7052e7fb18

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Incremental review of commit 4a0090a07 (029f831e...HEAD). It removes the app verb entry from packages/skill-pack-agentproto/cli-verbs.json, relocating that verb's coverage to the new app tool-family doc (which declares verb: "app").

This is exactly the fix the new family docs required: check 9 in packages/skill-pack-agentproto/test/checks.mjs:325 fails when a verb is both covered by a family doc and still listed in cli-verbs.json ("<verb>" is covered by a family doc; remove it here). With the app family now documented, the stale entry had to go.

Verified:

  • npx vitest run in packages/skill-pack-agentproto — 46 tests pass (checks, render, gen-skills, skills).
  • app family doc declares verb: "app" (packages/runtime/src/tool-docs/app.ts:36,41,306), so the verb remains covered and check 9 stays satisfied.
  • cli-verbs.json is the tracked source; skills/ is generated at build, so no generated artifact drift.

Changeset

node scripts/list-changed-packages.mjs lists @agentproto/runtime and @agentproto/skill-pack-agentproto. Only runtime is publish-affecting; cli-verbs.json sits at the package root, outside files[] and src/, so it is not publish-affecting. node scripts/check-changeset-coverage.mjs confirms: "All changed publishable packages are in a changeset: @agentproto/runtime". The existing .changeset/tool-docs-app-families.md (runtime patch) is sufficient — no additional changeset owed.

Findings

  • low — packages/runtime/src/tool-docs/app.ts:46,311 (carried over from the prior pass): seeAlso entries mcp-apps and tunnels do not resolve to a tool-family id or skill name (tunnels is ap-tunnels; no mcp-apps family/skill exists). Cosmetic, unvalidated by tests — consider swapping to ap-tunnels / ap-import-mcp for resolvable cross-links. Not introduced or affected by this increment.

Verdict

Approve. The increment is the correct companion fix to the family-doc addition, all skill-pack checks pass, and changeset coverage is satisfied.


🤖 @agentproto-bot — review · session sess_1e2bc2e1 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_3c04054b · $0.0117 · run 46548557390 · sha 4a0090a0761b99723449bec9b2cff39c00ca866e

@agentiknet

Copy link
Copy Markdown
Contributor Author

Fixed tunnels -> ap-tunnels in the app-ui family. mcp-apps is a family id added by #3045 (same lot, part 2): it resolves once that PR lands, so I kept it.

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Incremental review of commit 0711b6f9 (4a0090a07...HEAD). It changes one string in packages/runtime/src/tool-docs/app.ts:311: seeAlso "tunnels" → "ap-tunnels".

This is the correct fix for a dangling cross-link I flagged in the prior pass: tunnels is neither a tool-family id nor a skill, while ap-tunnels is a real skill folder (packages/skill-pack-agentproto/skills/ap-tunnels), so the reference now resolves. Style matches the rest of the family docs, which use skill ids like ap-accounts/ap-models-auth in seeAlso.

Verified:

  • pnpm --filter @agentproto/skill-pack-agentproto test — 46 tests pass.
  • The increment touches only a documentation string; no schema drift, no generated-artifact change.

Changeset

node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto. node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime." The existing .changeset/tool-docs-app-families.md covers it; no additional changeset owed.

Findings

  • low — packages/runtime/src/tool-docs/app.ts:46: seeAlso still lists "mcp-apps", which resolves to neither a tool-family id nor a skill (mcp-apps is no family in tool-docs/ and no skill under skills/; the relevant skill would be ap-import-mcp, the family app-ui). Dangling cross-link, unvalidated by tests. Cosmetic, carried over from the prior pass.
  • low — packages/runtime/src/tool-docs/app.ts:311: this increment rewrote "tunnels" → "ap-tunnels" on this line but left "mcp-apps" here, which is likewise unresolved. Same cosmetic dangling-ref class.

Verdict

Approve. The increment correctly resolves the tunnels cross-link and all checks pass. The remaining mcp-apps references are cosmetic and unvalidated; worth swapping to ap-import-mcp/app-ui in a follow-up but not blocking.


🤖 @agentproto-bot — review · session sess_78f0f3ba (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a88ee676 · $0.0123 · run 46551736034 · sha 0711b6f96a4c7172ed2b3d540dd9caf0e3b6c2e5

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Incremental review of the newest commit (563151673, "docs(skills): seeAlso resolves to shipped skills"), on top of the prior pass through the ap-tunnels fix.

This commit changes two seeAlso entries in packages/runtime/src/tool-docs/app.ts:

  • line 46 (appToolDoc): "mcp-apps" → "ap-import-mcp"
  • line 311 (appUiToolDoc): "mcp-apps" → "ap-import-mcp"

This directly resolves the two low-severity dangling-cross-link findings from the prior pass. mcp-apps is neither a tool-family id nor a skill; ap-import-mcp is a real skill folder (packages/skill-pack-agentproto/skills/ap-import-mcp).

Every seeAlso reference in the file now resolves:

  • app, app-data, app-ui, approvals — tool-family ids
  • ap-apps, ap-import-mcp, ap-tunnels — skill ids

Verified:

  • pnpm --filter @agentproto/skill-pack-agentproto test — 46 tests pass.
  • The increment touches only documentation strings; no schema drift, no generated-artifact change.

Changeset

node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto (the latter is private, hence exempt).
node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime." The existing .changeset/tool-docs-app-families.md covers it; no additional changeset owed.

Findings

None. The prior mcp-apps dangling references are fixed and all cross-links resolve.

Verdict

Approve.


🤖 @agentproto-bot — review · session sess_8ae7cfa9 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_8e693874 · $0.0088 · run 46554062753 · sha 56315167345c64d0cc647ebaa9b17919247e12ae

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Incremental review: the increment since the previously reviewed commit is empty. HEAD (55fd3fe58, "docs(skills): seeAlso resolves to shipped skills") carries the identical content to the reviewed 563151673 — the SHA changed only by rebase onto the current base. The PR as a whole introduces the app tool-family docs (packages/runtime/src/tool-docs/app.ts), registers them in tool-docs/index.ts, removes the app tools from the undocumented legacy list, and drops the app verb from cli-verbs.json in favour of the family doc.

All seeAlso cross-links resolve:

  • app, app-data, app-ui, approvals — tool-family ids
  • ap-apps, ap-import-mcp, ap-tunnels — real skill folders under packages/skill-pack-agentproto/skills/

Changeset

node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto (the latter private, hence exempt).
node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime". The existing .changeset/tool-docs-app-families.md (patch) covers it; no additional changeset owed.

Findings

None. No new commits since the prior approval; all previously flagged dangling cross-links remain fixed.

Verdict

Approve.


🤖 @agentproto-bot — review · session sess_c577d2dd (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a76f4a89 · $0.0061 · run 46558207392 · sha 55fd3fe583c6934110040f651aaea32385c7b8e4

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Incremental review. The only commit since the previously reviewed sha is 060ca53ed ("docs(skills): seeAlso resolves to shipped skills"), a rebase of the already-reviewed content — the diff against origin/main remains the same five files: the new packages/runtime/src/tool-docs/app.ts family docs, their registration in tool-docs/index.ts, the removal of the app tools from legacy.ts, the app verb drop from skill-pack-agentproto/cli-verbs.json, and the changeset.

All seeAlso cross-links resolve:

  • tool-family ids: app, app-data, app-ui, approvals
  • shipped skill folders: ap-apps, ap-import-mcp, ap-tunnels (all present under packages/skill-pack-agentproto/skills/)

node scripts/check-tool-docs-legacy.mjs passes (no name added to the legacy list), matching the shrink-only rule.

Changeset

node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto (the latter private, hence exempt).
node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime". The existing .changeset/tool-docs-app-families.md (patch) covers it; no additional changeset owed.

Findings

None. The increment is a content-identical rebase; earlier cross-link fixes hold.

Verdict

Approve.


🤖 @agentproto-bot — review · session sess_8565c976 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_2ed1bb7c · $0.0083 · run 46559914598 · sha 060ca53ed5779b3142c2e3c1061f3c22ace99883

@agentiknet
agentiknet merged commit 70dbfd3 into main Dec 1, 2026
19 checks passed
@agentiknet
agentiknet deleted the feat/tool-docs-app branch December 1, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant