aicraftbook/aicraftbook-skills / skills/context-trim
context-trim
FlaggedAudits a coding agent's project instruction file (CLAUDE.md, AGENTS.md, CLAUDE.local.md, .claude/rules, GEMINI.md, copilot-instructions.md or similar) against the repository it describes, then proposes a shorter, accurate version and changes nothing until the user approves. Use when someone asks to audit, clean up, trim, shorten, fix or review their CLAUDE.md or AGENTS.md, says the agent ignores its instructions, or suspects the file is stale, too long or contradicts the code.
| File | Kind | Size |
|---|---|---|
| CHANGELOG.md | markdown | 1.3 KB |
| LICENSE | other | 1.0 KB |
| README.md | markdown | 11.0 KB |
| SKILL.md | skill md | 8.3 KB |
| evals/independent-2026-10-21-v1.0.0.json | config | 67.8 KB |
| evals/independent-2026-10-21.json | config | 66.3 KB |
| evals/results-2026-10-22.json | config | 5.4 KB |
| evals/tasks.json | config | 9.1 KB |
| examples/requests.md | markdown | 1023 B |
| references/checklist.md | markdown | 7.2 KB |
| references/memory-docs.md | markdown | 8.3 KB |
| skill.json | config | 1.3 KB |
CHANGELOG.md
View on GitHub# Changelog
## 1.1.2 (2026-10-22)
- Documentation only: README rewritten as a full reference (install per agent, permissions, examples, troubleshooting, test results). SKILL.md and references unchanged.
## 1.1.1 (2026-10-21)
- Secrets are shown only as a known type prefix (`sk-…`, `ghp_…`, `AKIA…`) or `****`, never the first
characters of the value. The audit says to revoke a secret if the file was ever committed, and no longer
claims a value is in git history without evidence.
- Version-specific Claude Code behaviour (for example which version reads `AGENTS.md` directly) is now
quoted from the Claude Code docs with the date checked, and presented as "per Claude Code docs, checked
2026-10-21", not as a fact about the user's setup. `references/memory-docs.md` adds `.claude/AGENTS.md`.
- Line numbers are copied from Read, summary counts must add up to the Findings table, and the proposed
file may contain only facts kept from the original or verified in Step 3.
- The independent evaluation ran on 1.1.0.
## 1.1.0 (2026-10-21)
- Line counts now come from Read's line numbers and the summary is written last from the findings table. An independent evaluation of 1.0.0 found answers that misstated file lengths.
## 1.0.0 (2026-10-21)
- First version, written for the AI Craftbook pre-launch expansion. Not yet evaluated or released.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |