@givolt/i3-composer-agent 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.codex-plugin/plugin.json +1 -1
  5. package/README.md +29 -32
  6. package/bin/agent-targets.json +11 -0
  7. package/bin/asset-fingerprint.cjs +38 -0
  8. package/bin/cleanup-backups.cjs +16 -0
  9. package/bin/i3-composer-agent.cjs +27 -12
  10. package/bin/install.cjs +74 -28
  11. package/bin/native-content.cjs +29 -0
  12. package/bin/wizard.cjs +2 -1
  13. package/docs/antigravity-setup.md +1 -1
  14. package/docs/codebuddy-setup.md +11 -3
  15. package/docs/cursor-setup.md +2 -2
  16. package/docs/getting-started.md +0 -2
  17. package/docs/opencode-setup.md +4 -4
  18. package/docs/workbuddy-setup.md +92 -0
  19. package/package.json +36 -20
  20. package/plugin.json +1 -1
  21. package/CHANGELOG.md +0 -51
  22. package/NOTICE.md +0 -15
  23. package/docs/advanced-per-agent-configuration.md +0 -70
  24. package/docs/comparison.md +0 -131
  25. package/docs/developer-onboarding.md +0 -116
  26. package/docs/skill-anatomy.md +0 -203
  27. package/evals/README.md +0 -101
  28. package/evals/cases/i3-api-and-interface-design.json +0 -45
  29. package/evals/cases/i3-browser-testing-with-devtools.json +0 -44
  30. package/evals/cases/i3-ci-cd-and-automation.json +0 -45
  31. package/evals/cases/i3-code-review-and-quality.json +0 -49
  32. package/evals/cases/i3-code-simplification.json +0 -45
  33. package/evals/cases/i3-constraint-driven-development.json +0 -79
  34. package/evals/cases/i3-context-engineering.json +0 -44
  35. package/evals/cases/i3-debugging-and-error-recovery.json +0 -58
  36. package/evals/cases/i3-deprecation-and-migration.json +0 -52
  37. package/evals/cases/i3-documentation-and-adrs.json +0 -44
  38. package/evals/cases/i3-doubt-driven-development.json +0 -43
  39. package/evals/cases/i3-frontend-ui-engineering.json +0 -52
  40. package/evals/cases/i3-git-workflow-and-versioning.json +0 -47
  41. package/evals/cases/i3-idea-refine.json +0 -43
  42. package/evals/cases/i3-incremental-implementation.json +0 -57
  43. package/evals/cases/i3-interview-me.json +0 -42
  44. package/evals/cases/i3-observability-and-instrumentation.json +0 -44
  45. package/evals/cases/i3-performance-optimization.json +0 -53
  46. package/evals/cases/i3-planning-and-task-breakdown.json +0 -45
  47. package/evals/cases/i3-security-and-hardening.json +0 -53
  48. package/evals/cases/i3-shipping-and-launch.json +0 -56
  49. package/evals/cases/i3-source-driven-development.json +0 -44
  50. package/evals/cases/i3-spec-driven-development.json +0 -72
  51. package/evals/cases/i3-test-driven-development.json +0 -73
  52. package/evals/cases/i3-using-agent-skills.json +0 -44
  53. package/evals/fixtures/i3-api-and-interface-design/service-brief.md +0 -19
  54. package/evals/fixtures/i3-browser-testing-with-devtools/README.md +0 -5
  55. package/evals/fixtures/i3-browser-testing-with-devtools/index.html +0 -24
  56. package/evals/fixtures/i3-browser-testing-with-devtools/server.js +0 -15
  57. package/evals/fixtures/i3-ci-cd-and-automation/package.json +0 -8
  58. package/evals/fixtures/i3-ci-cd-and-automation/src/slug.js +0 -3
  59. package/evals/fixtures/i3-ci-cd-and-automation/test/slug.test.js +0 -9
  60. package/evals/fixtures/i3-code-review-and-quality/user-search.diff +0 -16
  61. package/evals/fixtures/i3-code-simplification/config-parser.js +0 -46
  62. package/evals/fixtures/i3-code-simplification/config-parser.test.js +0 -15
  63. package/evals/fixtures/i3-context-engineering/context-audit.md +0 -15
  64. package/evals/fixtures/i3-debugging-and-error-recovery/pagination.js +0 -8
  65. package/evals/fixtures/i3-debugging-and-error-recovery/pagination.test.js +0 -9
  66. package/evals/fixtures/i3-debugging-and-error-recovery/time-pressure.md +0 -6
  67. package/evals/fixtures/i3-deprecation-and-migration/api-inventory.md +0 -9
  68. package/evals/fixtures/i3-documentation-and-adrs/decision-context.md +0 -16
  69. package/evals/fixtures/i3-doubt-driven-development/migration-plan.md +0 -19
  70. package/evals/fixtures/i3-frontend-ui-engineering/Button.tsx +0 -7
  71. package/evals/fixtures/i3-frontend-ui-engineering/design-system.md +0 -11
  72. package/evals/fixtures/i3-git-workflow-and-versioning/.eval/working-tree.patch +0 -21
  73. package/evals/fixtures/i3-git-workflow-and-versioning/app.js +0 -7
  74. package/evals/fixtures/i3-git-workflow-and-versioning/app.test.js +0 -9
  75. package/evals/fixtures/i3-incremental-implementation/reports.js +0 -7
  76. package/evals/fixtures/i3-incremental-implementation/reports.test.js +0 -12
  77. package/evals/fixtures/i3-incremental-implementation/tasks/plan.md +0 -8
  78. package/evals/fixtures/i3-observability-and-instrumentation/operations.md +0 -11
  79. package/evals/fixtures/i3-observability-and-instrumentation/payment-retry.js +0 -14
  80. package/evals/fixtures/i3-performance-optimization/benchmark.js +0 -15
  81. package/evals/fixtures/i3-performance-optimization/products.js +0 -14
  82. package/evals/fixtures/i3-planning-and-task-breakdown/notifications-spec.md +0 -18
  83. package/evals/fixtures/i3-security-and-hardening/webhook.js +0 -11
  84. package/evals/fixtures/i3-security-and-hardening/webhook.test.js +0 -13
  85. package/evals/fixtures/i3-shipping-and-launch/authority-pressure.md +0 -6
  86. package/evals/fixtures/i3-shipping-and-launch/launch-status.md +0 -11
  87. package/evals/fixtures/i3-source-driven-development/framework-task.md +0 -10
  88. package/evals/fixtures/i3-spec-driven-development/billing-brief.md +0 -16
  89. package/evals/fixtures/i3-test-driven-development/BUG.md +0 -10
  90. package/evals/fixtures/i3-test-driven-development/README.md +0 -28
  91. package/evals/fixtures/i3-test-driven-development/package.json +0 -9
  92. package/evals/fixtures/i3-test-driven-development/src/split.js +0 -8
  93. package/evals/fixtures/i3-test-driven-development/test/split.test.js +0 -13
  94. package/evals/fixtures/i3-using-agent-skills/incident.md +0 -6
  95. package/evals/fixtures/incremental-implementation-pressure/draft-export.js +0 -17
  96. package/evals/fixtures/incremental-implementation-pressure/scenario.md +0 -9
  97. package/evals/fixtures/spec-driven-development-decomposition/portal-brief.md +0 -22
  98. package/evals/fixtures/test-driven-development-ecosystem/README.md +0 -9
  99. package/evals/fixtures/test-driven-development-ecosystem/ledger.py +0 -15
  100. package/evals/fixtures/test-driven-development-ecosystem/test_ledger.py +0 -19
  101. package/evals/plugin/code-review-fires/graders/off-by-one.md +0 -7
  102. package/evals/plugin/code-review-fires/graders/severity-labels.md +0 -4
  103. package/evals/plugin/code-review-fires/graders/skill-fired.md +0 -5
  104. package/evals/plugin/code-review-fires/prompt.md +0 -31
  105. package/evals/plugin/code-review-stays-quiet/graders/not-fired.md +0 -8
  106. package/evals/plugin/code-review-stays-quiet/graders/tdd-fired.md +0 -6
  107. package/evals/plugin/code-review-stays-quiet/prompt.md +0 -8
  108. package/evals/plugin/code-review-stays-quiet-on-commit-message/graders/not-fired.md +0 -8
  109. package/evals/plugin/code-review-stays-quiet-on-commit-message/prompt.md +0 -25
  110. package/evals/skill-impact.md +0 -6
  111. package/rebrand/INSTALLATION-SPEC.md +0 -47
  112. package/rebrand/MAINTENANCE.md +0 -114
  113. package/rebrand/NOTICE.md +0 -15
  114. package/rebrand/PR-WORKFLOW.md +0 -34
  115. package/rebrand/PREFIX-SPEC.md +0 -16
  116. package/rebrand/UNIFICATION-SPEC.md +0 -33
  117. package/rebrand/VALIDATION.md +0 -32
  118. package/rebrand/VERSIONING.md +0 -35
  119. package/rebrand/apply.cjs +0 -217
  120. package/rebrand/brand.json +0 -13
  121. package/rebrand/catalog.cjs +0 -70
  122. package/rebrand/fork-patches.json +0 -27
  123. package/rebrand/identifiers.cjs +0 -41
  124. package/rebrand/overlay/.github/workflows/test-plugin-install.yml +0 -177
  125. package/rebrand/overlay/CHANGELOG.md +0 -51
  126. package/rebrand/overlay/bin/agent-targets.json +0 -726
  127. package/rebrand/overlay/bin/i3-composer-agent.cjs +0 -190
  128. package/rebrand/overlay/bin/install.cjs +0 -180
  129. package/rebrand/overlay/bin/skills-registry.LICENSE +0 -21
  130. package/rebrand/overlay/bin/wizard.cjs +0 -66
  131. package/rebrand/overlay/scripts/validate-brand.cjs +0 -44
  132. package/rebrand/overlay/tests/bundle.test.cjs +0 -85
  133. package/rebrand/overlay/tests/installer.test.cjs +0 -241
  134. package/rebrand/package.template.json +0 -82
  135. package/rebrand/rebrand.sh +0 -4
  136. package/rebrand/record-upstream.cjs +0 -37
  137. package/rebrand/templates/README.md +0 -130
  138. package/rebrand/templates/codebuddy-setup.md +0 -89
  139. package/rebrand/templates/codex-setup.md +0 -45
  140. package/rebrand/tests/pipeline.test.cjs +0 -253
  141. package/rebrand/upstream.json +0 -171
  142. package/scripts/floor-guard-reference-test.js +0 -291
  143. package/scripts/lib/skill-lint-test.js +0 -650
  144. package/scripts/lib/skill-lint.js +0 -586
  145. package/scripts/run-evals-test.js +0 -623
  146. package/scripts/run-evals.js +0 -638
  147. package/scripts/validate-artifact-paths-test.js +0 -179
  148. package/scripts/validate-artifact-paths.js +0 -130
  149. package/scripts/validate-brand.cjs +0 -44
  150. package/scripts/validate-commands-test.js +0 -216
  151. package/scripts/validate-commands.js +0 -223
  152. package/scripts/validate-reference-links-test.js +0 -495
  153. package/scripts/validate-reference-links.js +0 -187
  154. package/scripts/validate-skills.js +0 -69
  155. package/scripts/validate-versions-test.js +0 -32
  156. package/scripts/validate-versions.js +0 -35
  157. package/tests/bundle.test.cjs +0 -85
  158. package/tests/installer.test.cjs +0 -241
@@ -1,241 +0,0 @@
1
- 'use strict';
2
-
3
- const test = require('node:test');
4
- const assert = require('node:assert/strict');
5
- const fs = require('node:fs');
6
- const os = require('node:os');
7
- const path = require('node:path');
8
- const { spawnSync } = require('node:child_process');
9
- const root = path.resolve(__dirname, '..');
10
- const cli = path.join(root, 'bin/i3-composer-agent.cjs');
11
- const upstream = require('../rebrand/upstream.json');
12
- function workspace(t) {
13
- const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'i3-agent-install-'));
14
- t.after(() => fs.rmSync(directory, { recursive: true, force: true }));
15
- return fs.realpathSync(directory);
16
- }
17
- function run(directory, args) {
18
- return spawnSync(process.execPath, [cli, ...args], { cwd: directory, encoding: 'utf8' });
19
- }
20
- test('native CodeBuddy installation includes short commands, personas and usable references', t => {
21
- const directory = workspace(t);
22
- const result = run(directory, ['--codebuddy', '--scope', 'project', '--yes']);
23
- assert.equal(result.status, 0, result.stderr);
24
- const base = path.join(directory, '.codebuddy');
25
- assert.equal(fs.readdirSync(path.join(base, 'skills')).length, upstream.skills.length);
26
- assert.equal(fs.readdirSync(path.join(base, 'commands')).length, upstream.commands.length);
27
- assert.equal(fs.readdirSync(path.join(base, 'agents')).length, upstream.personas.length);
28
- const command = fs.readFileSync(path.join(base, 'commands/i3-spec.md'), 'utf8');
29
- assert.match(command, /Invoke the i3-spec-driven-development skill/);
30
- assert.doesNotMatch(command, /i3-composer-agent:/);
31
- const ship = fs.readFileSync(path.join(base, 'commands/i3-ship.md'), 'utf8');
32
- assert.match(ship, /\.codebuddy\/agents\//);
33
- assert.doesNotMatch(ship, /\.claude\/agents\//);
34
- assert.ok(fs.existsSync(path.join(base, 'references/definition-of-done.md')));
35
- assert.equal(fs.readFileSync(path.join(base, 'i3-composer-agent-LICENSE'), 'utf8'), fs.readFileSync(path.join(root, 'LICENSE'), 'utf8'));
36
- assert.match(fs.readFileSync(path.join(base, 'i3-composer-agent-NOTICE.md'), 'utf8'), /Addy Osmani/);
37
- assert.equal(fs.existsSync(path.join(directory, 'AGENTS.md')), false);
38
- assert.equal(fs.existsSync(path.join(directory, 'i3-composer-agent')), false);
39
- assert.match(result.stdout, /\/i3-spec/);
40
- });
41
- test('multiple tools retain their own destinations and share universal skills without duplicate work', t => {
42
- const directory = workspace(t);
43
- const result = run(directory, ['--agents', 'codebuddy,codex,cursor,claude-code', '--scope', 'project', '--yes']);
44
- assert.equal(result.status, 0, result.stderr);
45
- for (const base of ['.codebuddy', '.agents', '.claude']) {
46
- assert.equal(fs.readdirSync(path.join(directory, base, 'skills')).length, upstream.skills.length);
47
- assert.ok(fs.existsSync(path.join(directory, base, 'references/testing-patterns.md')));
48
- }
49
- const manifest = JSON.parse(fs.readFileSync(path.join(directory, '.agents/.i3-composer-agent.json')));
50
- assert.deepEqual(manifest.agents.sort(), ['codex', 'cursor']);
51
- assert.equal(fs.existsSync(path.join(directory, '.agents/commands')), false);
52
- });
53
- test('installation dry run describes scope and destinations without changing project files', t => {
54
- const directory = workspace(t);
55
- const result = run(directory, ['--agents', 'codebuddy,codex', '--scope', 'project', '--dry-run']);
56
- assert.equal(result.status, 0, result.stderr);
57
- const plan = JSON.parse(result.stdout);
58
- assert.equal(plan.mode, 'install');
59
- assert.equal(plan.scope, 'project');
60
- assert.equal(plan.targets.length, 2);
61
- assert.deepEqual(fs.readdirSync(directory), []);
62
- });
63
- test('all copied Markdown reference links and stable skill frontmatter remain valid', t => {
64
- const directory = workspace(t);
65
- assert.equal(run(directory, ['--codebuddy', '--scope', 'project', '--yes']).status, 0);
66
- const base = path.join(directory, '.codebuddy');
67
- function visit(folder) {
68
- for (const entry of fs.readdirSync(folder, { withFileTypes: true })) {
69
- const file = path.join(folder, entry.name);
70
- if (entry.isDirectory()) visit(file);
71
- else if (entry.name.endsWith('.md')) {
72
- const content = fs.readFileSync(file, 'utf8');
73
- for (const match of content.matchAll(/\]\(([^)]+)\)/g)) {
74
- const relative = match[1].split('#')[0];
75
- if (relative.includes('references/') && !/^[a-z]+:/i.test(relative)) {
76
- assert.ok(fs.existsSync(path.resolve(path.dirname(file), relative)), `${file}: ${relative}`);
77
- }
78
- }
79
- }
80
- }
81
- }
82
- visit(path.join(base, 'skills'));
83
- for (const id of upstream.skills.map(id => `i3-${id}`)) {
84
- const head = content => content.match(/^---\r?\n[\s\S]*?\r?\n---/)[0];
85
- assert.equal(head(fs.readFileSync(path.join(base, 'skills', id, 'SKILL.md'), 'utf8')), head(fs.readFileSync(path.join(root, 'skills', id, 'SKILL.md'), 'utf8')));
86
- }
87
- });
88
- function legacyInstallation(directory) {
89
- const base = path.join(directory, '.codebuddy');
90
- fs.mkdirSync(path.join(base, 'commands'), { recursive: true });
91
- fs.mkdirSync(path.join(base, 'skills/spec-driven-development'), { recursive: true });
92
- fs.writeFileSync(path.join(base, 'commands/spec.md'), 'original owned command');
93
- fs.writeFileSync(path.join(base, 'skills/spec-driven-development/SKILL.md'), 'original owned Skill');
94
- fs.writeFileSync(path.join(base, 'commands/build.md'), 'unowned custom command');
95
- fs.writeFileSync(path.join(base, '.i3-composer-agent.json'), JSON.stringify({ name: 'i3-composer-agent', version: '1.0.1', assets: ['commands/spec.md', 'skills/spec-driven-development'] }));
96
- return base;
97
- }
98
- test('prefix migration retires only owned legacy paths and preserves their backups', t => {
99
- const directory = workspace(t);
100
- const base = legacyInstallation(directory);
101
- const args = ['--codebuddy', '--scope', 'project', '--yes'];
102
- assert.equal(run(directory, args).status, 1);
103
- assert.equal(fs.readFileSync(path.join(base, 'commands/spec.md'), 'utf8'), 'original owned command');
104
- const result = run(directory, [...args, '--force']);
105
- assert.equal(result.status, 0, result.stderr);
106
- assert.equal(fs.existsSync(path.join(base, 'commands/spec.md')), false);
107
- assert.equal(fs.existsSync(path.join(base, 'skills/spec-driven-development')), false);
108
- assert.ok(fs.existsSync(path.join(base, 'commands/i3-spec.md')));
109
- assert.match(fs.readFileSync(path.join(base, 'skills/i3-spec-driven-development/SKILL.md'), 'utf8'), /^name: i3-spec-driven-development$/m);
110
- assert.equal(fs.readFileSync(path.join(base, 'commands/build.md'), 'utf8'), 'unowned custom command');
111
- const backup = fs.readdirSync(base).find(file => file.startsWith('.i3-composer-agent-backup-'));
112
- assert.equal(fs.readFileSync(path.join(base, backup, 'commands/spec.md'), 'utf8'), 'original owned command');
113
- assert.equal(fs.readFileSync(path.join(base, backup, 'skills/spec-driven-development/SKILL.md'), 'utf8'), 'original owned Skill');
114
- const manifest = JSON.parse(fs.readFileSync(path.join(base, '.i3-composer-agent.json'), 'utf8'));
115
- assert.equal(manifest.entryPrefix, 'i3-');
116
- assert.ok(!manifest.assets.includes('commands/spec.md'));
117
- });
118
- test('a failure after retiring legacy paths rolls the migration back', t => {
119
- const directory = workspace(t);
120
- const base = legacyInstallation(directory);
121
- const before = fs.readFileSync(path.join(base, '.i3-composer-agent.json'), 'utf8');
122
- const { planInstallation, executeInstallation } = require('../bin/install.cjs');
123
- const plan = planInstallation({ agents: ['codebuddy'], scope: 'project', projectDir: directory });
124
- const realRename = fs.renameSync;
125
- fs.renameSync = (source, destination) => {
126
- if (destination === path.join(base, '.i3-composer-agent.json') && source.includes('-stage-')) throw new Error('simulated manifest failure');
127
- return realRename(source, destination);
128
- };
129
- try { assert.throws(() => executeInstallation(plan, { force: true }), /simulated manifest failure/); }
130
- finally { fs.renameSync = realRename; }
131
- assert.equal(fs.readFileSync(path.join(base, '.i3-composer-agent.json'), 'utf8'), before);
132
- assert.equal(fs.readFileSync(path.join(base, 'commands/spec.md'), 'utf8'), 'original owned command');
133
- assert.equal(fs.readFileSync(path.join(base, 'skills/spec-driven-development/SKILL.md'), 'utf8'), 'original owned Skill');
134
- assert.equal(fs.existsSync(path.join(base, 'commands/i3-spec.md')), false);
135
- });
136
- test('existing assets are protected; confirmed replacement backs them up and preserves unrelated settings', t => {
137
- const directory = workspace(t);
138
- const base = path.join(directory, '.codebuddy');
139
- fs.mkdirSync(path.join(base, 'commands'), { recursive: true });
140
- fs.writeFileSync(path.join(base, 'commands/i3-spec.md'), 'my custom command');
141
- fs.writeFileSync(path.join(base, 'settings.json'), '{"keep":"my settings"}\n');
142
- const args = ['--codebuddy', '--scope', 'project', '--yes'];
143
- assert.equal(run(directory, args).status, 1);
144
- assert.equal(fs.existsSync(path.join(base, 'skills')), false);
145
- const result = run(directory, [...args, '--force']);
146
- assert.equal(result.status, 0, result.stderr);
147
- const backups = fs.readdirSync(base).filter(file => file.startsWith('.i3-composer-agent-backup-'));
148
- assert.equal(backups.length, 1);
149
- assert.equal(fs.readFileSync(path.join(base, backups[0], 'commands/i3-spec.md'), 'utf8'), 'my custom command');
150
- assert.equal(fs.readFileSync(path.join(base, 'settings.json'), 'utf8'), '{"keep":"my settings"}\n');
151
- assert.equal(fs.existsSync(path.join(base, backups[0], 'settings.json')), false);
152
- });
153
- test('global installation uses injected home and config roots without touching the real user configuration', t => {
154
- const directory = workspace(t);
155
- const { planInstallation, executeInstallation } = require('../bin/install.cjs');
156
- const plan = planInstallation({ agents: ['codebuddy', 'codex', 'claude-code', 'opencode'], scope: 'global', home: directory, env: { XDG_CONFIG_HOME: path.join(directory, 'config'), CLAUDE_CONFIG_DIR: path.join(directory, 'custom-claude') } });
157
- assert.ok(plan.targets.every(target => target.skillsDirectory.startsWith(directory + path.sep)));
158
- assert.ok(plan.targets.some(target => target.skillsDirectory === path.join(directory, 'custom-claude/skills')));
159
- assert.ok(plan.targets.some(target => target.skillsDirectory === path.join(directory, 'config/opencode/skills')));
160
- executeInstallation(plan);
161
- for (const target of plan.targets) {
162
- assert.equal(fs.readdirSync(target.skillsDirectory).length, upstream.skills.length);
163
- assert.ok(fs.existsSync(path.join(target.referencesDirectory, 'definition-of-done.md')));
164
- }
165
- });
166
- test('the pinned tool catalog plans all project choices and rejects unsupported global choices before writing', t => {
167
- const directory = workspace(t);
168
- const { registry, planInstallation } = require('../bin/install.cjs');
169
- assert.equal(registry.agents.length, 79);
170
- assert.equal(registry.commit, '48dc9e8eb8aa19040e91cb90ba0b642c9cbad57e');
171
- const plan = planInstallation({ agents: registry.agents.map(agent => agent.id), scope: 'project', projectDir: directory });
172
- assert.equal(plan.agents.length, registry.agents.length);
173
- assert.ok(plan.targets.length < plan.agents.length);
174
- assert.equal(new Set(plan.assets.map(asset => asset.destination)).size, plan.assets.length);
175
- for (const agent of registry.agents) {
176
- if (agent.globalSkillsDir) assert.ok(planInstallation({ agents: [agent.id], scope: 'global', home: directory, env: {} }).targets[0].skillsDirectory.startsWith(directory + path.sep));
177
- else assert.throws(() => planInstallation({ agents: [agent.id], scope: 'global', home: directory, env: {} }), /project installation only/);
178
- }
179
- assert.deepEqual(fs.readdirSync(directory), []);
180
- });
181
- test('failed installation restores prior assets and removes all newly written files', t => {
182
- const directory = workspace(t);
183
- const { planInstallation, executeInstallation } = require('../bin/install.cjs');
184
- const prior = path.join(directory, '.codebuddy/skills/i3-api-and-interface-design');
185
- fs.mkdirSync(prior, { recursive: true });
186
- fs.writeFileSync(path.join(prior, 'custom.md'), 'prior skill content');
187
- const plan = planInstallation({ agents: ['codebuddy', 'codex'], scope: 'project', projectDir: directory });
188
- const realRename = fs.renameSync;
189
- let failed = false;
190
- fs.renameSync = (source, destination) => {
191
- if (!failed && destination === plan.assets[1].destination) { failed = true; throw new Error('simulated disk failure'); }
192
- return realRename(source, destination);
193
- };
194
- try { assert.throws(() => executeInstallation(plan, { force: true }), /simulated disk failure/); }
195
- finally { fs.renameSync = realRename; }
196
- assert.equal(fs.readFileSync(path.join(prior, 'custom.md'), 'utf8'), 'prior skill content');
197
- assert.deepEqual(fs.readdirSync(path.dirname(prior)), ['i3-api-and-interface-design']);
198
- assert.deepEqual(fs.readdirSync(path.join(directory, '.codebuddy')), ['skills']);
199
- assert.equal(fs.existsSync(path.join(directory, '.agents')), false);
200
- });
201
- test('replacing a skill symlink backs up the link and leaves its external source untouched', t => {
202
- const directory = workspace(t);
203
- const external = path.join(directory, 'external-skill');
204
- const skills = path.join(directory, '.codebuddy/skills');
205
- fs.mkdirSync(external);
206
- fs.writeFileSync(path.join(external, 'custom.md'), 'external source');
207
- fs.mkdirSync(skills, { recursive: true });
208
- fs.symlinkSync(external, path.join(skills, 'i3-spec-driven-development'), 'dir');
209
- const result = run(directory, ['--codebuddy', '--scope', 'project', '--yes', '--force']);
210
- assert.equal(result.status, 0, result.stderr);
211
- assert.deepEqual(fs.readdirSync(external), ['custom.md']);
212
- assert.equal(fs.lstatSync(path.join(skills, 'i3-spec-driven-development')).isSymbolicLink(), false);
213
- const base = path.dirname(skills);
214
- const backup = fs.readdirSync(base).find(file => file.startsWith('.i3-composer-agent-backup-'));
215
- assert.equal(fs.lstatSync(path.join(base, backup, 'skills/i3-spec-driven-development')).isSymbolicLink(), true);
216
- });
217
- test('package destinations, shared directory symlinks and ambiguous noninteractive flags fail without writes', t => {
218
- const directory = workspace(t);
219
- for (const args of [ ['--codebuddy'], ['--codebuddy', '--yes'], ['--agents', 'unknown', '--scope', 'project', '--yes'], ['--codebuddy', '--scope', 'invalid', '--yes'], ['--codebuddy', '--scope', 'project', '--global', '--yes'] ]) {
220
- assert.equal(run(directory, args).status, 1);
221
- assert.deepEqual(fs.readdirSync(directory), []);
222
- }
223
- assert.equal(run(directory, ['--codebuddy', '--scope', 'project', '--yes', '--project-dir', root]).status, 1);
224
- fs.mkdirSync(path.join(directory, '.codebuddy'));
225
- fs.symlinkSync(path.join(root, 'skills'), path.join(directory, '.codebuddy/skills'), 'dir');
226
- assert.equal(run(directory, ['--codebuddy', '--scope', 'project', '--yes', '--force']).status, 1);
227
- assert.deepEqual(fs.readdirSync(path.join(directory, '.codebuddy')), ['skills']);
228
- });
229
- test('explicit plugin preparation remains available and does not install native host files', t => {
230
- const directory = workspace(t);
231
- const result = run(directory, ['--prepare', '--codebuddy']);
232
- assert.equal(result.status, 0, result.stderr);
233
- assert.match(result.stdout, /\/plugin install/);
234
- assert.equal(fs.existsSync(path.join(directory, 'i3-composer-agent/plugin.json')), true);
235
- assert.equal(fs.existsSync(path.join(directory, '.codebuddy')), false);
236
- const listing = run(directory, ['--list-agents']);
237
- assert.equal(listing.status, 0, listing.stderr);
238
- assert.equal(listing.stdout.trim().split('\n').length, 79);
239
- assert.match(listing.stdout, /codebuddy/);
240
- assert.match(listing.stdout, /windsurf/);
241
- });
@@ -1,82 +0,0 @@
1
- {
2
- "name": "@givolt/i3-composer-agent",
3
- "description": "i3 Composer Agent: production-grade engineering skills and lifecycle commands for AI coding agents.",
4
- "license": "MIT",
5
- "author": "Givolt",
6
- "contributors": [
7
- {
8
- "name": "Addy Osmani"
9
- }
10
- ],
11
- "bin": {
12
- "i3-composer-agent": "bin/i3-composer-agent.cjs"
13
- },
14
- "engines": {
15
- "node": ">=20"
16
- },
17
- "publishConfig": {
18
- "access": "public",
19
- "registry": "https://registry.npmjs.org/"
20
- },
21
- "files": [
22
- "bin/",
23
- "skills/",
24
- "references/",
25
- "agents/",
26
- "commands/",
27
- ".claude/commands/",
28
- ".gemini/commands/",
29
- ".claude-plugin/",
30
- ".codex-plugin/",
31
- ".agents/plugins/",
32
- "hooks/",
33
- "docs/",
34
- "scripts/",
35
- "evals/",
36
- "rebrand/",
37
- "tests/",
38
- "plugin.json",
39
- "NOTICE.md",
40
- "CHANGELOG.md"
41
- ],
42
- "scripts": {
43
- "rebrand": "node rebrand/apply.cjs --apply",
44
- "rebrand:check": "node rebrand/apply.cjs --check",
45
- "validate": "node scripts/validate-brand.cjs && node scripts/validate-skills.js && node scripts/validate-versions.js && node scripts/validate-commands.js && node scripts/validate-reference-links.js && node scripts/validate-artifact-paths.js",
46
- "test": "node --test scripts/*-test.js scripts/lib/*-test.js tests/*.test.cjs rebrand/tests/*.test.cjs",
47
- "prepack": "npm run validate"
48
- },
49
- "keywords": [
50
- "i3-composer",
51
- "agent-skills",
52
- "codebuddy",
53
- "codex",
54
- "claude-code"
55
- ],
56
- "i3ComposerAgent": {
57
- "pluginFiles": [
58
- "bin",
59
- "skills",
60
- "references",
61
- "agents",
62
- "commands",
63
- ".claude/commands",
64
- ".gemini/commands",
65
- ".claude-plugin",
66
- ".codex-plugin",
67
- ".agents/plugins",
68
- "hooks",
69
- "docs",
70
- "scripts",
71
- "evals",
72
- "rebrand",
73
- "tests",
74
- "plugin.json",
75
- "package.json",
76
- "README.md",
77
- "LICENSE",
78
- "NOTICE.md",
79
- "CHANGELOG.md"
80
- ]
81
- }
82
- }
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- ROOT="$(cd "$(dirname "$0")/.." && pwd)"
4
- exec node "$ROOT/rebrand/apply.cjs" "${1:---check}"
@@ -1,37 +0,0 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
-
4
- const fs = require('node:fs');
5
- const path = require('node:path');
6
- const { execFileSync } = require('node:child_process');
7
- const { describe, runtimeRoots, runtimeFiles } = require('./catalog.cjs');
8
- const root = path.resolve(__dirname, '..');
9
- const ref = process.argv[2];
10
- if (!ref || ref.startsWith('-') || process.argv.length !== 3) {
11
- console.error('Usage: node rebrand/record-upstream.cjs <reviewed upstream ref>');
12
- process.exit(1);
13
- }
14
- try {
15
- const git = args => execFileSync('git', args, { cwd: root, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 });
16
- const commit = git(['rev-parse', '--verify', '--end-of-options', `${ref}^{commit}`]).trim();
17
- const entries = git(['ls-tree', '-rz', commit, '--', ...runtimeRoots, ...runtimeFiles]).split('\0').filter(Boolean);
18
- const blobs = new Map(entries.filter(line => /^100\d+ blob /.test(line)).map(line => {
19
- const [metadata, file] = line.split('\t');
20
- return [file, metadata.split(' ')[2]];
21
- }));
22
- const read = file => git(['cat-file', 'blob', blobs.get(file)]);
23
- const snapshot = {
24
- upstreamCommit: commit,
25
- upstreamVersion: JSON.parse(read('plugin.json')).version,
26
- ...describe([...blobs.keys()], read),
27
- };
28
- fs.writeFileSync(path.join(__dirname, 'upstream.json'), JSON.stringify(snapshot, null, 2) + '\n');
29
- const brandFile = path.join(__dirname, 'brand.json');
30
- const brand = JSON.parse(fs.readFileSync(brandFile, 'utf8'));
31
- brand.upstreamCommit = commit;
32
- fs.writeFileSync(brandFile, JSON.stringify(brand, null, 2) + '\n');
33
- console.log(JSON.stringify({ commit, version: snapshot.upstreamVersion, skills: snapshot.skills.length, commands: snapshot.commands.length }));
34
- } catch (error) {
35
- console.error(error.message);
36
- process.exitCode = 1;
37
- }
@@ -1,130 +0,0 @@
1
- # i3 Composer Agent v{{RELEASE_VERSION}}
2
-
3
- **Based on agent-skills v{{UPSTREAM_VERSION}}**
4
-
5
- **Intelligence. Integration. Innovation.**
6
-
7
- Engineering skills, lifecycle commands, and specialist personas for AI coding agents.
8
- Based on [Agent Skills](https://github.com/addyosmani/agent-skills) by Addy Osmani
9
- (MIT). See [NOTICE.md](NOTICE.md) for attribution.
10
-
11
- The npm package is `@givolt/i3-composer-agent`; the plugin and marketplace ID is
12
- `i3-composer-agent`. Commands and Skill IDs use the `i3-` prefix.
13
-
14
- ## Install with the wizard
15
-
16
- Run in the project where you want to use the skills:
17
-
18
- ```bash
19
- npx @givolt/i3-composer-agent
20
- # Preselect a tool; the wizard still allows multiple selections:
21
- npx @givolt/i3-composer-agent --codebuddy
22
- ```
23
-
24
- The interactive terminal wizard offers multiple tools, project or global scope,
25
- an installation summary, and confirmation. Its 79 tool directory presets come
26
- from the pinned [Vercel Skills CLI registry](https://github.com/vercel-labs/skills/blob/48dc9e8eb8aa19040e91cb90ba0b642c9cbad57e/src/agents.ts).
27
- Choose by tool ID or comma-separated menu numbers. Use `--list-agents` to list
28
- the choices. Directory presets are not an execution test of every host.
29
-
30
- Every selected tool receives all {{SKILL_COUNT}} skills and shared references.
31
- CodeBuddy and Claude Code also receive {{COMMAND_COUNT}} short command workflows
32
- and {{PERSONA_COUNT}} persona files. Other tools use their native skill support;
33
- short lifecycle commands depend on the host. Shared destinations are installed
34
- once. License and attribution files accompany each native installation.
35
- Reload the IDE window or start a new session after installation. See
36
- [CodeBuddy setup](docs/codebuddy-setup.md) and [Codex setup](docs/codex-setup.md).
37
-
38
- For an explicit installation without prompts:
39
-
40
- ```bash
41
- npx @givolt/i3-composer-agent --agents codebuddy,codex --scope project --yes
42
- npx @givolt/i3-composer-agent --claude --scope global --yes
43
- npx @givolt/i3-composer-agent --codebuddy --scope project --dry-run
44
- ```
45
-
46
- Existing assets require confirmation; use `--force` with noninteractive installs.
47
- Replacement preserves previous files in a `.i3-composer-agent-backup-*` directory
48
- under each tool configuration root. Unrelated settings are left in place.
49
- `npx -y` accepts npm's package download prompt; the package's own `--yes` flag
50
- accepts the explicit installation plan.
51
-
52
- Earlier native installations migrate their unprefixed Skill and command paths
53
- when those paths belong to this package's previous installation manifest.
54
- The migration preserves legacy paths in the backup directory. Unowned entries
55
- remain in place. Use `/i3-spec` in CodeBuddy or `$i3-spec-driven-development`
56
- in Codex after upgrading.
57
-
58
- ## Prepare the complete plugin
59
-
60
- For native plugin registration, including plugin hooks, explicitly prepare a
61
- persistent `./i3-composer-agent/` bundle:
62
-
63
- ```bash
64
- npx @givolt/i3-composer-agent --prepare --codebuddy
65
- npx @givolt/i3-composer-agent --prepare --codex
66
- npx @givolt/i3-composer-agent --prepare --claude
67
- ```
68
-
69
- The bundle includes skills, commands, personas, hooks and references. Run the
70
- registration commands printed by the CLI in the intended host. This preparation
71
- mode does not install native skills or choose the host plugin manager's scope.
72
-
73
- CodeBuddy Code (terminal) / Claude Code:
74
-
75
- ```text
76
- /plugin marketplace add ./i3-composer-agent
77
- /plugin install i3-composer-agent@i3-composer-agent
78
- ```
79
-
80
- Codex:
81
-
82
- ```bash
83
- codex plugin marketplace add ./i3-composer-agent
84
- codex plugin add i3-composer-agent@i3-composer-agent
85
- ```
86
-
87
- Start a new session after enabling the plugin. Codex uses the branded Skill
88
- names, such as `$i3-spec-driven-development`; lifecycle slash-command adaptation
89
- is maintained separately.
90
-
91
- ## Commands
92
-
93
- Native CodeBuddy and Claude Code installations use short filenames such as
94
- `/i3-spec`, `/i3-plan`, `/i3-build` and `/i3-ship`. Hosts supporting Claude-compatible plugin
95
- commands load the same workflows under the plugin namespace:
96
-
97
- | Command | Description |
98
- | --- | --- |
99
- {{COMMAND_TABLE}}
100
-
101
- `/i3-composer-agent:i3-build auto` runs the existing approved-plan workflow.
102
-
103
- ## Skills
104
-
105
- | Skill | Description |
106
- | --- | --- |
107
- {{SKILL_TABLE}}
108
-
109
- ## Bundle options
110
-
111
- ```bash
112
- npx @givolt/i3-composer-agent --extract --dir /path/to/plugin
113
- npx @givolt/i3-composer-agent --codebuddy --dir /path/to/plugin --dry-run
114
- npx @givolt/i3-composer-agent --codebuddy --dir /path/to/plugin --force
115
- ```
116
-
117
- Explicit `--dir` retains the original plugin preparation behavior. Replacement
118
- preserves the previous i3 bundle as a backup. Repository-scoped
119
- AGENTS.md and CLAUDE.md are not copied into business projects.
120
-
121
- ## Maintaining this fork
122
-
123
- This repository is independent of the GSD-based i3 Composer Work repository.
124
- `agent/source` retains upstream source and the `rebrand/` rules; `main` contains
125
- the validated branded distribution. Create release candidates from the source
126
- branch, replay branding, validate, then update the release branch.
127
-
128
- See [maintenance](rebrand/MAINTENANCE.md), [source PR workflow](rebrand/PR-WORKFLOW.md),
129
- [versioning](rebrand/VERSIONING.md), [changelog](CHANGELOG.md),
130
- and [validation contract](rebrand/VALIDATION.md).
@@ -1,89 +0,0 @@
1
- # Using i3 Composer Agent with CodeBuddy
2
-
3
- ## Desktop IDE installation
4
-
5
- Run inside your business project:
6
-
7
- ```bash
8
- npx @givolt/i3-composer-agent --codebuddy
9
- ```
10
-
11
- The terminal wizard preselects CodeBuddy, still allows multiple tools, and asks
12
- for project or global scope before installing. Project scope writes these paths:
13
-
14
- - `.codebuddy/skills/` — all {{SKILL_COUNT}} skills with `i3-` IDs.
15
- - `.codebuddy/references/` — shared checklists used by skill-relative links.
16
- - `.codebuddy/commands/` — all {{COMMAND_COUNT}} existing lifecycle workflows.
17
- - `.codebuddy/agents/` — all {{PERSONA_COUNT}} persona definitions.
18
-
19
- Global scope uses the same layout under `~/.codebuddy/`. Existing assets require
20
- confirmed replacement and are preserved in backup directories. Settings are
21
- not replaced. Reload the CodeBuddy window or start a new chat, then inspect
22
- the Skills list and type `/` to inspect the command menu.
23
-
24
- ```text
25
- /i3-spec
26
- /i3-plan
27
- /i3-build
28
- /i3-build auto
29
- /i3-review
30
- /i3-ship
31
- ```
32
-
33
- The command wrappers reference installed skill IDs without the plugin namespace.
34
- Their workflow content and approval gates are retained. File installation does
35
- not itself prove that the IDE has discovered or executed every workflow.
36
-
37
- For multiple tools or a noninteractive installation:
38
-
39
- ```bash
40
- npx @givolt/i3-composer-agent --agents codebuddy,codex --scope project --yes
41
- npx @givolt/i3-composer-agent --codebuddy --scope global --yes
42
- ```
43
-
44
- CodeBuddy documents [IDE skills](https://www.codebuddy.cn/docs/ide/Features/Skills)
45
- and [IDE custom commands](https://www.codebuddy.cn/docs/ide/User-guide/Slash-Commands).
46
- The directory layout follows its [configuration directory reference](https://www.codebuddy.cn/docs/cli/codebuddy-dir).
47
-
48
- ## CodeBuddy Code native plugin registration
49
-
50
- For the terminal CodeBuddy Code plugin manager, explicitly prepare the full
51
- plugin instead of native skill installation:
52
-
53
- ```bash
54
- npx @givolt/i3-composer-agent --prepare --codebuddy
55
- ```
56
-
57
- In CodeBuddy Code, register the prepared directory and install the plugin:
58
-
59
- ```text
60
- /plugin marketplace add ./i3-composer-agent
61
- /plugin install i3-composer-agent@i3-composer-agent
62
- ```
63
-
64
- Use the absolute directory printed by the CLI if CodeBuddy has a different
65
- working directory. Choose the intended installation scope in CodeBuddy Code's native
66
- plugin manager. Reload plugins or start a new session after installation.
67
-
68
- CodeBuddy Code supports the existing `.claude-plugin/plugin.json` compatibility
69
- manifest. It declares `.claude/commands/` and `commands/`, preserving the nine
70
- original lifecycle commands and their workflow content.
71
-
72
- ```text
73
- /i3-composer-agent:i3-spec
74
- /i3-composer-agent:i3-plan
75
- /i3-composer-agent:i3-build
76
- /i3-composer-agent:i3-build auto
77
- /i3-composer-agent:i3-review
78
- /i3-composer-agent:i3-ship
79
- ```
80
-
81
- Skill IDs and command filenames use `i3-`. Persona names, artifact paths,
82
- and workflow gates retain their upstream behavior. The plugin namespace is
83
- `i3-composer-agent`.
84
-
85
- The prepared plugin includes all skills, personas, commands, hooks and shared
86
- `references/`. Native skill installation above does not enable plugin hooks.
87
-
88
- In this explicit mode the CLI prepares files and prints registration commands. Actual host discovery
89
- and model execution should be verified after registering the plugin.
@@ -1,45 +0,0 @@
1
- # Using i3 Composer Agent with Codex
2
-
3
- For the multi-tool native skill wizard, run in your project:
4
-
5
- ```bash
6
- npx @givolt/i3-composer-agent --codex
7
- ```
8
-
9
- Choose project or global scope. Native installation uses `.agents/skills/`
10
- or `~/.agents/skills/`, plus the sibling `references/` directory. It installs
11
- the {{SKILL_COUNT}} skills with `i3-` IDs. This mode does not add short lifecycle
12
- slash commands or enable plugin hooks.
13
-
14
- For complete plugin registration, prepare a persistent bundle explicitly:
15
-
16
- ```bash
17
- npx @givolt/i3-composer-agent --prepare --codex
18
- ```
19
-
20
- This mode copies a persistent `./i3-composer-agent/` bundle and prints these
21
- native registration commands. Run them to enable the plugin:
22
-
23
- ```bash
24
- codex plugin marketplace add ./i3-composer-agent
25
- codex plugin add i3-composer-agent@i3-composer-agent
26
- ```
27
-
28
- Start a new Codex session after registration. All {{SKILL_COUNT}} skills use
29
- `i3-` IDs. In CLI/IDE, use `/skills` or `$i3-spec-driven-development`; in chat,
30
- explicitly request the relevant skill from i3 Composer Agent.
31
-
32
- The adapter in `.codex-plugin/plugin.json` points at the unchanged `skills/`
33
- layout. Shared checklists remain under `references/`, so skill-relative links
34
- resolve inside the complete plugin bundle.
35
-
36
- The short lifecycle commands (`/i3-spec`, `/i3-plan`, `/i3-build`, `/i3-ship`) remain
37
- available in hosts that load the Claude-compatible command manifest. Codex
38
- lifecycle-command adaptation is separate from this brand conversion. Native
39
- Codex `/plan` switches planning mode; it is not the plugin's planning wrapper.
40
-
41
- Do not preload `i3-using-agent-skills/SKILL.md` into always-on context: Codex routes
42
- skills natively. The meta-skill can remain installed and explicitly invoked.
43
-
44
- For local source testing, replace `./i3-composer-agent` above with the absolute
45
- path to the branded checkout. The CLI does not modify existing plugin settings.