Agent Slimmer — AI skill for Claude Code
An AI coding agent skill for optimizing AGENTS.md files.
How to install Agent Slimmer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open mheadd/agent-slimmer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Slimmer does
An AI coding agent skill for optimizing AGENTS.md files.
Alternatives in AI
- Graphify — AI coding assistant skill (Claude Code, Codex, OpenCode, OpenClaw, Factory Droid, Trae) 20.9k ★
- Kilocode — GitHub Repo stars Open Source AI coding assistant for planning, building, and fixing code Open source AI assis 17k ★
- Context Engineering Intro — GitHub Repo stars Context engineering - the new way of AI coding assistants Context engineering guide 12.8k ★
README
Agent Slimmer
An AI coding agent skill for optimizing `AGENTS.md` files (and similar repository-level context files like `CLAUDE.md`, `COPILOT.md`, etc.).
Why
Research shows that repository-level context files measurably change AI coding agent behavior — but more content isn't better. Overly comprehensive files increase inference cost and can *reduce* task success rates. The most effective context files are short, specific, and contain only instructions that change agent behavior in ways the project actually requires.
Agent Slimmer encapsulates findings from two peer-reviewed studies into a reusable skill that evaluates and rewrites context files to their minimum effective form.
Research basis
- Lulla et al. (2026) — On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents (arXiv): Focused context files reduced agent completion time by ~28% and output tokens by ~17%.
- Gloaguen et al. (2026) — Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents? (arXiv): LLM-generated context files reduced task success by 3% and increased cost by 20%+. Unnecessary instructions measurably degrade performance.
Usage
Point your AI coding agent at the skill file and provide an `AGENTS.md` (or equivalent) to optimize:
Use the skill in agent-slimmer/slim-agents.md to optimize my AGENTS.md file.
The skill will evaluate the file against research-backed criteria, flag content that should be removed or revised, and produce an optimized version.
What the skill does
- Identifies and removes codebase descriptions the agent could discover on its own (directory trees, component summaries, architecture overviews)
- Identifies and removes content that duplicates existing repository documentation (README, CONTRIBUTING, inline docs)
- Preserves and sharpens behavioral instructions — specific tools, workflows, and constraints
Related Skills
Claude Code Configs
A comprehensive collection of production-grade Claude Code configurations, specialized agents, and automation
Adaptive Cards MCP
AI-powered Adaptive Card MCP server — 9 tools for generating, validating, optimizing cards for Teams, Outlook,
Development Analyst
You are an expert in analyzing development sessions and optimizing AI-human collaboration. Your task is to ref
ShriForgeAISkill
Open-source AI Agent Skill for planning, designing, building, auditing, optimizing, and shipping production-re
AI Guide
程序员鱼皮的 AI 资源大全 + Vibe Coding 零基础教程,分享 OpenClaw 保姆级教程、大模型玩法(DeepSeek / GPT / Gemini / Claude)、最新 AI 资讯、Prompt 提
AGENTS.md - Skill Seekers
Concise reference for AI coding agents. Skill Seekers is a Python CLI tool (v3.3.0) that converts documentatio
Related Agents
Framework Senior Engineer
Implements framework components from a design. Use for building, coding, refactoring, and optimizing framework
Activity Log Expert
Use this agent proactively when working with PostHog's comprehensive activity logging system, including implem
Startup Metrics Framework
Comprehensive guide to tracking, calculating, and optimizing key performance metrics for different s... - wsho