trim-text

trim-text is a skill for Claude Code from cboone/agent-harness-plugins. It costs 57 tokens per session (5,342 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 5,342 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.05342
Opus 5.5 $0.00023 $0.02137
Sonnet 5.5 $0.00011 $0.01068
Haiku 4.5 $0.00006 $0.00534

Measured 2d ago against content hash 9be2f27e7b0d, 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 2d 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 · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 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 the prose in those files is in scope.
  • 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, 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 no argument and no pasted text, the scope is the open PR for the current branch. If there is none, ask for paths, a reference, or the text.

Profiles

A profile adapts the standard to one kind of text. Read it before classifying anything.

Profile Applies to Reference
pr-and-issue-bodies PR descriptions and issue bodies, published or drafted ./references/pr-and-issue-bodies.md
agent-instructions AGENTS.md, CLAUDE.md, SKILL.md, command files, a skill's or command's reference files, agent definitions, Copilot instruction files, and global agent instructions ./references/agent-instructions.md
none Anything else, such as pasted prose or a commit message body none: the standard below applies on its own

Read the full file on GitHub · 268 lines

Files

What ships with it

3 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. 2d ago Changed · +21 lines 9be2f27e7b0d
  2. 5d 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 (2 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 5,342 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

Other skills, from other repositories

oz-report-pr

Report a pull request back to the Oz platform after creating one.

warpdotdev/warp · 17 tokens

commit

Use when making any git commit. Pass the failure, false claim, or risk the changes fix as the argument; for an addition or a filled gap, pass what it adds — never an invented why.

vinta/hal-9000 · 43 tokens

vellum-github-app-setup

Create and configure a GitHub App so the assistant can push commits, open PRs, and comment under its own bot identity. Use when the user wants the assistant to have its own GitHub identity, or when setting up git push access for the first time.

vellum-ai/vellum-assistant · 61 tokens

git-hooks-manager

Setup and manage git hooks for pre-commit, pre-push automation (lint, test, format).

glincker/claude-code-marketplace · 25 tokens

avatar-contribution-pr

Turn an avatar GitHub issue (from the in-app avatar-editor easter egg) into a merged sprite — validate the art, then either add a new module or replace an existing one, and open a PR that closes the issue. Handles both "Avatar contribution: " (a brand-new sprite) and "Avatar edit: " (a hand-redraw of an existing…

khromov/codebay · 0 tokens

skillshare-app-pr

Take a change to the skillshare desktop app (runkids/skillshare-app) from request to merged PR: worktree branch, implementation, the full CI checks, a screenshot of the running app in the dev container, a Conventional Commit, a PR, and a merge only on green CI. Use for any code, UI, icon or doc change the user wants…

runkids/skillshare-app · 143 tokens