Skip to content

chore(skills): reduce token cost of skill descriptions and bodies - #227

Merged
stijnvanhulle merged 1 commit into
claude/eloquent-maxwell-1eg8x2from
chore/reduce-skill-token-cost
Sep 18, 2026
Merged

stijnvanhulle merged 1 commit into
claude/eloquent-maxwell-1eg8x2from
chore/reduce-skill-token-cost

Conversation

@stijnvanhulle

@stijnvanhulle stijnvanhulle commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

🎯 Changes

Stacked on #226 — merge that one first, then this one shows only the diff below.

Cuts the token cost of the two heaviest skills without dropping any instruction. jsdoc's
@example gallery and documentation patterns move to .agents/skills/jsdoc/references/examples.md,
so the default load carries only the tag tables and guidelines (189 → 71 lines), and its
frontmatter description is shorter since it stays in every skill listing whether or not the
skill loads. pr's later steps lose repeated phrasing. Bumps .codex-plugin/plugin.json and
gemini-extension.json (on top of #226's bump) since a skill description changed, and
regenerates GEMINI.md.

🧪 How to test

  • Step 1: cat .agents/skills/jsdoc/SKILL.md and .agents/skills/jsdoc/references/examples.md, confirm every original example and pattern is still present in one file or the other.
  • Step 2: node --experimental-strip-types scripts/agentFiles.ts from a clean checkout.
  • Step 3: Prints agent files in sync (3 command sets) with no stale warning.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I ran the full pre-PR check locally: pnpm format && pnpm lint:fix && pnpm typecheck && pnpm test.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is for the docs (no release).
  • This change is breaking, and the body says what breaks and what a user has to do.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

@codesandbox

codesandbox Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web Editor • VS Code • Insiders

Open Preview

@github-actions github-actions Bot added the chore label Sep 18, 2026
@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

⏭️ Comment Ratio: Skipped

Only 0 lines added, below the minimum of 50 for this check to apply.

Code Comments
Added 0 0
Removed 0 0
Net 0 0

Comment ratio 0%  ·  Limit 15%

2 files analyzed
File Language Code Δ Comments Δ Ratio
.codex-plugin/plugin.json JSON 0 0 –
gemini-extension.json JSON 0 0 –

The ratio is the share of comment lines among all lines added. Lines are counted per changed file before and after the change; positive deltas are summed. Comparing 50bd115…ca4a97b, counted with tokei 12.1.2.

@github-actions

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 273 B

ℹ️ View Unchanged
Filename Size
packages/core/dist/index.js 112 B
packages/demo/dist/index.js 161 B

compressed-size-action

@pkg-pr-new

pkg-pr-new Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/stijnvanhulle/template/@stijnvanhulle/template-core@227
npm i https://pkg.pr.new/stijnvanhulle/template/@stijnvanhulle/template-demo@227

commit: ca4a97b

@stijnvanhulle
stijnvanhulle force-pushed the chore/reduce-skill-token-cost branch from 9334201 to b43e12f Compare September 18, 2026 09:59
@stijnvanhulle
stijnvanhulle changed the base branch from main to claude/eloquent-maxwell-1eg8x2 September 18, 2026 09:59
Split the jsdoc skill's example gallery into references/examples.md so the
default load only carries the tag tables and guidelines, shortened its
frontmatter description (always in context in every skill listing), and
tightened repetitive prose in the pr skill's steps without dropping any
instruction.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN
@stijnvanhulle
stijnvanhulle force-pushed the chore/reduce-skill-token-cost branch from b43e12f to ca4a97b Compare September 18, 2026 10:05
@stijnvanhulle
stijnvanhulle merged commit 44eda88 into claude/eloquent-maxwell-1eg8x2 Sep 18, 2026
10 checks passed
@stijnvanhulle
stijnvanhulle deleted the chore/reduce-skill-token-cost branch September 18, 2026 10:28
stijnvanhulle added a commit that referenced this pull request Sep 18, 2026
…eviewer (#226)

* feat(claude,cursor): merge deslop and ponytail into one trim skill

Runs the reuse-first ladder and the AI style-tell checklist in one pass,
reports every finding, and applies only what the user confirms through
the native picker (or a lettered list where none exists), matching how
ponytail already asked before editing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

* fix(claude,cursor): rename the merged slop/over-engineering skill to deslop

Keep the existing deslop name instead of introducing trim, since it already
covers the code-slop half of the merge and needs no new name to learn.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

* chore: ignore local agent worktree scratch checkouts

.claude/worktrees/ holds a background agent's isolated git worktree,
a local scratch checkout that never belongs in version control.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

* feat(claude,cursor): run humanizer as deslop's third pass over prose

Fold prose review into deslop instead of pointing to humanizer as a
separate step, so one /deslop run covers over-engineering, code style
tells, and AI writing tells in any changed README, doc, or comment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

* feat(claude,cursor): fold deslop, jsdoc, humanizer, and documentation into code-reviewer

Have code-reviewer check for over-engineering, code and prose AI tells,
and JSDoc conventions in one pass, ordered substance before style before
prose, then ask which findings to hand off for fixing. It stays
read-only: it reports by these skills' criteria rather than running
their apply steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

* feat(claude,cursor): always reach for AskUserQuestion when info is needed

Broaden the user-questions rule past fixed-choice forks: any time a task
is blocked on information only the user can supply, use the native
picker with best-guess options and Other, instead of a plain question.
Secrets and credentials are the one exception and stay plain.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

* chore(skills): reduce token cost of skill descriptions and bodies (#227)

Split the jsdoc skill's example gallery into references/examples.md so the
default load only carries the tag tables and guidelines, shortened its
frontmatter description (always in context in every skill listing), and
tightened repetitive prose in the pr skill's steps without dropping any
instruction.


Claude-Session: https://claude.ai/code/session_01T8T7uGR5JcXVN3S5zi3nHN

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants