Problem
~2,300 tokens of boilerplate are duplicated near-verbatim across 8-9 command files: the Trust-boundary forbidden-action list, the Output-language policy, the pre-flight validation bash, and the reviewer language hint. Slash commands have no runtime include mechanism, so this is primarily a maintainability / sync-bug problem (the jq filter already needs a CI check to stay in sync), not a pure runtime-token win.
Approach
Author the shared blocks once as fragments and add a build/generate step that inlines them into each commands/*.md at author time. Runtime files stay self-contained (no extra Read per invocation); the duplication-induced sync bugs disappear.
Scope
Acceptance criteria
Depends on
#3, #4, #5, #6 (compress first, then extract the stabilized shared blocks). Architectural — lowest priority in the milestone.
Problem
~2,300 tokens of boilerplate are duplicated near-verbatim across 8-9 command files: the Trust-boundary forbidden-action list, the Output-language policy, the pre-flight validation bash, and the reviewer language hint. Slash commands have no runtime include mechanism, so this is primarily a maintainability / sync-bug problem (the jq filter already needs a CI check to stay in sync), not a pure runtime-token win.
Approach
Author the shared blocks once as fragments and add a build/generate step that inlines them into each
commands/*.mdat author time. Runtime files stay self-contained (no extra Read per invocation); the duplication-induced sync bugs disappear.Scope
fragments/+ a generator (script) that composes command files from a template + fragments.Acceptance criteria
git diffafter regenerate is empty on a clean tree.Depends on
#3, #4, #5, #6 (compress first, then extract the stabilized shared blocks). Architectural — lowest priority in the milestone.