🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(init): make the v3 implementation skills opt-in, like agents.v3 (#4139)
Muhammad Zubaire620361bf81a
diff --git a/v3/@claude-flow/cli/__tests__/init-skills-v3-opt-in-4139.test.ts b/v3/@claude-flow/cli/__tests__/init-skills-v3-opt-in-4139.test.tsnew file mode 100644index 0000000000..cec37bd006--- /dev/null+++ b/v3/@claude-flow/cli/__tests__/init-skills-v3-opt-in-4139.test.ts@@ -0,0 +1,59 @@+import { afterEach, describe, expect, it } from 'vitest';+import { existsSync, mkdtempSync, readdirSync, rmSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { DEFAULT_INIT_OPTIONS, FULL_INIT_OPTIONS, type InitOptions } from '../src/init/types.js';+import { executeInit } from '../src/init/executor.js';++const tempDirs: string[] = [];+afterEach(() => {+ for (const dir of tempDirs.splice(0)) rmSync(dir, { recursive: true, force: true });+});++function skillsOnly(base: InitOptions): InitOptions {+ const targetDir = mkdtempSync(join(tmpdir(), 'ruflo-init-skills-v3-'));+ tempDirs.push(targetDir);+ return {+ ...base,+ targetDir,+ force: true,+ skipGlobalClaudeMd: true,+ components: {+ ...base.components,+ settings: false, skills: true, commands: false, agents: false, helpers: false,+ statusline: false, mcp: false, runtime: false, claudeMd: false,+ },+ };+}++function installedSkills(targetDir: string): string[] {+ const dir = join(targetDir, '.claude', 'skills');+ return existsSync(dir) ? readdirSync(dir) : [];+}++describe('v3 implementation skills are opt-in (ADR-128, matches agents.v3)', () => {+ it('default options do not select the v3 skill group', () => {+ expect(DEFAULT_INIT_OPTIONS.skills.v3).toBe(false);+ expect(DEFAULT_INIT_OPTIONS.agents.v3).toBe(false);+ });++ it('--full still selects the v3 skill group', () => {+ expect(FULL_INIT_OPTIONS.skills.v3).toBe(true);+ });++ it('default init installs no v3-* skills', async () => {+ const options = skillsOnly(DEFAULT_INIT_OPTIONS);+ const result = await executeInit(options);+ expect(result.success).toBe(true);+ const skills = installedSkills(options.targetDir!);+ expect(skills.length).toBeGreaterThan(0);+ expect(skills.filter((name) => name.startsWith('v3-'))).toEqual([]);+ });++ it('full init still installs the v3-* skills', async () => {+ const options = skillsOnly(FULL_INIT_OPTIONS);+ const result = await executeInit(options);+ expect(result.success).toBe(true);+ expect(installedSkills(options.targetDir!).filter((name) => name.startsWith('v3-')).length).toBe(9);+ });+});diff --git a/v3/@claude-flow/cli/src/init/types.ts b/v3/@claude-flow/cli/src/init/types.tsindex 98ac585cd5..4a26cbcc82 100644--- a/v3/@claude-flow/cli/src/init/types.ts+++ b/v3/@claude-flow/cli/src/init/types.ts@@ -387,7 +387,7 @@ export const DEFAULT_INIT_OPTIONS: InitOptions = {github: true,flowNexus: false,browser: true,- v3: true,+ v3: false, // ADR-128: opt-in like agents.v3; use --full or `init skills --v3`dualMode: false, // Optional: enable with --dual flagall: false,},