Skip to content

The plugin's three skill descriptions fit one short line each - #1859

Merged
zlareb1 merged 3 commits into
mainfrom
fix/short-skill-descriptions
Nov 30, 2026
Merged

zlareb1 merged 3 commits into
mainfrom
fix/short-skill-descriptions

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Related: #1848
Related: #1727

Changelog category (leave one):

  • Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The Claude Code and Codex plugins describe each of their three listed skills (loom-code, loom-memory, loom-mentor) in one line of at most 160 bytes, so every session's first request carries 485 bytes less of them.

Why

  • Failing cases. The first request of a recorded code-mode session carries three skill listing lines of 298, 324 and 389 bytes: 1,011 of the 2,212 bytes the plugin added to it. In the paid runs behind that record no session loaded a skill, and each paid for the lines in its first request and in every later request that re-read it. The client lists every skill of an installed plugin in every mode, so a session in code mode reads the memory skill's line too.
  • Pattern. Each description says when to load the skill and then repeats its body: what the skill settles (loom-memory), the cases the body already excludes (unindexed repositories and uncommitted files in loom-code, duplicate checks in loom-memory, code questions in loom-mentor), and a hint trigger that the plugin's hint line already carries by naming /loom-mentor.
  • Hypothesis, written before the edit. A description that holds only its trigger conditions fits 160 bytes. Predicted: the three descriptions go from 950 bytes to at most 480, and skill-fired stays at 3 of 3 runs in each of the suite's four cases, because the words each case's prompt meets stay ("write to Loom", "which Loom operation serves ... records").
Listed description, bytes main This PR
loom-code 279 160
loom-memory 303 148
loom-mentor 368 157
Total 950 465
The three listing lines as the client writes them 1,011 526
First request in code mode, bytes the plugin adds Recorded main This PR
Prompt pointers off 2,212 2,148 1,663
Prompt pointers on 2,616 2,552 2,067

The totals are computed, not measured on this head. The Claude Code page's figure for a first request with prompt pointers on goes from about 2,400 to about 1,900 bytes the same way: its measured 2,363 bytes less the 485 the three lines lose. The recorded request's skill_listing holds the three lines byte for byte as main's frontmatter renders them (1,011 bytes); main is that request without the 64 bytes #1848 removed, and this PR is main with the three lines rebuilt from this head's frontmatter.

The descriptions, as a session reads them:

  • loom-code: Use before you grep or open files to answer how Loom-indexed code works, where it is defined, who calls it, what a change touches. NOT for LOCAL-FIRST sessions.
  • loom-memory: Loom memory, not code. Use before you write to Loom, when the user states, decides or corrects a fact to keep, and at the end of a substantial task.
  • loom-mentor: Use when unsure which Loom operation serves documents, issue history, queued work or typed records, or what Loom can do. A hint naming its op needs no skill.

Scope and risk

  • Touches: the frontmatter of three SKILL.md files, their generated Codex copies, the served copies of loom-code and loom-memory with their manifest, the listing budget in tests/skills.test.mjs, two documentation pages and both plugin manifests.
  • Leaves alone: every skill body and reference.md, the four skills a user starts by name, the standalone bundles under skills/ (their descriptions are separate text with their own 200-character cap), hooks, the server's code.
  • A skill could load less often, or where it should not. The eval below is the check. What left each description:
    • loom-code: "glob", "a stack trace", "NOT for unindexed repositories or your own uncommitted files". The body says to grep uncommitted or unindexed files and how to tell an unindexed repository.
    • loom-memory: "Settles durable versus scratchpad, the shape of a write and how to read Loom's answer" and "NOT for duplicate or bisect checks". The body's "Not this skill" paragraph holds the exclusion.
    • loom-mentor: "decisions or procedures", the hint trigger, "whether they use it well" and "NOT for code questions or the shape of a write". The plugin's hint line names /loom-mentor itself, and the body routes code and write questions to the other skills.
  • Served skills. A client that loads the served copies reads the same shorter descriptions: the served names and descriptions go from 572 to 298 characters.
  • Hooks in a user's session: none changed.

Compatibility, rollout and rollback

  • Wire: none. No op, field, setting or hook changes. The served skill manifest carries new digests for two SKILL.md files.
  • Operator steps: none.
  • Rollback: reverting leaves nothing behind.
  • Both plugins are 1.2.120, one patch above main's 1.2.119. No other open pull request carries that version.

Tests

