save-to-reference
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSave to reference
保存到参考资料
Push content onto the project's Reference Panel as a document block via multipart ( on the server).
POST /api/v1/referenceskind: documentDo not use JSON for this skill. Always upload a file (write a temp file if the note only exists in chat).
kind: "text".mdServer auto-ingests document blocks as . Do not call a separate project ingest after a successful save.
vector_onlyNot this skill: Plans/statements as creations → save-creation. Research tasks for voice pickup → research queue mode (needs a conversation). DNA-only upload without a shelf row → app (Knowledge / Documents). This skill is the Cursor path for shelf + searchable DNA.
通过 multipart ,将内容以 document 区块的形式推送到项目的 Reference Panel 上(服务器端使用 )。
POST /api/v1/referenceskind: document不要为此 skill 使用 JSON。始终上传 文件(如果笔记仅存在于聊天中,则写入临时文件)。
kind: "text".md服务器会将 document 区块自动摄取为 。保存成功后,不要调用单独的项目摄取操作。
vector_only不适用于此 skill: 将计划/陈述作为创作内容 → save-creation。用于语音采集的研究任务 → research 队列模式(需要一次对话)。仅上传 DNA 而不创建 shelf 行 → app(Knowledge / Documents)。此 skill 就是用于 shelf + 可搜索 DNA 的 Cursor 路径。
Triggers
触发条件
/save-to-reference- "save to reference", "put this on the shelf", "Reference Panel", pin/save a note or md doc to the shelf
/save-to-reference- "save to reference"、"put this on the shelf"、"Reference Panel",或要求将笔记或 md 文档固定/保存到 shelf
API
API
- Base URL:
https://api.originmind.ai - — multipart
POST /api/v1/references+project_id(file/ document).md - — resolve project when needed
GET /api/v1/projects - Auth: or Bearer JWT
X-OriAI-Api-Key
- 基础 URL:
https://api.originmind.ai - — 使用 multipart 传递
POST /api/v1/references+project_id(file/ document).md - — 在需要时解析项目
GET /api/v1/projects - 认证:或 Bearer JWT
X-OriAI-Api-Key
Bootstrap
Bootstrap(初始化)
Once per shell:
powershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.shUser install:
. "$HOME/.cursor/skills/create/scripts/bootstrap-originmind-env.ps1"MISSING_KEY. ./skills/create/scripts/setup-oauth.ps1.sh.env.local.env每个 shell 执行一次:
powershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.sh用户安装:
. "$HOME/.cursor/skills/create/scripts/bootstrap-originmind-env.ps1"MISSING_KEY. ./skills/create/scripts/setup-oauth.ps1.sh.env.local.envResolve project_id
解析 project_id
- User names or project name →
proj_....GET /api/v1/projects - in env.
ORIGINMIND_CREATIVE_DNA_PROJECT_ID - Config-based inference (no API call) — →
.originmind/om_project.config.json(or legacyprojects[]). Score names against user message + context per search-creative-dna. Use if ≥80%.defaultProjectId - Else most recently updated project from .
GET /api/v1/projects
- 用户指定 或项目名称 →
proj_...。GET /api/v1/projects - 环境变量中的 。
ORIGINMIND_CREATIVE_DNA_PROJECT_ID - 基于配置的推断(无 API 调用) — →
.originmind/om_project.config.json(或旧版projects[])。按照 search-creative-dna 的方法,将名称与用户消息和上下文进行评分。得分 ≥80% 时使用。defaultProjectId - 否则,使用 返回的最近更新项目。
GET /api/v1/projects
Workflow — always a document file
工作流——始终使用文档文件
- Bootstrap + resolve .
project_id - Obtain a local path:
.md- User named a file → use it.
- Content only in chat → write a temp (filename from
.mdor a short slug, e.g.# Title). Lead withnote.md. Max ~50k chars of body. No secrets / source dumps.# Title
- Multipart upload:
powershell
curl.exe -sS -X POST "https://api.originmind.ai/api/v1/references" `
-H "X-OriAI-Api-Key: $env:ORIGINMIND_API_KEY" `
-F "project_id=proj_..." `
-F "file=@path/to/note.md;type=text/markdown"bash
curl -sS -X POST "https://api.originmind.ai/api/v1/references" \
-H "X-OriAI-Api-Key: $ORIGINMIND_API_KEY" \
-F "project_id=proj_..." \
-F "file=@path/to/note.md;type=text/markdown"- Echo reference ,
id(kind), label/filename, ingest status if present.document - Delete the temp if you created one.
.md - Do not follow with a separate ingest call.
Allowed document types: , , , , , . Prefer .
.md.markdown.txt.pdf.doc.docx.md- 执行 Bootstrap 并解析 。
project_id - 获取本地 路径:
.md- 用户指定了文件 → 使用该文件。
- 内容仅存在于聊天中 → 写入临时 (文件名取自
.md或简短 slug,例如# Title)。以note.md开头。正文最多约 50k 个字符。不得包含密钥或源代码转储。# Title
- 使用 multipart 上传:
powershell
curl.exe -sS -X POST "https://api.originmind.ai/api/v1/references" `
-H "X-OriAI-Api-Key: $env:ORIGINMIND_API_KEY" `
-F "project_id=proj_..." `
-F "file=@path/to/note.md;type=text/markdown"bash
curl -sS -X POST "https://api.originmind.ai/api/v1/references" \
-H "X-OriAI-Api-Key: $ORIGINMIND_API_KEY" \
-F "project_id=proj_..." \
-F "file=@path/to/note.md;type=text/markdown"- 输出 reference 的 、
id(kind)、label/filename(标签/文件名),以及(如果存在)ingest status(摄取状态)。document - 如果创建了临时 ,将其删除。
.md - 不要随后调用单独的 ingest。
允许的文档类型:、、、、、。优先使用 。
.md.markdown.txt.pdf.doc.docx.mdOptional URL / YouTube
可选的 URL / YouTube
Only when the user explicitly wants a link on the shelf. Links are not auto-ingested. Not the default for this skill.
json
{ "project_id": "proj_...", "kind": "url", "url": "https://...", "link_title": "optional" }仅当用户明确希望将链接放到 shelf 上时使用。链接不会自动摄取。 这不是此 skill 的默认行为。
json
{ "project_id": "proj_...", "kind": "url", "url": "https://...", "link_title": "optional" }Errors
错误
| Code | Action |
|---|---|
| MISSING_KEY / 401 | Connect OriginMind |
| 404 | Wrong |
| 400 | Missing |
| 413 | File too large |
| 402 / 429 | Stop — https://app.originmind.ai/ |
| 代码 | 操作 |
|---|---|
| MISSING_KEY / 401 | 连接 OriginMind |
| 404 | |
| 400 | 缺少 |
| 413 | 文件过大 |
| 402 / 429 | 停止 — https://app.originmind.ai/ |