diff --git a/v3/@claude-flow/cli/__tests__/init-default-skills-shipped-commands-4539.test.ts b/v3/@claude-flow/cli/__tests__/init-default-skills-shipped-commands-4539.test.ts index 345e76bd60..93b01af2cc 100644 --- a/v3/@claude-flow/cli/__tests__/init-default-skills-shipped-commands-4539.test.ts +++ b/v3/@claude-flow/cli/__tests__/init-default-skills-shipped-commands-4539.test.ts @@ -54,24 +54,33 @@ function dominantCommand(skill: string): string | null { describe('default init only installs skills whose commands v3 ships (#4539)', () => { it('keeps the skills that depend on unshipped commands out of the default set', () => { - // stream-chain and sparc-methodology are now opt-in, like skills.v3 after #4140. + // stream-chain, sparc-methodology and the three `ruflo github` skills are + // now opt-in through skills.legacy, like skills.v3 after #4140. expect(DEFAULT_INIT_OPTIONS.skills.legacy).toBe(false); - // The GitHub skills still invoke `ruflo github` / `ruflo skill`, which v3 does not ship. - expect(DEFAULT_INIT_OPTIONS.skills.github).toBe(false); + // github-code-review and github-project-management only use hooks, which v3 + // ships, so the group stays in the default set. + expect(DEFAULT_INIT_OPTIONS.skills.github).toBe(true); }); - it('default init does not install stream-chain, sparc-methodology or the GitHub skills', async () => { + it('default init skips the legacy skills but keeps the hook-only GitHub ones', async () => { const options = skillsOnly(DEFAULT_INIT_OPTIONS); const result = await executeInit(options); expect(result.success).toBe(true); const installed = installedSkills(options.targetDir!); expect(installed.length).toBeGreaterThan(0); - expect(installed).not.toContain('stream-chain'); - expect(installed).not.toContain('sparc-methodology'); - expect(installed).not.toContain('github-release-management'); - expect(installed).not.toContain('github-workflow-automation'); - expect(installed).not.toContain('github-multi-repo'); + for (const legacy of [ + 'stream-chain', + 'sparc-methodology', + 'github-release-management', + 'github-workflow-automation', + 'github-multi-repo', + ]) { + expect(installed).not.toContain(legacy); + } + expect(installed).toEqual( + expect.arrayContaining(['github-code-review', 'github-project-management']), + ); }); it('every default-installed skill is built around a command the CLI ships', async () => { @@ -88,7 +97,7 @@ describe('default init only installs skills whose commands v3 ships (#4539)', () expect(missing).toEqual([]); }, 120_000); - it('skills.legacy still installs stream-chain and sparc-methodology when asked', async () => { + it('skills.legacy still installs every legacy skill when asked', async () => { const options = skillsOnly({ ...DEFAULT_INIT_OPTIONS, skills: { ...DEFAULT_INIT_OPTIONS.skills, legacy: true }, @@ -97,7 +106,13 @@ describe('default init only installs skills whose commands v3 ships (#4539)', () expect(result.success).toBe(true); expect(installedSkills(options.targetDir!)).toEqual( - expect.arrayContaining(['stream-chain', 'sparc-methodology']), + expect.arrayContaining([ + 'stream-chain', + 'sparc-methodology', + 'github-multi-repo', + 'github-release-management', + 'github-workflow-automation', + ]), ); }); }); diff --git a/v3/@claude-flow/cli/src/commands/init.ts b/v3/@claude-flow/cli/src/commands/init.ts index 66cae143ac..d9bc4db6e1 100644 --- a/v3/@claude-flow/cli/src/commands/init.ts +++ b/v3/@claude-flow/cli/src/commands/init.ts @@ -1162,7 +1162,7 @@ const wizardCommand: Command = { options: [ { value: 'core', label: 'Core', hint: 'Swarm, memory, SPARC skills', selected: true }, { value: 'agentdb', label: 'AgentDB', hint: 'Vector database skills', selected: true }, - { value: 'github', label: 'GitHub', hint: 'GitHub integration skills', selected: false }, + { value: 'github', label: 'GitHub', hint: 'GitHub integration skills', selected: true }, { value: 'flowNexus', label: 'Flow Nexus', hint: 'Cloud platform skills', selected: false }, { value: 'v3', label: 'V3', hint: 'V3 implementation skills', selected: true }, { value: 'legacy', label: 'Legacy', hint: 'Skills that document commands v3 does not ship', selected: false }, diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts index 3c331a9672..ad426a9a00 100644 --- a/v3/@claude-flow/cli/src/init/executor.ts +++ b/v3/@claude-flow/cli/src/init/executor.ts @@ -58,12 +58,11 @@ const SKILLS_MAP: Record = { 'reasoningbank-agentdb', 'reasoningbank-intelligence', ], + // github-code-review and github-project-management only use hooks, which v3 + // ships; the other three drive `ruflo github`, so they live in skills.legacy. github: [ 'github-code-review', - 'github-multi-repo', 'github-project-management', - 'github-release-management', - 'github-workflow-automation', ], flowNexus: [ 'flow-nexus-neural', @@ -82,9 +81,13 @@ const SKILLS_MAP: Record = { 'v3-swarm-coordination', ], // ADR-128 / #4539: skills that document v2-era verbs v3 does not ship - // (`stream-chain`, `sparc`). Their examples fail with `Unknown command`, so - // they are opt-in like skills.v3 instead of being installed by default. + // (`stream-chain`, `sparc`, `github`). Their examples fail with `Unknown + // command`, so they are opt-in like skills.v3 instead of being installed by + // default. legacy: [ + 'github-multi-repo', + 'github-release-management', + 'github-workflow-automation', 'sparc-methodology', 'stream-chain', ], diff --git a/v3/@claude-flow/cli/src/init/types.ts b/v3/@claude-flow/cli/src/init/types.ts index e143f8c4a3..de690703d1 100644 --- a/v3/@claude-flow/cli/src/init/types.ts +++ b/v3/@claude-flow/cli/src/init/types.ts @@ -386,7 +386,7 @@ export const DEFAULT_INIT_OPTIONS: InitOptions = { skills: { core: true, agentdb: true, - github: false, // #4539: the GitHub skills run `ruflo github`, which v3 does not ship + github: true, // #4539: only the hook-only GitHub skills remain; the rest are skills.legacy flowNexus: false, browser: true, v3: false, // ADR-128: opt-in like agents.v3; use --full or `init skills --v3`