Skip to content
Back to skills

Context Minimization

ASecurity

Use continuously during long tasks. Teaches how to read less, output less, and keep the LLM context window lean and fast.

  • 6 stars
  • 0 votes
  • 1 copy
  • 5 views
  • Added May 29, 2026
ai-agentsgit

Works with

  • terminal

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill context-minimization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Minimization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Minimization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-context-minimization/badge)](https://www.skillsdirectory.com/skills/yeaight7-context-minimization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: context-minimization
description: "Use continuously during long tasks. Teaches how to read less, output less, and keep the LLM context window lean and fast."
---

# Context Minimization

Your context window is the most precious resource. Large contexts make you slow, expensive, and prone to hallucinations.

## The Rules of Lean Context

1. **Surgical Reads**: Never use `cat` or `read_file` on a 2,000-line file without `start_line` and `end_line`. Always use `grep` first to find the relevant line numbers.
2. **Silent Commands**: Always append `--silent`, `-q`, or redirect stderr/stdout to `/dev/null` for commands that produce massive logs (like `npm install` or verbose builds) unless you specifically need to debug them.
3. **Pagination**: Disable pagers for all terminal tools. E.g., `git --no-pager log`.
4. **Terse Responses**: Do not explain what a tool does before calling it, unless safety requires it. Do not repeat the user's instructions back to them verbatim.
5. **Close Files**: Once you are done looking at a file, stop referring to it. 
6. **Parallel Ops**: If you need to search 3 files, run 3 parallel grep/read calls in a single turn instead of sequentially. This saves turns, which saves context repetition.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…