kw-optimize-agents-project

Installation
SKILL.md

Optimize Agents Project

Refactor the project's AGENTS.md (or CLAUDE.md) to minimize context window usage while preserving all information. Verbose sections move to reference docs loaded on demand. Missing reference infrastructure gets scaffolded with templates.

When to Use

Manual-only. Invoke with /kw-optimize-agents-project. Useful when:

  • AGENTS.md exceeds ~150 lines
  • Auto-generated sections (GSD map-codebase, etc.) bloat the file
  • Starting a new project and wanting a clean structure from the start
  • After a major refactor that changed project architecture

Workflow

1. Analyze current state

Read the project's AGENTS.md (or CLAUDE.md if AGENTS.md doesn't exist). Measure:

  • Total lines and estimated tokens
  • Identify each section and classify as:
Related skills
Installs
5
GitHub Stars
1
First Seen
Apr 5, 2026