Research first: Which .claude/rules/*.md files lack paths scoping? Which skills are candidates for disable-model-invocation? Can domain-router subagents with skills field replace always-on orchestrator skill loading? See .planning/research/context-optimization-research.md
Reduce session-start context load via rules path-scoping and disable-model-invocation
Session context is at 50% before any work begins. Root causes identified: (1) All custom agent descriptions load at session start (~5k tokens for 50+ agents) with no lazy loading mechanism. (2) CLAUDE.md files load unconditionally and in full (~18k tokens for memory files). (3) All plugin skills load descriptions at startup. Research confirmed these optimization primitives exist but are unused: 'paths' frontmatter in .claude/rules/*.md loads rule only when working with matching file patterns; 'd
Reduce session-start context load via rules path-scoping and disable-model-invocation by tools-only · 81dedde
npx skillmds@latest add tools-only/reduce-session-start-context-load-via-rules-path-scoping-and File contents
---name: reduce-session-start-context-load-via-rules-path-scoping-anddescription: Session context is at 50% before any work begins. Root causes identified: (1) All custom agent descriptions load at session start (~5k tokens for 50+ agents) with no lazy loading mechanism. (2) CLAUDE.md files load unconditionally and in full (~18k tokens for memory files). (3) All plugin skills load descriptions at startup. Research confirmed these optimization primitives exist but are unused: 'paths' frontmatter in .claude/rules/*.md loads rule only when working with matching file patterns; 'd---**Research first**: Which .claude/rules/*.md files lack paths scoping? Which skills are candidates for disable-model-invocation? Can domain-router subagents with skills field replace always-on orchestrator skill loading? See .planning/research/context-optimization-research.md
tools-only/X-Skills/tree/main/automation/scripting/418-p0-reduce-session-start-context-load-via-rules-path-scoping-and_02072592 commit 81dedde490
Frequently asked questions
Run npx skillmds@latest add tools-only/reduce-session-start-context-load-via-rules-path-scoping-and in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Session context is at 50% before any work begins. Root causes identified: (1) All custom agent descriptions load at session start (~5k tokens for 50+ agents) with no lazy loading mechanism. (2) CLAUDE.md files load unconditionally and in full (~18k tokens for memory files). (3) All plugin skills load descriptions at startup. Research confirmed these optimization primitives exist but are unused: 'paths' frontmatter in .claude/rules/*.md loads rule only when working with matching file patterns; 'd It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.