docs/adr/0011-skill-surface-budget-module.md
Every installed gsd-* skill costs eager system-prompt tokens: runtimes (Claude Code, opencode, and others) enumerate all skill descriptions in <available_skills> on every turn. With 66 skills and 33 agents, GSD alone consumes roughly 60% of the default 1%-of-context skill-listing budget, causing descriptions to drop when users stack multiple plugins (#3408).
The root problem is an absence of a profile/surface seam: the installer wrote every skill unconditionally, and no runtime-side control existed for enabling or disabling a cohesive group of skills without a full reinstall.
get-shit-done/bin/lib/install-profiles.cjs as the single owner for which skills and agents are written to runtime config directories.core (six skills covering the main loop), standard (core + phase management and workspace skills), and full (all skills — the previous default).requires: dependency graph extracted from skill frontmatter, so partial installs never break cross-skill dependencies..gsd-profile marker file in each runtime config directory; gsd update reads the marker to honor the profile on re-install.--profile=core,audit resolves to union(closure(core), closure(audit)).--minimal and --core-only map to --profile=core; MINIMAL_SKILL_ALLOWLIST, isMinimalMode, shouldInstallSkill, and stageSkillsForMode remain exported for existing callers.scripts/lint-skill-deps.cjs, wired into pretest) that verifies every skill's requires: entries resolve against real skill stems — prevents the profile closure from silently over-installing or breaking.The Phase 2 decision, previously listed as an open question, is recorded here as an amendment to this ADR.
/gsd:surface slash command with the following sub-commands:
list — show all clusters and their enabled/disabled status for the active runtimestatus — show the active profile, effective skill count, and any dropped-description warningsprofile <name> — switch the active profile and re-stage skills/agents for the current runtimedisable <cluster> — mark a cluster disabled; re-stage to remove its skills from the runtime config direnable <cluster> — mark a cluster enabled; re-stage to add its skills backreset — clear surface state and re-apply the active profile from .gsd-profileget-shit-done/bin/lib/surface.cjs, consuming stageSkillsForProfile and stageAgentsForProfile from the Phase 1 module without duplicating staging logic.<runtimeConfigDir>/.gsd-surface.json, independent from .gsd-profile. The profile marker owns install-time identity; the surface JSON owns session-scope cluster toggles.get-shit-done/bin/lib/clusters.cjs — a separate module so the surface engine and future SDK callers can import cluster definitions without loading the full profile module.core_loop, audit_review, milestone, research_ideate, workspace_state, docs, ui, ai_eval, ns_meta, utility. Membership may overlap; every installed skill stem must appear in at least one cluster (enforced by tests/surface-clusters.test.cjs)./gsd:surface command is a unilateral GSD-side workaround that does not depend on those platform changes.Phase 1 artifacts landed on feat/3408-skills-description-dropped-due-to-size:
get-shit-done/bin/lib/install-profiles.cjs — PROFILES map, resolveProfile, loadSkillsManifest, stageSkillsForProfile, stageAgentsForProfile, readActiveProfile, writeActiveProfile, mostRestrictiveProfile, resolveEffectiveProfilerequires: frontmatter added to 64 skills in commands/gsd/*.mdscripts/lint-skill-deps.cjs — CI gate for requires: integrity, wired into pretestbin/install.js — --profile=<name> flag (composable); --minimal/--core-only as aliases; .gsd-profile marker write on install; gsd update re-reads markertests/install-profiles-manifest.test.cjs, tests/install-profiles-marker.test.cjs, tests/install-profiles-resolve.test.cjs, tests/install-profiles-stage.test.cjs, tests/lint-skill-deps.test.cjsPhase 2 shipped on the same branch:
commands/gsd/surface.md — /gsd:surface slash command runbook (sub-commands: list, status, profile <name>, disable <cluster>, enable <cluster>, reset)get-shit-done/bin/lib/surface.cjs — runtime engine (readSurface, writeSurface, resolveSurface, applySurface, listSurface); reuses stageSkillsForProfile / stageAgentsForProfile from Phase 1get-shit-done/bin/lib/clusters.cjs — 10-cluster taxonomy covering all installed skill stemstests/surface-state.test.cjs, tests/surface-clusters.test.cjs, tests/surface-resolve.test.cjs, tests/surface-apply.test.cjs, tests/surface-list.test.cjs<runtimeConfigDir>/.gsd-surface.json (independent from .gsd-profile)requires: field should also be consumed by /gsd:help to annotate dependency chains in help output (follow-up).--profile=core and expand incrementally via /gsd:surface enable <cluster> without a full reinstall.requires: closure ensures partial installs never silently break skill cross-references.requires: dependencies to participate in profile resolution; the lint gate enforces this at CI time.CONTEXT.md gains a canonical Skill Surface Budget Module entry; future architecture reviews should treat out-of-seam skill staging as drift.clusters.cjs are the authoritative taxonomy for runtime surface control; additions must be reflected there and in tests.#3408docs/research/2026-05-12-skill-surface-budget.md (§3.2 cluster taxonomy)0008-installer-migration-module.md0009-shell-command-projection-module.md0010-file-operation-engine-module.md