feat: add MiniMax Code skills support
Summary
Adds MiniMax Code as a supported OpenSpec tool target.
This integration treats MiniMax Code as a global skills-based tool. OpenSpec now installs and refreshes MiniMax Code skills under the user-home MiniMax skills directory:
~/.minimax/skills
The tool metadata uses globalSkillsDir: '.minimax', and the shared skill path resolver appends the standard /skills suffix, matching the shape of existing skillsDir tool metadata.
Changes
- Add
minimax-codeto supported AI tools - Add shared skill path resolution for project-local and user-home global skill targets
- Detect MiniMax Code from OpenSpec-managed skills in
~/.minimax/skills - Support MiniMax Code in
openspec init,openspec update, and workspace skill setup/update - Preserve existing global MiniMax Code skills when delivery is
commands - Avoid creating repo-local
.minimaxor.mavisfallback directories - Update docs for CLI usage, supported tools, and MiniMax Code skill invocation
- Add tests for detection, init/update behavior, workspace skills, and path resolution
Verification
pnpm run buildpnpm test
Full test suite passes:
- 90 test files passed
- 1668 tests passed
Summary by CodeRabbit
-
New Features
- Added MiniMax Code (
minimax-code) as a supported OpenSpec tool foropenspec init --tools. - MiniMax Code now installs/refreshes skills only in the user-home global directory (
~/.minimax/skills), skipping command generation. - Commands-only delivery preserves existing global MiniMax Code skills (no workspace-local
.minimax/.mavisfallback creation or deletion).
- Added MiniMax Code (
-
Documentation
- Updated CLI, command syntax, and supported-tools docs to reflect global skills behavior and workspace setup/update semantics.
-
Tests
- Added/expanded coverage for global-skill detection, update/workspace behavior, commands-only preservation, and cross-platform home directory handling.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c09c481a-b15c-448b-bbbf-fe7fad684110
📥 Commits
Reviewing files that changed from the base of the PR and between eb444bd3d9c300aaf5da63b3bb342ce20653fe57 and 4746ceed35936ae6fe219853104dd5576de04fa1.
📒 Files selected for processing (4)
src/core/init.tstest/core/init.test.tstest/core/shared/skill-paths.test.tstest/core/workspace/skills.test.ts
🚧 Files skipped from review as they are similar to previous changes (4)
- test/core/workspace/skills.test.ts
- src/core/init.ts
- test/core/init.test.ts
- test/core/shared/skill-paths.test.ts
📝 Walkthrough
Walkthrough
Adds MiniMax Code as a skills-only AI tool integration with global user-home skill storage. A new globalSkillsDir field is added to AIToolOption and a shared skill-paths module is introduced with SkillCapableTool, toolSupportsSkills, hasGlobalSkillTarget, and resolveToolSkillsDir. These helpers are wired through init, update, migration, profile-drift detection, and workspace skill commands. Skills are written to ~/.minimax/skills with no repo-local fallback and no command adapter generation.
Changes
MiniMax Code Global-Skills Integration
| Layer / File(s) | Summary |
|---|---|
Design, proposal, and specs openspec/changes/add-minimax-code-tool-support/.openspec.yaml, openspec/changes/add-minimax-code-tool-support/design.md, openspec/changes/add-minimax-code-tool-support/proposal.md, openspec/changes/add-minimax-code-tool-support/tasks.md, openspec/changes/add-minimax-code-tool-support/specs/ai-tool-paths/spec.md, openspec/changes/add-minimax-code-tool-support/specs/cli-init/spec.md, openspec/changes/add-minimax-code-tool-support/specs/cli-update/spec.md, openspec/changes/add-minimax-code-tool-support/specs/workspace-links/spec.md |
Adds full design, proposal, tasks, and per-area requirement specs defining globalSkillsDir metadata, AIToolOption extensions, and behavioral requirements for init, update, workspace, and drift detection. |
AIToolOption config and shared skill-paths module src/core/config.ts, src/core/shared/skill-paths.ts, src/core/shared/index.ts |
Adds globalSkillsDir to AIToolOption, registers MiniMax Code in AI_TOOLS, and creates skill-paths.ts with SkillCapableTool, toolSupportsSkills, hasGlobalSkillTarget, and resolveToolSkillsDir (resolves home-based vs project-local paths), re-exported from shared/index.ts. |
Tool detection and available-tools src/cli/index.ts, src/core/shared/tool-detection.ts, src/core/available-tools.ts |
Updates getToolsWithSkillsDir, getToolSkillStatus, getToolVersionStatus, getConfiguredTools, and getAvailableTools to use shared helpers instead of direct skillsDir property access; adds global-home SKILL.md existence check for globalSkillsDir tools. |
InitCommand: ValidatedInitTool and global-skill wiring src/core/init.ts |
Introduces ValidatedInitTool with skillsPath and isGlobalSkillTarget; validateTools receives projectPath and uses shared helpers; skill-dir removal is gated on !isGlobalSkillTarget; success display uses skillsPath. |
Update, migration, and profile-drift wiring src/core/update.ts, src/core/migration.ts, src/core/profile-sync-drift.ts |
Update loop, legacy-upgrade path, workflow scanning, and drift detection all switch from tool.skillsDir to shared helpers; global-target tools are excluded from command-file scans and skill-dir removal. |
Workspace skills: global-target detection and managed-dir removal src/core/workspace/skills.ts |
Redefines WorkspaceSkillCapableTool as SkillCapableTool; updates path resolution to use resolveToolSkillsDir; rewrites isOpenSpecManagedSkillDir to treat openspec-* dirs as managed for global-target tools without needing SKILL.md metadata. |
Test helper and env isolation test/helpers/temp-dir.ts, test/commands/context-store.test.ts, test/commands/config-profile.test.ts, test/commands/workspace.test.ts, test/core/context-store/registry.test.ts, test/core/profile-sync-drift.test.ts, test/core/shared/tool-detection.test.ts, test/core/update.test.ts |
Adds mkdtempOutsideGit helper; updates test suites to inject HOME/USERPROFILE in beforeEach and restore env in afterEach for isolation. |
Feature tests: skill-paths, init, detection, workspace test/core/shared/skill-paths.test.ts, test/core/init.test.ts, test/core/available-tools.test.ts, test/core/shared/tool-detection.test.ts, test/core/update.test.ts, test/core/workspace/skills.test.ts |
Adds tests for resolveToolSkillsDir, MiniMax Code init/update global-target writes, commands-only preservation, local-dir non-creation, workspace generate/update flows, and detection from global vs repo-local paths. |
Documentation docs/cli.md, docs/commands.md, docs/supported-tools.md |
Documents MiniMax Code global ~/.minimax/skills/ target in CLI reference, command-syntax guide, and supported-tools table; removes lingma from --tools list. |
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~65 minutes
Possibly related PRs
- Fission-AI/OpenSpec#736: Modifies the same
src/core/profile-sync-drift.tsandsrc/core/update.tsdelivery-mode logic that this PR extends for global-skill target handling. - Fission-AI/OpenSpec#941: Also adds a new skill-based tool to
AI_TOOLSinsrc/core/config.tsanddocs/supported-tools.md, using the same tool-registration and detection surface. - Fission-AI/OpenSpec#1003: Both PRs extend OpenSpec's skills-only (adapterless command generation) tool integration with new tools in
AI_TOOLSand corresponding init/update/workspace behavior changes.
Suggested reviewers
- alfred-openspec
🐰 A rabbit hops to
~/.minimax/skills/No repo-local dirs, just a home that thrills!resolveToolSkillsDirpicks the right path, Global skills written, avoiding the wrath Of leftover commands — the adapter's not there, So MiniMax Code floats free in the air! 🌟
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 27.59% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title 'feat: add MiniMax Code skills support' directly and accurately summarizes the main change—adding MiniMax Code as a supported OpenSpec tool with global skills support. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
@alfred-openspec Thanks for the review. I pushed a follow-up update that splits the init summary for skills and commands.
- Skill counts now report only skill target directories.
- Command counts only include tools with a command adapter and report the adapter’s actual output directories.
- Adapterless tools like
minimax-codeno longer report command output locations; they only show the skipped-commands message. - Also cleaned up the path-separator-sensitive test assertions.