diff --git a/.agents/skills/gstack/SKILL.md b/.agents/skills/gstack/SKILL.md index 93128866..e7c19582 100644 --- a/.agents/skills/gstack/SKILL.md +++ b/.agents/skills/gstack/SKILL.md @@ -13,6 +13,7 @@ description: | - Reviewing a plan (strategy) → suggest /plan-ceo-review - Reviewing a plan (architecture) → suggest /plan-eng-review - Reviewing a plan (design) → suggest /plan-design-review + - Auto-reviewing a plan (all reviews at once) → suggest /autoplan - Creating a design system → suggest /design-consultation - Debugging errors → suggest /investigate - Testing the app → suggest /qa diff --git a/SKILL.md b/SKILL.md index d8e51bd1..ee84d736 100644 --- a/SKILL.md +++ b/SKILL.md @@ -14,6 +14,7 @@ description: | - Reviewing a plan (strategy) → suggest /plan-ceo-review - Reviewing a plan (architecture) → suggest /plan-eng-review - Reviewing a plan (design) → suggest /plan-design-review + - Auto-reviewing a plan (all reviews at once) → suggest /autoplan - Creating a design system → suggest /design-consultation - Debugging errors → suggest /investigate - Testing the app → suggest /qa diff --git a/SKILL.md.tmpl b/SKILL.md.tmpl index 0c985965..0c7105fb 100644 --- a/SKILL.md.tmpl +++ b/SKILL.md.tmpl @@ -14,6 +14,7 @@ description: | - Reviewing a plan (strategy) → suggest /plan-ceo-review - Reviewing a plan (architecture) → suggest /plan-eng-review - Reviewing a plan (design) → suggest /plan-design-review + - Auto-reviewing a plan (all reviews at once) → suggest /autoplan - Creating a design system → suggest /design-consultation - Debugging errors → suggest /investigate - Testing the app → suggest /qa diff --git a/test/helpers/touchfiles.ts b/test/helpers/touchfiles.ts index 8fe2085a..346ed890 100644 --- a/test/helpers/touchfiles.ts +++ b/test/helpers/touchfiles.ts @@ -116,6 +116,9 @@ export const E2E_TOUCHFILES: Record = { 'benchmark-workflow': ['benchmark/**', 'browse/src/**'], 'setup-deploy-workflow': ['setup-deploy/**', 'scripts/gen-skill-docs.ts'], + // Autoplan + 'autoplan-core': ['autoplan/**', 'plan-ceo-review/**', 'plan-eng-review/**', 'plan-design-review/**'], + // Skill routing — journey-stage tests (depend on ALL skill descriptions) 'journey-ideation': ['*/SKILL.md.tmpl', 'SKILL.md.tmpl', 'scripts/gen-skill-docs.ts'], 'journey-plan-eng': ['*/SKILL.md.tmpl', 'SKILL.md.tmpl', 'scripts/gen-skill-docs.ts'], diff --git a/test/skill-validation.test.ts b/test/skill-validation.test.ts index 03640ccb..a8627094 100644 --- a/test/skill-validation.test.ts +++ b/test/skill-validation.test.ts @@ -99,6 +99,20 @@ describe('SKILL.md command validation', () => { const result = validateSkill(skill); expect(result.snapshotFlagErrors).toHaveLength(0); }); + + test('all $B commands in autoplan/SKILL.md are valid browse commands', () => { + const skill = path.join(ROOT, 'autoplan', 'SKILL.md'); + if (!fs.existsSync(skill)) return; + const result = validateSkill(skill); + expect(result.invalid).toHaveLength(0); + }); + + test('all snapshot flags in autoplan/SKILL.md are valid', () => { + const skill = path.join(ROOT, 'autoplan', 'SKILL.md'); + if (!fs.existsSync(skill)) return; + const result = validateSkill(skill); + expect(result.snapshotFlagErrors).toHaveLength(0); + }); }); describe('Command registry consistency', () => { diff --git a/test/touchfiles.test.ts b/test/touchfiles.test.ts index 631c4f62..0e24b124 100644 --- a/test/touchfiles.test.ts +++ b/test/touchfiles.test.ts @@ -79,8 +79,9 @@ describe('selectTests', () => { expect(result.selected).toContain('plan-ceo-review'); expect(result.selected).toContain('plan-ceo-review-selective'); expect(result.selected).toContain('plan-ceo-review-benefits'); - expect(result.selected.length).toBe(3); - expect(result.skipped.length).toBe(Object.keys(E2E_TOUCHFILES).length - 3); + expect(result.selected).toContain('autoplan-core'); + expect(result.selected.length).toBe(4); + expect(result.skipped.length).toBe(Object.keys(E2E_TOUCHFILES).length - 4); }); test('global touchfile triggers ALL tests', () => {