trim-text

trim-text is a skill for Claude Code from cboone/agent-harness-plugins. It costs 57 tokens per session (6,648 once invoked), scanned A, original, MIT.

A skill that rewrites selected prose so the main point comes first and the explanation stays brief. It can work on files, pull request or issue bodies, pasted text, and agent instructions.

In plain words
What is it for?
Use it to tighten a pull request, issue, instruction, or text draft; it can also edit matching files and optionally commit those edits.
Why use it?
It reduces long or unfocused writing while preserving the text's purpose, and can preview changes or leave file edits uncommitted.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; runs codex exec; mentions AGENTS.md.

Part of the trim-text plugin — 1 skill shipped together

Good fit Use it to tighten a pull request, issue, instruction, or text draft; it can also edit matching files and optionally commit those edits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cboone/agent-harness-plugins/trim-text
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cboone/agent-harness-plugins --skill trim-text
Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins

Made for: Claude Code.

Or install trim-text, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trim-text

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/trim-text/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-text)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-text"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/trim-text/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trim-text

Your own site · 80×15
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-text"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/trim-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.06648
Opus 5.5 $0.00023 $0.02659
Sonnet 5.5 $0.00011 $0.01330
Haiku 4.5 $0.00006 $0.00665

Measured 28d ago against content hash f3b42d4951b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trim-text scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/trim-text/skills/trim-text/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trim Text

Rewrite the text in scope to be as short as possible while still doing its job.

Options

The user may provide these options inline:

  • paths: A path, glob, or file list. All prose units or code comments in those files are in scope, according to each file's profile. A single named comment is the whole scope, with its file read only for context.
  • branch: Prose and comments changed on the current branch, including on-disk local changes and untracked files. Comments directly above changed code are included. Use ./branch for a file literally named branch.
  • --base : Comparison ref for branch scope only; otherwise use the matching PR's remote base ref, or the verified remote default branch.
  • pr or issue with a number or URL: the body of that PR or issue. pr alone means the open PR for the current branch.
  • text: Text pasted into the request, or a draft handed over by another skill. The rewrite is returned, and nothing is edited.
  • --profile : pr-and-issue-bodies, agent-instructions, code-comments, or none. Overrides the detection in step 1.
  • --dry-run: Report proposed changes without editing, committing, or writing to GitHub: for files and PR or issue bodies, steps 4 to 6 are skipped. Pasted text and drafts still get the full rewrite, since step 4 edits nothing for them.
  • --no-commit: For paths, edit and verify but leave the edits uncommitted. By default the skill commits its edits to files, and it never pushes.
  • --no-codex: For paths, classify the units in this session rather than through a Codex dry run; see "Proposals through Codex".

With --profile code-comments and no scope argument or named comment, use branch scope immediately, without a PR-body choice. For this comment-only scope, use the verified remote default branch unless --base was supplied. Otherwise, with no scope argument and no pasted text, resolve the current branch's matching PR using step 1. With one match, offer its body (default) or branch changes and wait for the scope choice. With no PR, default to branch changes. A failed lookup or multiple matches is not "no PR": ask for an explicit scope or reference. On a detached HEAD or outside a repository, ask for paths, a reference or text.

Read the full file on GitHub · 285 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +10 lines f3b42d4951b0
  2. 1mo ago Changed d35e2c3f971a
  3. 1mo ago Changed · +7 lines 2b830020f207
  4. 1mo ago Changed · +21 lines 9be2f27e7b0d
  5. 1mo ago First seen · 247 lines · 57 tokens per session scan A 47f28f30c1a9

Subscribe to this mod's changes

trim-text is a skill published in the GitHub repository cboone/agent-harness-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 57 tokens to every session and 6,648 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-12.

Related

trim-text compared with skills from other repositories

trim-text next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trim-textcboone/agent-harness-pluginsSkill35d agoMITA57Claude Code
oz-report-prwarpdotdev/warpSkill66ktodayAGPL-3.0A17Claude Code, Codex
changelog-automationvibeeval/vibecosystemSkill55419d agoMITA23Claude Code, Codex
commit-trailersvibeeval/vibecosystemSkill55419d agoMITA43Claude Code, Codex
commitvinta/hal-9000Skill144todayMITA43Claude Code, Codex
prFlorianBruniaux/claude-code-pluginsSkill47todayMITA16Claude Code
talk-stage2-researchFlorianBruniaux/claude-code-pluginsSkill47todayMITA68Claude Code