Unit tests were not run locally as a suite; CI runs them.

  • Plugin eval, before and after (claude plugin eval <plugin copy> --trust-plugin --no-publish --ablation none, client 2.1.332, mocked server, one tree copied from main and one from this branch). Only skill-fired is read.

    skill-fired, runs of 3 main This PR
    pr_review_batch (loom-memory) 3 3
    research_note_revisions (loom-memory) 3 3
    sre_alert_investigation (loom-memory) 3 3
    shared-records-and-tasks (loom-mentor) 3 3
    • How the runs differ from the documented command. To keep the spend small, the three loom-memory cases ran with their turn limit lowered from 40 to 4 in the copies, since the skill loads before the first write: all nine runs on this branch, and two of the three per case on main (the third ran at full length). The loom-mentor case ran unchanged. The eval ran from copies outside the repository, because the client refuses a plugin whose git directory registers many linked worktrees.

    • Three prompts that are not in the repository, two runs each on both trees, three turns, with one grader per skill. The suite has no case for loom-code and none that should load nothing.

      Prompt main This PR
      "This repository is indexed by Loom. How does request routing work here: where is the router defined, and who calls it?" loom-code in 2 of 2 loom-code in 2 of 2
      "What can Loom do for me in this project, and am I using it well?" loom-mentor in 2 of 2 loom-mentor in 2 of 2
      "Our nightly build crashes with ... Has this crash been reported already?" loom-mentor in 1 of 2, none in 1 loom-mentor in 1 of 2, none in 1
    • No rate fell, so no word was restored and nothing was re-run. Two or three runs a prompt cannot show a small change in rate.

    • The eval spent 3.67 USD of provider calls in 36 runs.

  • Pinned cases, no model call:

    • node --test tests/skills.test.mjs tests/hooks-doc.test.mjs tests/plugin-modes.test.mjs tests/agent-instructions.test.mjs in integrations/claude-code-plugin: 39 pass. In skills.test.mjs (6 tests) the listing test now fails over 160 bytes a description or 480 for the three, and when a description has no "Use when" or "Use before" clause; the NOT for LOCAL-FIRST sessions check and the mentor's purpose words pass unchanged.
    • Python test bodies called directly through a snippet, with parametrized cases expanded and tests that need fixtures skipped (16), no pytest run, 785 passing: test_served_skills_codegen 23, test_mcp_served_skills 24, test_standalone_skills 24, test_codex_plugin 16, test_refusals_as_results 14 (the mentor frontmatter's "needs no skill" among them), test_loom_code_skill 6, test_skill_eval 17, test_agent_plugin 3, test_plugin_checkout_bytes 4, test_public_copy 5, test_doc_links 281, test_cursor_plugin 5, test_agent_instructions 220, test_plugin_eval_mocks 18, test_published_links 3, test_mcp_listing_budget 122.
  • Bytes: a script reads the skill_listing of the recorded request and the frontmatter of each tree; the tables above are its output.

  • Gates: ruff format --check ., ruff check server extractor sdk/python tests scripts .claude, scripts/gates/function_length_gate.py (at baseline), scripts/gates/check_no_secrets.py, --check of agent_plugin_sync, standalone_skills, served_skills, docs_reference, settings_reference and op_reach_census, node --check and Biome on the changed test, Biome on the three changed JSON files, Prettier on the two changed pages, claude plugin validate integrations/claude-code-plugin --profile directory --strict. scripts/gates/mypy_gate.py reports only server/llm/vertex_auth.py, which lacks an optional dependency's stubs in this environment.

  • Not run or not seen: the other plugin test files, a session against a real server, Codex, and a first request recorded on this head.

Other findings

  • The eval README's --case 'loom-memory/*' and --case 'loom-mentor/*' match no case in client 2.1.332, which filters by case name (--case pr_review_batch).
  • The suite's graders with max: 0 and no min read as "expected 1..0" in this client and cannot pass, on main and here alike, as The plugin's skill listing costs less than half the first-request bytes it did #1727 reported.
  • The suite has no loom-code case and no case that should load no skill.
  • The standalone loom-memory and loom-code descriptions (189 and 196 characters) are now longer than the plugin's.
  • The two merges of main on this branch are signed off; the squash merge drops them.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. Checked by hand: the byte counts against the recorded request, the result of each of the 36 eval runs, the generated copies against the plugin's frontmatter, and the tests and gates listed above.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump), the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py) and the standalone skill bundles (python3 scripts/codegen/standalone_skills.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature.

🤖 Generated with Claude Code


Note

Low Risk
Copy and test-budget changes only; hooks and skill bodies are unchanged, with evals reported as unchanged skill-fire rates.

Overview
Listed skill frontmatter for loom-code, loom-memory, and loom-mentor is shortened so each line states only when to load the skill (≤160 bytes, ≤480 for all three). Detail that used to sit in the description stays in each SKILL.md body.

The same text is synced to the Codex plugin, server served skills (manifest.json digests refreshed), and docs/README skill tables; measured first-request overhead in code mode is updated (~2,400 → ~1,900 bytes with prompt_pack).

Tests in skills.test.mjs now enforce the 160/480 byte caps and require a Use when / Use before clause. Both plugin manifests bump to 1.2.120.

Reviewed by Cursor Bugbot for commit 639a531. Bugbot is set up for automated code reviews on this repo. Configure here.

zlareb1 and others added 2 commits December 1, 2026 03:27
A client writes the description of every listed skill into the first
request of a session, and every later request reads it again, in every
install mode and whether or not the skill loads. The three listed skills
(loom-code, loom-memory, loom-mentor) took 1,011 bytes of a recorded
first request in code mode, where no measured session loaded a skill.

Each description now says when to load its skill and nothing its body
says: 160, 148 and 157 bytes, 465 for the three against 950. The body
of each skill already holds what left: what the skill settles, the
unindexed-repository and uncommitted-file cases, the duplicate-check
exclusion and the routing to the other skills. The pinned phrases stay:
"NOT for LOCAL-FIRST sessions" and "needs no skill".

The plugin test caps a listed description at 160 bytes and the three at
480, and asks each for a "Use when" or "Use before" clause. The Codex
and served copies are regenerated; the standalone bundles keep their own
descriptions. Both plugins are 1.2.120.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 30, 2026 10:02pm UTC
loom-telemetry Ready Ready Preview Nov 30, 2026 10:02pm UTC

Request Review

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@zlareb1
zlareb1 merged commit baa63e0 into main Nov 30, 2026
90 of 92 checks passed
@zlareb1
zlareb1 deleted the fix/short-skill-descriptions branch November 30, 2026 22:09
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