diff --git a/plugins/RedMaple-mc2/minimax-code-checkin/LICENSE b/plugins/RedMaple-mc2/minimax-code-checkin/LICENSE new file mode 100644 index 00000000..a7739757 --- /dev/null +++ b/plugins/RedMaple-mc2/minimax-code-checkin/LICENSE @@ -0,0 +1,23 @@ +MIT License + +Copyright (c) 2026 RedMaple-mc2 + +MiniMax Code 每日签到 Plugin — released under MIT. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/plugins/RedMaple-mc2/minimax-code-checkin/README.md b/plugins/RedMaple-mc2/minimax-code-checkin/README.md new file mode 100644 index 00000000..0dd3dbe2 --- /dev/null +++ b/plugins/RedMaple-mc2/minimax-code-checkin/README.md @@ -0,0 +1,77 @@ +# MiniMax Code 每日签到 + +> Complete MiniMax Code's daily check-in to claim free credits and manage the schedule of the +> automated check-in. v1.0.0. + +## What it does + +- Runs MiniMax Code's built-in daily check-in to claim free credits + (400/day, 1000 on day 4 and day 7, 4000/week max, valid 30 days). +- Manages the cron that schedules the automated check-in: query current + schedule, change the time, enable/disable. + +## Install + +After the plugin is merged into +[MiniMax-Code-Plugins](https://github.com/MiniMax-AI/MiniMax-Code-Plugins): + +```text +/plugin marketplace add MiniMax-AI/MiniMax-Code-Plugins +/plugin install minimax-code-checkin@RedMaple-mc2 +``` + +## Example queries + +- "帮我签到 MiniMax Code 领积分" +- "把自动签到改到晚上 8 点" +- "什么时候自动签到?" +- "关掉自动签到" + +## Requirements + +- **MiniMax Code ≥ v3.0.58** (released 2026-08-05). The check-in + button lives on `Settings → Usage` (Web) or `/checkin` (desktop TUI). +- **Logged-in MiniMax Code session.** Either a Web session cookie or a + desktop app OAuth cache with a valid access token. The skill will + ask the user to log in on first run if neither is present. + +## Network access + +None. The skill does not call any external HTTP endpoint. It operates +against the user's already-open MiniMax Code session through the local +LLM-driven workflow and `mavis cron` CLI commands. + +## Data use + +The skill does not collect, store, or transmit any user data outside +the user's MiniMax Code session. It reads the existing OAuth cache or +browser cookie only to detect login state, and never writes those +tokens anywhere. + +## Capabilities + +| Type | Path | Notes | +|---|---|---| +| Skill | `skills/minimax-code-checkin/SKILL.md` | Run check-in + manage cron schedule | + +## Plugin structure + +This plugin lives at plugins/RedMaple-mc2/minimax-code-checkin/ inside the +community registry. + +```text +minimax-code-checkin/ +├── .minimax-plugin/plugin.json +├── README.md +├── LICENSE +├── icon.png +└── skills/ + └── minimax-code-checkin/ + ├── SKILL.md + └── references/ + └── checkin-flow.md +``` + +## License + +MIT. See `LICENSE`. \ No newline at end of file diff --git a/plugins/RedMaple-mc2/minimax-code-checkin/icon.png b/plugins/RedMaple-mc2/minimax-code-checkin/icon.png new file mode 100644 index 00000000..5fb1e9d1 Binary files /dev/null and b/plugins/RedMaple-mc2/minimax-code-checkin/icon.png differ diff --git a/plugins/RedMaple-mc2/minimax-code-checkin/plugin.json b/plugins/RedMaple-mc2/minimax-code-checkin/plugin.json new file mode 100644 index 00000000..b7a41077 --- /dev/null +++ b/plugins/RedMaple-mc2/minimax-code-checkin/plugin.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", + "name": "minimax-code-checkin", + "version": "1.0.0", + "description": "Complete MiniMax Code\u0027s daily check-in to claim free credits (400/day, 1000 on day 4 and day 7, 4000/week, valid 30 days) and manage the schedule of the automated check-in.", + "author": { + "name": "RedMaple-mc2" + }, + "license": "MIT", + "homepage": "https://github.com/MiniMax-AI/MiniMax-Code-Plugins/tree/main/plugins/RedMaple-mc2/minimax-code-checkin", + "repository": "https://github.com/MiniMax-AI/MiniMax-Code-Plugins", + "keywords": [ + "minimax-code", + "checkin", + "credits", + "cron", + "automation" + ] +} diff --git a/plugins/RedMaple-mc2/minimax-code-checkin/skills/minimax-code-checkin/SKILL.md b/plugins/RedMaple-mc2/minimax-code-checkin/skills/minimax-code-checkin/SKILL.md new file mode 100644 index 00000000..e907fdfe --- /dev/null +++ b/plugins/RedMaple-mc2/minimax-code-checkin/skills/minimax-code-checkin/SKILL.md @@ -0,0 +1,150 @@ +--- +name: minimax-code-checkin +description: | + Complete MiniMax Code's daily check-in to claim free credits + (400/day, 1000 on day 4 and day 7, 4000/week, valid 30 days) AND + manage the schedule of that automated check-in. Use when the user + says "签到", "MiniMax Code 签到", "每日签到", "领积分", + "check in MiniMax Code", when a cron task fires the daily + check-in, OR when the user says "改签到时间", "把签到改到X点", + "每天X点签到", "调定时", "定时几点", "关掉自动签到", + "开启自动签到". Do NOT use for: querying credit balance, + redeeming credits, signing in to third-party platforms + (掘金/CSDN/...), modifying unrelated cron tasks, or anything + outside MiniMax Code's built-in check-in. +--- + +# MiniMax Code Daily Check-in + +## Inputs to collect + +- **Region**: 国内 (`agent.minimaxi.com`) or 海外 (`agent.minimax.io`). + Pick by inspecting the user's existing MiniMax Code cookie or the + desktop app's logged-in account. Don't ask the user every time — + remember the decision in the session. +- **Cron schedule** (only when the user asks to create or change + the scheduled run): default 09:00 local; confirm the time zone + if not obvious. + +## Procedure + +0. **Branch on intent.** Decide which of three modes the request is: + - **A. Run now** — user wants the check-in executed right now + (default for "签到", "领积分", cron fire, etc.). Go to step 1. + - **B. Schedule query** — user asks "什么时候签到", "定时几点". + Run `mavis cron list --agent_name mavis`, locate the task named + `minimax-code-checkin-daily`, run `mavis cron get `, + surface its schedule + enabled state. Skip step 1–4. + - **C. Schedule change** — user asks "改到 X 点", "关掉自动签到", + "改成每周一三五签到", etc. Run `mavis cron list` to find the + task, then call `mavis cron update --cron_id ...` with the + new schedule / enabled flag. Confirm with the user before + disabling if the request is ambiguous (e.g. "停一下签到"). + Skip step 1–4. + +1. **Confirm login state** before doing anything else (only for mode A). + - Web path: check the browser cookie store for either + `agent.minimaxi.com` or `agent.minimax.io`. If a valid session + cookie exists, treat the user as logged in. + - Desktop path (fallback): inspect the MiniMax Code desktop app's + OAuth cache (Shared OAuth Core). On Windows this lives under + `%APPDATA%\MiniMax Code\`; on macOS under + `~/Library/Application Support/MiniMax Code/`. A non-empty + access token counts as logged in. + - Why: the check-in endpoint rejects anonymous requests; without + a valid session the click just refreshes the login page. + +2. **Probe the check-in surface.** The button has moved across + versions: + - **Web**: `Settings → Usage` page on the region URL, OR a + dedicated `/checkin` route added in v3.0.58 (2026-08-05). + - **Desktop TUI**: `/checkin` slash command (also v3.0.58+). + - Try the version-aware route first; fall back to the older + `Settings → Usage` surface if the dedicated route is missing. + - Why: blindly clicking the wrong surface wastes a turn and may + hit a non-MCS element. + +3. **Click the "签到" / "立即签到" button**. Stop if the button is + already in a "已签到" / disabled state. + - Why: clicking an already-claimed check-in is treated as abuse + by the backend and can flag the account. + +4. **Read the response** and surface a short summary: + - today reward (400 normally, 1000 on day 4 / day 7) + - current streak day count + - total credit balance + +## Output contract + +Reply in chat with one concise line, in Chinese: + +| Situation | Message | +|---|---| +| Success | `✅ 已签到:+400 积分(连续 N 天),余额 M` | +| Success with bonus | `✅ 已签到:+1000 积分(连续 4/7 天奖励),余额 M` | +| Already done today | `ℹ️ 今日已签到(连续 N 天),余额 M` | +| Not logged in | `⚠️ 未登录 MiniMax Code )。请在浏览器登录后回我"签到"重试。Web 入口:设置→用量;桌面端:TUI 输入 /checkin` | +| Surface missing | `⚠️ 没找到签到入口,MiniMax Code 版本 X.Y.Z(需 ≥ v3.0.58)。请升级或参考 references/checkin-flow.md` | +| Schedule queried | `ℹ️ 当前自动签到:每天 09:00(Asia/Shanghai),状态 enabled。下次触发:` | +| Schedule updated | `✅ 自动签到已改为 ),下次触发:` | +| Schedule disabled | `⏸ 已暂停自动签到(cron 已 disabled)。需要重启请说"开启自动签到"` | +| Schedule enabled | `▶ 已恢复自动签到,下次触发:` | + +## Failure handling + +- **Not logged in**: report the region URL, point to Web/TUI entry, + and ask the user to log in then re-trigger the skill. Never try to + fill credentials yourself, and skip the run-mode steps (2/3/4) — + they would just bounce off the login page. +- **Check-in surface missing**: report the detected MiniMax Code + version and remind the user to upgrade to ≥ v3.0.58. +- **Already checked in today**: do NOT click again — repeat clicks + may be flagged as abuse. +- **Network error**: retry once with a 3s backoff; on second failure, + report the error verbatim and exit. +- **MiniMax Code version < v3.0.58**: surface not guaranteed to + exist. Tell the user to upgrade before relying on this skill. +- **Cron task not found** (`mavis cron list` returns nothing named + `minimax-code-checkin-daily`): offer to create it — show the + default command, ask for the desired schedule + time zone before + running `mavis cron create`. +- **`mavis cron update` fails**: report the error verbatim; do NOT + silently fall back to the previous schedule. Confirm with the user. + +## Examples + +**Input** (cron at 09:00): +> 执行 MiniMax Code 每日签到 + +**Output**: +> ✅ 已签到:+400 积分(连续 3 天),余额 1200 + +**Input** (user just signed in, on day 4): +> 我刚登录 MiniMax Code,帮我把今天的签到也领了 + +**Output**: +> ✅ 已签到:+1000 积分(连续 4 天奖励),余额 5400 + +**Input** (already signed in earlier today): +> 今天签到了吗 + +**Output**: +> ℹ️ 今日已签到(连续 4 天),余额 5400 + +**Input** (user changes the cron time): +> 把自动签到改到晚上 8 点 + +**Output**: +> ✅ 自动签到已改为 `0 20 * * *`(Asia/Shanghai),下次触发:今天 20:00 + +**Input** (user disables the cron): +> 关掉自动签到 + +**Output**: +> ⏸ 已暂停自动签到(cron 已 disabled)。需要重启请说"开启自动签到" + +**Input** (user asks when check-in runs): +> 什么时候自动签到? + +**Output**: +> ℹ️ 当前自动签到:每天 09:00(Asia/Shanghai),状态 enabled。下次触发: \ No newline at end of file diff --git a/plugins/RedMaple-mc2/minimax-code-checkin/skills/minimax-code-checkin/references/checkin-flow.md b/plugins/RedMaple-mc2/minimax-code-checkin/skills/minimax-code-checkin/references/checkin-flow.md new file mode 100644 index 00000000..016becbb --- /dev/null +++ b/plugins/RedMaple-mc2/minimax-code-checkin/skills/minimax-code-checkin/references/checkin-flow.md @@ -0,0 +1,41 @@ +# Check-in Flow Reference + +Background material for `minimax-code-checkin`. The SKILL.md body only +references this file when the version-aware route fails or the user +needs manual steps. + +## Versions and entry points + +- **< v3.0.58**: no first-class check-in button. Skip the skill — + tell the user to upgrade. +- **v3.0.58 — 2026-08-05**: check-in added. + - Web: `Settings → Usage` page, top card. + - Desktop TUI: `/checkin` slash command. + - Reward: 400 / day, 1000 on day 4 and day 7, 4000 / week max. + - Credit validity: 30 days from issuance. +- **≤ 2026-09-15 (H3 promo)**: check-in credits and paid credits both + usable for MiniMax H3 video generation. After 2026-09-15: paid + credits only for H3. + +## Region URLs + +- 国内: `https://agent.minimaxi.com/docs/code/account/usage` (doc), + `https://agent.minimaxi.com` (app). +- 海外: `https://agent.minimax.io/docs/code/account/usage` (doc), + `https://agent.minimax.io` (app). + +Pick by inspecting the user's existing cookie or by which +`agent.minimax*.com` URL the user opens first. + +## Manual fallback (if automation never works) + +1. Open the region URL above in a browser where you're logged in. +2. Settings → Usage → click 立即签到. +3. Done. + +## Why this file exists + +`SKILL.md` is kept short so the model can decide quickly. This +reference carries the version timeline, region URLs, and the manual +fallback so a model that probes a non-existent surface can still +help the user. \ No newline at end of file