From agents-initializer
Evaluates and improves existing CLAUDE.md files and .claude/rules/ in projects. Identifies bloat, contradictions, stale references, and missing scopes — then applies progressive disclosure refactoring using Claude Code's full configuration system.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agents-initializer:improve-claudeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Evaluate existing CLAUDE.md and `.claude/rules/` and apply improvements. ETH Zurich (Feb 2026): bloated files reduce success ~3% and increase cost ~20% — operative rubric is the Deletion Test in `evaluation-criteria.md`.
assets/templates/claude-rule.mdassets/templates/domain-doc.mdassets/templates/hook-config.mdassets/templates/root-claude-md.mdassets/templates/scoped-claude-md.mdreferences/automation-mechanism-comparison.mdreferences/automation-token-impact.mdreferences/claude-rules-system.mdreferences/context-optimization.mdreferences/evaluation-criteria.mdreferences/improvement-card-template.mdreferences/progressive-disclosure-guide.mdreferences/validation-criteria.mdreferences/what-not-to-include.mdEvaluate existing CLAUDE.md and .claude/rules/ and apply improvements. ETH Zurich (Feb 2026): bloated files reduce success ~3% and increase cost ~20% — operative rubric is the Deletion Test in evaluation-criteria.md.
Read ${CLAUDE_SKILL_DIR}/references/evaluation-criteria.md for scoring rubric, bloat/staleness indicators, and Deletion Test.
Delegate to file-evaluator:
Evaluate all CLAUDE.md and
.claude/rules/files at CWD. Check >200 lines; bloat; stale references; contradictions; progressive-disclosure opportunities (content for separate files or path-scoped rules); missing scope-specific files; rules lacking path-scoping; root-CLAUDE.md content applying only to specific file patterns. Return structured assessment with line numbers. Flag automation candidates asHOOK_CANDIDATE,RULE_CANDIDATE,SKILL_CANDIDATE, orSUBAGENT_CANDIDATE.
Sonnet, read-only, isolated context. Wait and parse output.
Delegate to codebase-analyzer:
Analyze the project. Verify tooling commands in CLAUDE.md still work; identify scopes with distinct tooling lacking CLAUDE.md (including library/shared packages with unique constraints — zero-dep, dual exports, conditional imports, server-only markers); detect file patterns with non-obvious conventions lacking path-scoped
.claude/rules/(convention AND domain-critical — privacy/security/compliance); detect new domain areas not covered. Return ONLY actionable findings.
Wait and parse output.
Drop Phases 1–2 references. Read:
${CLAUDE_SKILL_DIR}/references/progressive-disclosure-guide.md — hierarchy decisions${CLAUDE_SKILL_DIR}/references/what-not-to-include.md — exclusion criteria + Deletion TestIdentify Removals and Redundancy Eliminations (Deletion Test; cite evidence). Do not plan refactoring yet.
Drop Phase 3a references. Read:
${CLAUDE_SKILL_DIR}/references/context-optimization.md — token budget guidelines${CLAUDE_SKILL_DIR}/references/claude-rules-system.md — .claude/rules/ conventions and path-scopingPlan Refactoring (scope/rule/domain extraction, consolidation, path-scoping — prefer path-scoped rule over hook for file-pattern formatting unless deterministic enforcement is required) and Additions (only when genuinely missing). Templates under ${CLAUDE_SKILL_DIR}/assets/templates/: root-claude-md.md, scoped-claude-md.md, claude-rule.md, domain-doc.md, skill.md, hook-config.md.
Drop Phase 3b references. Read:
${CLAUDE_SKILL_DIR}/references/automation-mechanism-comparison.md — mechanism selection (always)${CLAUDE_SKILL_DIR}/references/automation-token-impact.md — only when Phase 1 flagged automation candidatesApply the decision flowchart to each flagged candidate; merge into Refactoring. In calibrated mode (score ≥ 7, no hard-limit violations), keep suggestions proportional to confirmed issues.
Read ${CLAUDE_SKILL_DIR}/references/validation-criteria.md and execute its Validation Loop Instructions against every improved or newly created file. Apply the IMPROVE section and CLAUDE.md-specific Structural Checks (path-scoping, minimal always-loaded content). In calibrated high-quality cases, treat unrelated structural churn as failure — revert and choose the smaller fix. Maximum 3 iterations.
Follow ${CLAUDE_SKILL_DIR}/references/improvement-card-template.md exactly.
npx claudepluginhub rodrigorjsf/agent-engineering-toolkit --plugin agents-initializerProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.