From mk
Loads agent definitions on-demand to reduce token consumption in multi-agent workflows. Useful for managing context budget.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:lazy-agent-loaderWhen to use
Auto-invoked when managing agent context budget — loads agent definitions on-demand. Not user-callable directly.
This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Priority:** HIGH - Load agents on-demand
Priority: HIGH - Load agents on-demand
Reduce token usage by:
agent_index[15]{id,category,specialty,keywords}:
orchestrator,infra,Task routing/complexity classification,route/classify/assign/complexity
planner,planning,Two-lens planning/Gate 1,plan/feature/design/scope/requirements
architect,planning,ADRs/system design,architecture/schema/api/infra/design/migration
developer,dev,Implementation (TDD),implement/build/code/feature/fix/refactor
tester,quality,TDD enforcement/test writing,test/testing/coverage/qa/jest/vitest/pytest
reviewer,quality,5-dimension code review/Gate 2,review/audit/quality/standards
security,quality,Security audit/BLOCK verdicts,security/vulnerability/audit/owasp/injection
shipper,ops,Deploy pipeline/PR creation,ship/deploy/release/commit/pr/ci
documenter,ops,Living documentation and changelogs,documentation:changelog:readme
analyst,infra,Cost tracking/pattern extraction/memory,cost/budget/patterns/metrics/usage/memory
researcher,planning,Technology research/library evaluation,research/compare/evaluate/library
brainstormer,planning,Solution brainstorming/trade-offs,brainstorm/alternatives/tradeoff/explore
journal-writer,ops,Failure documentation/lessons,failure/incident/postmortem/lesson
git-manager,ops,Git operations/commit/push/PR,git/commit/push/pull/branch/pr/merge
ui-ux-designer,dev,UI/UX design/frontend patterns,design/ui/ux/css/layout/accessibility/responsive
1. Load this index file (agent_index)
2. DO NOT load individual agent files
3. Use index for agent detection scoring
1. Agent scores >=80 (PRIMARY) → Load full definition
2. Agent scores 50-79 (SECONDARY) → Load summary only
3. Agent scores <50 (OPTIONAL) → Don't load
.claude/agents/[agent-name].md
Step 1: Score agents using agent_index keywords
Step 2: Identify PRIMARY agent(s) with score >=80
Step 3: Load ONLY PRIMARY agent full definitions
Step 4: For SECONDARY agents, use summary from index
| Reference | When to load | Content |
|---|---|---|
| loading-details.md | When loading specific agents | Commands, token savings, cache strategy, examples |
Note: This skill is automatically used by agent-detector for optimized loading.
npx claudepluginhub ngocsangyem/meowkit --plugin mkLoad agent definitions on-demand to reduce context usage. Only loads full agent when needed.
Lazy-loads specialized agents on-demand via search_agents and get_agent tools, reducing context window usage by ~95%.
Writes and configures custom .md agent definitions in .claude/agents/, with YAML frontmatter for model, allowed-tools, context-forking, and system prompts. Useful when authoring a specialized agent or constraining tool access.