maimemo-markji-api
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "maimemo-markji-api" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-20f13295a6ae8430f7c1b5caf9029eeee3201406109386f78c521597ca07c6f6. Verify the upstream source and version against https://skillhub.cn/skills/user_f5bfb364/maimemo-markji-api before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Manage MaiMemo memory cards via the official MaiMemo Open API and detect pro membership: used to query folders, decks, chapters and cards; upload or query media files; and create or update cards after a safe preview. Triggered when the user mentions MaiMemo Open API, Markji deck/chapter/card, OpenAPI ID, MAIMEMO_TOKEN, 403, or “markji plus required.”
Introduction source: third_party · user_f5bfb364 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: maimemo-markji-api
description: 使用墨墨官方开放 API 管理墨墨记忆卡,并识别专业版会员权限。适用于查询文件夹、牌组、章节和卡片,上传或查询媒体文件,以及安全预览后新建、更新卡片;当用户提到墨墨记忆卡官方 API、MaiMemo OpenAPI、Markji 牌组/章节/卡片、OpenAPI ID、MAIMEMO_TOKEN、403 或 markji plus required 时使用。墨墨记忆卡官方 API
仅使用墨墨官方开放接口完成墨墨记忆卡操作。默认使用简体中文与用户沟通。
使用前提
- 告知用户:墨墨记忆卡官方开放 API 是墨墨记忆卡专业版会员功能。
- 即使 Token 有效,账号没有专业版会员权限时也会返回 HTTP
403 Forbidden。 - 先用
folders或decks --limit 1做只读权限检查,再准备上传、新建或更新操作。 - 遇到
code: common.permission_denied且info: markji plus required时,判断为专业版会员权限不足;不要优先让用户重置 Token 或修改请求格式。 - 提示用户开通或恢复墨墨记忆卡专业版会员,确认会员已在当前账号生效后再重试只读请求。
数据源边界
- 仅调用生产地址
https://open.maimemo.com/open/api/v1,除非用户明确要求测试环境。 - 只实现当前官方 OpenAPI 文档公开的接口和字段。
- 把牌组、章节、卡片、文件的 ID 都视为 OpenAPI ID;不要把网页链接里的内部 ID 当成 OpenAPI ID。
- 官方声明与生产接口冲突时,采用已经过真实响应验证的生产请求结构,并把差异记录到参考文档;不要猜测或索取内部 ID。
- 当官方文档未定义卡片正文语法、媒体引用语法或其他字段时,明确说明缺少依据,不自行推断。
- 需要精确字段时读取 references/official-api.md。
认证
按以下优先级获取凭证:
- 首选:墨墨记忆卡网页版:登录
https://www.markji.com/,点击右上角“开放 API”→“复制 API Key”。有效期未确认,按长期敏感凭证处理;页面提供“重新生成”按钮。 - 次选:开放平台直达页:登录后打开
https://open.maimemo.com/open/api/v1/tokens/openapi。该页面当前提供 24 小时临时 Token,适合短期使用。 - App 内获取:打开墨墨背单词 App,进入“我的 → 更多设置 → 实验功能 → 开放 API”。该 Token 为长期/永久凭证,适合持续使用,但泄露风险持续时间也更长。
默认采用适合普通用户的简单方式:允许用户直接把 API Key 或 Token 输入聊天框。不要求用户配置环境变量,也不要求重启 Codex。
收到凭证后:
- 不复述、不展示、不写入文件、日志或长期配置,仅在当前任务的进程内存中使用。
- 将聊天中收到的凭证视为本任务的当前凭证,直到凭证过期、用户提供新凭证或任务结束;后续请求直接复用。
- 不读取、检查或依赖系统剪贴板。即使用户之后复制了牌组名等其他内容,也不得因此要求重新复制 Token 或回复“已复制”。
- 用户已经提供凭证和明确的只读目标时,立即执行查询;不要增加凭证确认步骤。
- 如果凭证因上下文截断或平台脱敏而确实无法取得,明确说明“当前已无法读取先前的 Token”,再请用户重新发送一次;不要谎称剪贴板内容发生变化,也不要把问题归咎于第二种官方获取方式。
- 通过
Authorization: Bearer <Token>调用接口。 - 不要在每个请求前重复安全提醒;在任务结束时提醒一次即可。
- 网页版 API Key 按长期凭证处理;用完后可回到“开放 API”弹窗点击“重新生成”,并更新仍在使用该 Key 的工具。
- 24 小时临时 Token 会自动过期,适合一次性任务;只需说明到期时间,不必要求重新生成。
- App 长期/永久 Token 按长期凭证处理;不再需要或担心泄露时,通过官方提供的凭证管理入口更换。
只有用户主动询问更安全或长期自动化的配置方式时,才提供隐藏输入或 MAIMEMO_TOKEN 环境变量方案;它们是可选高级用法,不得成为正常使用的前置条件。
命令入口
使用 Python 3 直接运行脚本:
python "<本技能目录>/scripts/maimemo_markji.py" --help
用户在聊天中直接提供凭证时,Codex 可在内部把它作为全局 --token 参数传给脚本;该参数必须放在子命令之前。不要在面向用户的回复、命令示例或执行结果中展示真实值:
python <脚本> --token <当前聊天中的凭证> folders
这只是技能内部的简单模式执行入口,用户不需要自己运行或理解该命令。
常用命令:
| 任务 | 命令 |
|---|---|
| 查询文件夹 | folders |
| 查询牌组 | decks |
| 查询单个牌组 | deck |
| 查询章节列表 | chapters |
| 查询指定章节 | chapter |
| 查询卡片 | card |
| 上传文件 | upload-file |
| 查询文件 | query-files |
| 新建卡片 | create-card |
| 更新卡片 | update-card |
先运行具体命令的 --help 查看参数。例如:
python "<本技能目录>/scripts/maimemo_markji.py" decks --help
工作流程
只读查询
- 先运行
folders或decks获取 OpenAPI ID。 - 再运行
chapters --deck-id <ID>获取章节 OpenAPI ID。 - 需要检查现有内容时运行
card --deck-id <ID> --card-id <ID>。 - 将 API 返回值概括为中文;保留 ID 原文,不自行转换。
上传文件
- 检查本地文件存在、大小合理且类型符合用户意图。
- 先运行不带
--execute的upload-file,只展示预览,不发送请求。 - 用户确认后再添加
--execute上传。 - 记录官方返回的文件 OpenAPI ID。
- 将已上传图片作为卡片内容时,使用生产接口已验证的
[Pic#ID/<文件 OpenAPI ID>#],先预览新建或更新请求,确认后执行并回查卡片的content与files。 - 将已上传音频作为卡片内容时,使用生产接口已验证的
[Audio#A,ID/<文件 OpenAPI ID>#],同样预览、确认并回查content与files。墨墨可能转码音频,不要用上传前后哈希必须一致作为成功条件。 - 图片和音频以外的媒体没有真实写入证据时,不要类推语法。
官方 OpenAPI YAML 把上传请求体标成 application/json,但同一接口的明确文字说明要求 multipart/form-data 且文件字段名为 file。2026-07-24 生产接口已验证脚本成功上传 JPEG 和 MP3,并分别写入、回查卡片。
新建卡片
- 获取并核对牌组、章节的 OpenAPI ID。
- 准备 UTF-8 卡片正文;默认
grammar_version=3,但不要声称该版本由当前文档明确推荐。 - 只把牌组和章节 OpenAPI ID 放在 URL 路径中;JSON 请求体发送
card,可选发送order。不要在请求体中重复发送deck或chapter。 - 先运行不带
--execute的create-card查看路径和 JSON 请求体。 - 用户确认后,只创建一张测试卡并使用返回的卡片 OpenAPI ID 回查。
- 只有用户确认测试卡正确后,才继续多张创建。
生产接口已验证:请求体重复发送 deck、chapter 会把合法的 OpenAPI ID 错按内部 MongoDB ObjectId 校验并返回 HTTP 400;从请求体移除这两个字段后创建和回查均成功。不要尝试寻找内部 ObjectId。
更新卡片
- 先用
card获取当前卡片。 - 向用户展示旧正文与新正文的差异。
- 先运行不带
--execute的update-card。 - 用户明确确认后再添加
--execute。
安全规则
- 不输出、记录或回显
MAIMEMO_TOKEN。 - 用户直接在聊天中提供凭证时,传给当前进程的
MaimemoClient(..., token=...);使用本技能脚本时,可通过隐藏的全局--token参数传入。不得把真实值写进面向用户的命令示例、文件或日志。 - 不得使用剪贴板保存、校验或重新获取已经发到聊天中的 Token。
- 环境变量和隐藏输入仅作为用户主动要求的可选高级方案。
- 不在用户未确认时执行新建、更新或上传。
- 批量操作必须先预览,再执行一个测试项,最后再次确认是否继续。
- 创建请求发生超时或连接中断时,不要自动重试;先查询章节,避免重复创建卡片。
- 更新请求失败时重新读取卡片,再判断是否需要重试。
- 遵守官方频控:10 秒 20 次、60 秒 40 次、5 小时 2000 次。
- 当前官方记忆卡 API 没有公开创建文件夹、创建牌组、创建章节或删除卡片的接口;不要伪造这些能力。
真实联调
没有 Token 时只做离线检查:运行 --help、预览新建/更新请求、预览文件上传以及编译检查。用户可直接在聊天中输入 Token;收到后仅在当前任务内存中使用,并按以下顺序联调:
- 确认当前墨墨账号已开通墨墨记忆卡专业版会员。
- 运行
folders验证 Token 与专业版权限。 decks --limit 5chapters --deck-id <ID>- 预览并上传一个小文件
- 查询该文件
- 预览并创建一张测试卡
- 读取测试卡核对结果
任何真实写入都继续遵循预览和确认规则。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高价值/高频刚需,直接解决用户明确的核心任务痛点,显著提升日常高频场景的效率
- 功能明确且实用,适用于查询、上传、新建、更新墨墨记忆卡内容,满足专业用户需求
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
- description中明确列出了使用场景和触发关键词,能够有效且准确地触发该Skill
Highlights
- Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整
- 文档结构清晰,包含使用前提、数据源边界、认证、命令入口、工作流程、安全规则、真实联调等多个章节
Highlights
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
- 文档中明确指出了API的认证方式、请求格式、错误处理、安全规则等,确保了执行的可靠性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 31, 35, 46
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- open.maimemo.com
- www.markji.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.