claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Delegates tasks to the MiniMax CLI (mmx) via delegation-core. Use when delegation-core selects MiniMax or large-context batch work is needed.
$ npx -y skills add athola/claude-night-market --skill minimax-delegation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/minimax-delegationContext preview
The summary Claude sees to decide when to auto-load this skill.
Delegates tasks to the MiniMax CLI (mmx) via delegation-core. Use when delegation-core selects MiniMax or large-context batch work is needed.
name: minimax-delegation description: Delegates tasks to the MiniMax CLI (mmx) via delegation-core. Use when delegation-core selects MiniMax or large-context batch work is needed. alwaysApply: false category: delegation-implementation tags: - minimax - cli - delegation - large-context dependencies: - delegation-core tools: - mmx-cli - delegation_executor.py usage_patterns: - mmx-cli-integration - large-context-analysis - bulk-processing complexity: intermediate model_hint: standard estimated_tokens: 600 progressive_loading: true modules: - modules/minimax-specifics.md references: - delegation-core/shared-shell-execution.md
This skill implements `conjure:delegation-core` for the official MiniMax CLI, `mmx`. It provides MiniMax-specific authentication, quota management, and command construction.
For shared delegation patterns, see `Skill(conjure:delegation-core)`.
**Installation:**
Install the official CLI, published as `mmx-cli` and maintained by MiniMax at `https://github.com/MiniMax-AI/cli`. It requires Node.js 18 or later and installs a binary named `mmx`.
npm install -g mmx-cli mmx --version
Install `mmx-cli` by that exact name. Unrelated third-party packages publish a binary called `minimax`, and this skill never invokes that name.
**Authentication:**
Credentials are managed by the CLI, not by an environment variable. `mmx` stores them in `~/.mmx/config.json`.
mmx auth login # interactive: OAuth or an API key mmx auth login --api-key sk-xxxxx # non-interactive, for CI mmx auth status # canonical readiness check
`mmx auth status` is what `delegation_executor.py --verify` runs. A successful `mmx --version` alone does not mean the CLI is authenticated.
**Regions:** MiniMax serves a global region (`api.minimax.io`) and a mainland China region (`api.minimaxi.com`). API keys are issued per region and are not interchangeable. API-key login detects the matching region by probing both, so no manual base URL is normally needed. Set the region explicitly with `mmx config set --key region --value cn` or the `MINIMAX_REGION` environment variable.
# Basic file analysis python scripts/delegation_executor.py minimax "Analyze this code" --files src/main.py # With specific model python scripts/delegation_executor.py minimax "Summarize" --files src/ --model MiniMax-M3 # Verify the CLI is installed and authenticated python scripts/delegation_executor.py minimax --verify
The executor reads the requested files and inlines their contents into the prompt, because `mmx` has no `@path` context syntax. Inlined context is capped at 96 KiB to stay inside the operating system limit on a single argument, and any remainder is reported in the prompt and the log.
# Basic command mmx text chat --message "Analyze this code" # Specific model mmx text chat --model MiniMax-M3 --message "Summarize this design" # JSON output mmx text chat --message "Extract the function names" --output json # File contents must be passed in, not referenced mmx text chat --message "Review this: $(cat src/main.py)"
mmx text chat --message "..." > delegations/minimax/$(date +%Y%m%d_%H%M%S).md
The shared delegation executor can auto-select the best service:
uv run python scripts/delegation_executor.py auto "Analyze large codebase" \ --files src/
For MiniMax-specific models, CLI options, cost reference, and troubleshooting, see `modules/minimax-specifics.md`.
delegated. A missing installation or failed authentication is reported and stops execution.
skill or in `Delegator.SERVICES["minimax"]` invokes a binary named `minimax`.
appears in a prompt sent to `mmx`.
`delegations/minimax/YYYYMMDD_HHMMSS.md` (timestamp format matching the Quick Start example), and that file exists on disk after delegation.
not invoked. MiniMax delegation only runs when delegation-core routes to it.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.