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
- Claude Code Configs — A comprehensive collection of production-grade Claude Code configurations, specialized agents, and automation 624 ★
- Adaptive Cards MCP — AI-powered Adaptive Card MCP server — 9 tools for generating, validating, optimizing cards for Teams, Outlook 26 ★
- Development Analyst — You are an expert in analyzing development sessions and optimizing AI-human collaboration 2 ★
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
ShriForgeAISkill
Open-source AI Agent Skill for planning, designing, building, auditing, optimizing, and shipping production-re
AI Crawler Radar Skill
Operational playbook for auditing and optimizing websites for AI search engines, training scrapers, and autono
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
Multica
Make humans and AI agents work as one team — open-source and self-hostable.
JeecgBoot
【低代码v2.0,一句话即可生成整个系统】企业级AI低代码平台,一键生成前后端代码甚至整个系统。 AI Skills 一句话画流程、设计表单、生成报表、大屏。内置 AI应用平台涵盖:AI聊天、知识库、流程编排、MCP插件
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