feat(design-review): skill diet (GSTA-134 pilot 3)

Moves the outside voices and the test-framework bootstrap into on-demand
sections (the bootstrap now loads at Phase 8e.5, its only consumer: a
JS-behavior fix that needs a regression test with no known test command),
replaces the UX principles block with a Krug summary, and tightens the
DESIGN_METHODOLOGY prose (design-review is its only consumer). Shared
resolvers TEST_BOOTSTRAP and DESIGN_OUTSIDE_VOICES are untouched.
Claude-host SKILL.md 115,947 -> 84,869 bytes. skill-diet before/after
(Opus, 12 tasks x 3): success 32/36 -> 34/36, median tokens per successful
run 326,662 -> 257,819; blind judge after 9, before 5, tie 1.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-28 00:50:50 +00:00
1 parent c3093dcbe9
commit b0fba22f6c
12 files changed
+441 -662

No files matched your search

+1 -1
View File
@@ -2343,7 +2343,7 @@ describe('DESIGN_OUTSIDE_VOICES resolver', () => {
});
test('design-review contains outside voices section', () => {
const content = fs.readFileSync(path.join(ROOT, 'design-review', 'SKILL.md'), 'utf-8');
const content = readSkillUnion('design-review');
expect(content).toContain('Design Outside Voices');
expect(content).toContain('source audit');
});
+1 -1
View File
@@ -330,7 +330,7 @@ const GENERATED_WITH_GUIDANCE = [
// CSO's private startup does not import the shared synchronous-dispatch
// guidance and its bounded worker policy is specified in its own skeleton.
'design-consultation/sections/proposal-and-preview.md',
'design-review/SKILL.md',
'design-review/sections/outside-voices.md',
'document-release/sections/release-body.md',
'office-hours/sections/second-opinion.md',
'office-hours/sections/design-and-handoff.md',
+2 -2
View File
@@ -1210,8 +1210,8 @@ describe('Test Bootstrap ({{TEST_BOOTSTRAP}}) integration', () => {
expect(content).toContain('Step 4');
});
test('TEST_BOOTSTRAP appears in design-review/SKILL.md', () => {
const content = fs.readFileSync(path.join(ROOT, 'design-review', 'SKILL.md'), 'utf-8');
test('TEST_BOOTSTRAP appears in design-review/sections/test-bootstrap.md', () => {
const content = fs.readFileSync(path.join(ROOT, 'design-review', 'sections', 'test-bootstrap.md'), 'utf-8');
expect(content).toContain('Test Framework Bootstrap');
});
+1 -1
View File
@@ -142,7 +142,7 @@ describe('selectTests', () => {
['plan-eng-review/sections/review-sections.md', 'TEST_COVERAGE_AUDIT_PLAN'],
['ship/sections/tests.md', 'TEST_BOOTSTRAP'],
['ship/sections/test-coverage.md', 'TEST_COVERAGE_AUDIT_SHIP'],
['design-review/SKILL.md', 'TEST_BOOTSTRAP'],
['design-review/sections/test-bootstrap.md', 'TEST_BOOTSTRAP'],
];
for (const [output, token] of consumers) {
expect(fs.readFileSync(path.join(ROOT, `${output}.tmpl`), 'utf8')).toContain(`{{${token}}}`);