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.
npx skills add cboone/agent-harness-plugins --skill trim-textgit clone --depth 1 https://github.com/cboone/agent-harness-pluginsWrote 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.
[](https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-text)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
./branchfor a file literally namedbranch. - --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.
pralone 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, ornone. 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.
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.
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.
- 28d ago Changed · +10 lines f3b42d4951b0
- 1mo ago Changed d35e2c3f971a
- 1mo ago Changed · +7 lines 2b830020f207
- 1mo ago Changed · +21 lines 9be2f27e7b0d
- 1mo ago First seen · 247 lines · 57 tokens per session scan A 47f28f30c1a9
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.
trim-text compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| trim-textcboone/agent-harness-plugins | Skill | 3 | 5d ago | MIT | A | 57 | Claude Code |
| oz-report-prwarpdotdev/warp | Skill | 66k | today | AGPL-3.0 | A | 17 | Claude Code, Codex |
| changelog-automationvibeeval/vibecosystem | Skill | 554 | 19d ago | MIT | A | 23 | Claude Code, Codex |
| commit-trailersvibeeval/vibecosystem | Skill | 554 | 19d ago | MIT | A | 43 | Claude Code, Codex |
| commitvinta/hal-9000 | Skill | 144 | today | MIT | A | 43 | Claude Code, Codex |
| prFlorianBruniaux/claude-code-plugins | Skill | 47 | today | MIT | A | 16 | Claude Code |
| talk-stage2-researchFlorianBruniaux/claude-code-plugins | Skill | 47 | today | MIT | A | 68 | Claude Code |