Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques

| MiniApp | What it does | Author |
| --- | --- | --- |
| [Prompt Enhancer](plugins/skypata/prompt-enhancer/) | Rewrite a one-line request into a complete prompt for a coding assistant; the model list and reasoning levels come from MiniMax Code's own configuration, and the rewrite runs on your signed-in account | [skypata](https://github.com/skypata) |
| [Postman Lite](plugins/ssugarr/postman-lite/) | A lightweight local API request tool: build requests, send them through a local proxy that sidesteps browser CORS limits, and inspect responses, with collections kept as plain JSON | [ssugarr](https://github.com/ssugarr) |
| [Weekly Planner](plugins/alanhean/weekly-planner/) | A local weekly planner: add tasks with a date and a priority, review them day by day, tick them off, and track the week's completion rate | [Alanhean](https://github.com/Alanhean) |
| [天气 · 新闻看板](plugins/lixiangroir-ideal/weather-news-board/) | One dashboard page for live weather, A-share and gold, silver, crude oil and Bitcoin quotes, and six switchable news columns, with precious metals always shown in CNY per gram | [lixiangroir-Ideal](https://github.com/lixiangroir-Ideal) |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求

| MiniApp | 功能 | 作者 |
| --- | --- | --- |
| [提示词增强器](plugins/skypata/prompt-enhancer/) | 把一句话改写成可以直接交给编码助手的完整提示词,模型清单与推理等级取自 MiniMax Code 自己的配置,改写走你已登录的账号 | [skypata](https://github.com/skypata) |
| [Postman Lite](plugins/ssugarr/postman-lite/README.zh-CN.md) | 轻量的本地 API 请求工具:构建请求、通过本地代理转发(绕过浏览器 CORS 限制)、查看响应,集合以纯 JSON 保存 | [ssugarr](https://github.com/ssugarr) |
| [周计划](plugins/alanhean/weekly-planner/README.zh-CN.md) | 本地周计划:手动录入任务、日期与优先级,按天查看安排,勾选完成并跟踪本周完成率 | [Alanhean](https://github.com/Alanhean) |
| [天气 · 新闻看板](plugins/lixiangroir-ideal/weather-news-board/) | 一个看板页同时看实时天气、A 股与黄金白银原油比特币行情、六个可切换的新闻栏目,贵金属统一按人民币每克显示 | [lixiangroir-Ideal](https://github.com/lixiangroir-Ideal) |
Expand Down
17 changes: 17 additions & 0 deletions plugins/skypata/prompt-enhancer/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"schemaVersion": 1,
"name": "prompt-enhancer",
"displayName": "提示词增强器",
"version": "1.0.0",
"description": "把一句话改写成可直接提交给编码助手的完整提示词;模型清单取自 MiniMax Code 自己的配置。",
"author": "skypata",
"icon": "icon.png",
"category": "Productivity",
"exampleQueries": [
"打开提示词增强器",
"把这句需求改写成完整提示词"
],
"apps": [],
"mcpServers": [],
"skills": []
}
21 changes: 21 additions & 0 deletions plugins/skypata/prompt-enhancer/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 skypata

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.
69 changes: 69 additions & 0 deletions plugins/skypata/prompt-enhancer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Prompt Enhancer (`prompt-enhancer`)

Rewrite a one-line request into a complete prompt you can hand straight to a coding assistant.

The rewrite template is fixed and bundled with the app: it keeps your language, never answers the
request, and expands it into scope, deliverable, format and acceptance criteria. The model list and
the reasoning levels come from MiniMax Code's own runtime configuration, and each rewrite runs
through the local `mcode` CLI, so it uses the account you are already signed in to.

The page is deliberately small: one text box, one model picker, one send button. After a rewrite the
text box holds the rewritten prompt and an undo button appears in its corner; one click puts your
original sentence back.

## Install

Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins
directory as `prompt-enhancer/` (`~/.minimax/plugins/prompt-enhancer/` by default; the root
README's Install section explains where that directory is). Restart MiniMax Code and ask the Agent to
"Open Prompt Enhancer".

The `mcode` CLI ships with MiniMax Code and must be reachable from the app's process. If it is
missing, the app reports "找不到 mcode 命令" instead of failing silently.

## Tested environment

- MiniMax Code 3.1.20 on macOS 15.8.1 (arm64), installed from this directory and opened through the
Agent.
- Client acceptance exercised: the model list loaded from the runtime configuration; the model
picker opened and drilled from models into reasoning levels; a rewrite round-tripped - original
sentence in, rewritten prompt out, undo restored the original sentence; the selected reasoning
level reached the CLI as `--effort`.
- Not verified: Windows; a host with no configured model; a host where the `mcode` CLI is not on
PATH.

## Data & access

- Files: reads the MiniMax Code runtime configuration file `config.yaml` to build the model list.
It is located through `MAVIS_DATA_DIR`, `MINIMAX_DATA_DIR`, `__MAVIS_PARENT_DATA_DIR` or
`MCODE_CONFIG_DIR`, otherwise `~/.minimax/config.yaml`. **That layout is not a supported API
and may change between releases.** Nothing else is read. Nothing is written outside the
Host-provided data directory.
- Network: the page makes no network requests of its own. The spawned `mcode` CLI talks to your
own MiniMax Code account and provider.
- Processes: spawns the `mcode` CLI (`mcode exec`) once per rewrite and waits for it. The child is
killed on timeout and when the board is disposed. The temporary file it writes stays in the
Host-provided data directory and is deleted right after it is read.
- Agent turns: none. Conversations read: none. Tools called: none.
- Microphone, camera and notifications: none. Host navigation read: none.
- State: the typed text is kept in the page's local storage as view state and restored on reload.
Nothing else is stored.

## Files

```text
.minimax-plugin/plugin.json Plugin manifest
package.json Mini App declaration
miniapp/miniapp.json Payload roots, Node entry, page route
miniapp/client/index.html The page served at /dashboard
miniapp/client/styles.css Page styles
miniapp/client/app.js Page behaviour: model picker, rewrite, undo
miniapp/node/server.mjs Node entry: start(context) -> { dispose }
miniapp/node/prompts/system-prompt.md The fixed rewrite system prompt
miniapp/node/prompts/user-prompt-template.md The fixed rewrite user template
icon.png Plugin icon
```

## License

[MIT](./LICENSE)
60 changes: 60 additions & 0 deletions plugins/skypata/prompt-enhancer/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 提示词增强器 (`prompt-enhancer`)

把一句话改写成可以直接交给编码助手的完整提示词。

[English](./README.md) | 简体中文

改写模板固定内置在应用里:保持你的语言、不替你作答,把请求展开成范围、交付物、格式和验收标准。
可用模型与推理等级来自 MiniMax Code 自己的运行时配置,每次改写都通过本机 `mcode` CLI 执行,
用的是你已经登录的账号。

界面刻意做得很小:一个输入框、一个模型选择器、一个发送按钮。改写完成后输入框里就是改写后的
提示词,右上角会出现一个撤销按钮,点一下就把你原来那句放回去。

## 安装

把本目录(含隐藏的 `.minimax-plugin/`)复制到 MiniMax Code 的插件目录,命名为
`prompt-enhancer/`(默认是 `~/.minimax/plugins/prompt-enhancer/`,具体位置见根 README 的
Install 一节)。重启 MiniMax Code 后让 Agent "打开提示词增强器"。

`mcode` CLI 随 MiniMax Code 一起安装,必须能被应用进程找到;找不到时页面会提示
"找不到 mcode 命令",不会静默失败。

## 测试环境

- MiniMax Code 3.1.20,macOS 15.8.1(arm64),从本目录安装并通过 Agent 打开。
- 客户端验收覆盖:模型清单从运行时配置读出;模型选择器可从模型下钻到推理等级;一次改写完整
往返(输入原句 → 得到改写提示词 → 撤销恢复原句);所选推理等级以 `--effort` 传给 CLI。
- 未验证:Windows;没有配置任何模型的宿主;`mcode` CLI 不在 PATH 上的宿主。

## 数据与权限

- 文件:读取 MiniMax Code 的运行时配置文件 `config.yaml` 来生成模型清单,位置由
`MAVIS_DATA_DIR`、`MINIMAX_DATA_DIR`、`__MAVIS_PARENT_DATA_DIR` 或 `MCODE_CONFIG_DIR`
决定,否则是 `~/.minimax/config.yaml`。**该布局不是受支持的 API,可能随版本变化。**
不读其他文件,也不往宿主给的数据目录之外写任何东西。
- 网络:页面自身不发网络请求;被拉起的 `mcode` CLI 走你自己已登录的 MiniMax Code 账号与服务商。
- 进程:每次改写拉起一次 `mcode` CLI(`mcode exec`)并等待其结束;超时或应用被停止时会结束
该子进程。它写出的临时文件留在宿主给的数据目录里,读取后立即删除。
- Agent 回合:无。读取的会话:无。调用的工具:无。
- 麦克风、相机、通知:无。读取宿主导航:无。
- 状态:输入的文本作为视图状态存在页面 localStorage 里,重载后恢复;不保存其它内容。

## 文件

```text
.minimax-plugin/plugin.json 插件清单
package.json Mini App 声明
miniapp/miniapp.json 运行时载荷根、Node 入口、页面路由
miniapp/client/index.html /dashboard 上返回的页面
miniapp/client/styles.css 页面样式
miniapp/client/app.js 页面逻辑:模型选择、改写、撤销
miniapp/node/server.mjs Node 入口:start(context) -> { dispose }
miniapp/node/prompts/system-prompt.md 固定的改写 system 提示词
miniapp/node/prompts/user-prompt-template.md 固定的改写 user 提示词模板
icon.png 插件图标
```

## 许可证

[MIT](./LICENSE)
Binary file added plugins/skypata/prompt-enhancer/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading