Skip to content

aicraftbook/aicraftbook-skills / skills/context-trim

context-trim

Flagged

Audits 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.

FileKindSize
CHANGELOG.mdmarkdown1.3 KB
LICENSEother1.0 KB
README.mdmarkdown11.0 KB
SKILL.mdskill md8.3 KB
evals/independent-2026-10-21-v1.0.0.jsonconfig67.8 KB
evals/independent-2026-10-21.jsonconfig66.3 KB
evals/results-2026-10-22.jsonconfig5.4 KB
evals/tasks.jsonconfig9.1 KB
examples/requests.mdmarkdown1023 B
references/checklist.mdmarkdown7.2 KB
references/memory-docs.mdmarkdown8.3 KB
skill.jsonconfig1.3 KB

examples/requests.md

View on GitHub
# Example requests

Illustrative. These show the kind of request the skill is for and what a good answer contains.
Test tasks are in `../evals/`.

1. "Claude keeps running the wrong test command. Audit our CLAUDE.md."
   A good answer checks every command against `package.json` and the lockfile, marks `yarn test:unit` as
   Not found with the scripts it did find, proposes `pnpm test`, flags any contradiction it sees, and asks
   for approval before editing anything.
2. "We have an AGENTS.md for Codex and a CLAUDE.md that says 'read AGENTS.md'. Clean this up."
   A good answer explains that Claude Code reads only the `CLAUDE.md` here, proposes `@AGENTS.md` as an
   import, moves the 14-step deploy procedure into a skill, and lists every removed line with a reason.
3. "Is anything in my CLAUDE.md unsafe to commit?"
   A good answer masks a connection string password instead of repeating it, says to revoke and replace
   it, moves personal sandbox notes to `CLAUDE.local.md`, and changes nothing until approved.
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall