Skip to content

Reduce context overhead: conductor/router skills instead of 254 always-loaded skills #97

Description

@erikpr1994

Problem

Every SKILL.md description loads into the agent's context at session start. PostHog/skills currently ships 254 skills (skills/posthog 157, skills/omnibus 85, skills/team 12). Even namespaced, this is a very large fixed token cost imposed on every session that installs the plugins — it measurably crowds out other tools and the user's own working context before any PostHog work happens.

Proposal

Collapse each cluster behind a single conductor/router skill (e.g. one posthog entry, one omnibus entry) whose description covers "what this can do," and which dispatches to the 100+ underlying procedures as on-demand reference files loaded only when a path is chosen — rather than 157 always-resident peers.

Existing examples of this conductor pattern:

Benefit

Always-loaded surface drops from ~254 descriptions to a handful of routers; full procedures remain, just lazily loaded. Cheaper, less crowding, same coverage.


Evidence (measured)

Claude Code's own per-plugin token accounting (~/.claude/plugins/plugin-catalog-cache.json, Opus-4-7) ranks the packaged posthog plugin (v1.1.32, 84 skills + 3 commands) as the most expensive of all 218 catalog plugins by always-on cost:

A single conductor/router skill (e.g. materialize, improve, impeccable) costs ~170–300 always-on tokens for equivalent coverage, loading its procedures on demand — i.e. ~1–2% of the current standing cost. Full breakdown and a reproduction snippet in the comments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions