Skip to content

refactor(install): split install.ts into focused modules#3

Merged
phuthuycoding merged 1 commit into
masterfrom
refactor/split-install-modules
Jun 1, 2026
Merged

refactor(install): split install.ts into focused modules#3
phuthuycoding merged 1 commit into
masterfrom
refactor/split-install-modules

Conversation

@phuthuycoding

Copy link
Copy Markdown
Owner

Break the 840-line install.ts into src/commands/install/ submodules and collapse the near-identical Codex/Antigravity logic into one parameterized skill-editor module (~200 lines of duplication removed).

  • print/transform/prompts/usage: shared helpers
  • native: Claude symlink/copy install
  • skill-editor: unified Codex + Antigravity (target-parameterized)
  • generic-editor: Cursor/Windsurf rules-file merge
  • index: installCommand orchestrator; install.ts is now a barrel re-export so bin/cli.js and src/index.ts paths are unchanged

Also fix the post-install usage banner, which had drifted from assets/: correct agent/command/skill counts, add /marketing, namespace skills, and cover all editors (Claude, Codex, Antigravity, Cursor, Windsurf). Add the missing editors to the interactive target menu and postinstall examples.

Behavior is unchanged; verified with tsc and smoke tests of all three install strategies.

Break the 840-line install.ts into src/commands/install/ submodules and
collapse the near-identical Codex/Antigravity logic into one parameterized
skill-editor module (~200 lines of duplication removed).

- print/transform/prompts/usage: shared helpers
- native: Claude symlink/copy install
- skill-editor: unified Codex + Antigravity (target-parameterized)
- generic-editor: Cursor/Windsurf rules-file merge
- index: installCommand orchestrator; install.ts is now a barrel re-export
  so bin/cli.js and src/index.ts paths are unchanged

Also fix the post-install usage banner, which had drifted from assets/:
correct agent/command/skill counts, add /marketing, namespace skills, and
cover all editors (Claude, Codex, Antigravity, Cursor, Windsurf). Add the
missing editors to the interactive target menu and postinstall examples.

Behavior is unchanged; verified with tsc and smoke tests of all three
install strategies.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@phuthuycoding phuthuycoding merged commit 688fa6f into master Jun 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant