create
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate
Create
Entry point for Creation Mode. Works in any coding agent with workspace access.
Creation Mode 的入口。可在任何具备 workspace 访问权限的 coding Agent 中运行。
Triggers
触发条件
/createbuildCreation Modeimplement from OriginMinduse what we just discussedFor search-only (no build), use search-creative-dna instead.
/createbuildCreation Modeimplement from OriginMinduse what we just discussed仅搜索(不构建)时,改用 search-creative-dna。
No API key required
无需 API key
Do not block on missing . Do not Read .
ORIGINMIND_API_KEY.env不要因缺少 而阻塞。不要 Read 。
ORIGINMIND_API_KEY.envNot ready → app
未就绪 → 应用
Stop and send the user to https://app.originmind.ai when any of:
- No api key
- No session to work from — no key and no substantive thread; or no projects; or no conversations; or empty threads
- User has only a vague idea and nothing in OriginMind yet
Tell them: sign in, start a voice session about what to build with the creative mentor, then run again.
/createDo not run a long planning interview here instead of the app.
出现以下任一情况时,停止操作并将用户引导至 **https://app.originmind.ai**:
- 没有 API key
- 没有可供使用的 session——既没有 key,也没有实质性 thread;或没有 projects;或没有 conversations;或 threads 为空
- 用户只有模糊的想法,且 OriginMind 中尚无任何内容
告知用户:登录后,使用 creative mentor 开始一次关于要构建内容的语音会话,然后再次运行 。
/create不要在此处进行冗长的规划访谈来替代应用流程。
Both empty → stop
两者均为空 → 停止
When both are empty — no substantive conversation and no Creative DNA after probe per Creative DNA — step 3 — stop. Do not build.
Tell the user:
- Start a session — open https://app.originmind.ai, sign in, and start a voice or chat session about what you want to build.
- Add knowledge — add what reflects your voice (statement, bio, plan, reflections) in the app, or return here and ask to save to reference. Not source code.
- Run again when you have a session or knowledge in the project.
/create
当两者均为空时——没有实质性 conversation,并且根据 Creative DNA — 第 3 步 探测后也没有 Creative DNA——停止。不要构建。
告知用户:
- 开始 session——打开 **https://app.originmind.ai**,登录,并开始一次关于你想构建什么的语音或聊天 session。
- 添加知识——在应用中添加能体现你风格的内容(statement、bio、plan、reflections),或返回此处并要求 save to reference。不要添加源代码。
- 当 project 中已有 session 或知识后,再次运行 。
/create
Ready → build
已就绪 → 构建
Continue when there is a substantive recent conversation or the user names a / :
projectIdconversationId- Bootstrap — search-creative-dna once per shell. If , Connect OriginMind.
MISSING_KEY - Recent thread — fetch-recent-messages: resolve project, pick substantive conversation, load messages or transcript. Echo project id, conversation id, title, message count. Extract key insights from the conversation.
- Creative DNA — Creative DNA — step 3 below.
- Work locally — Use thread + any DNA insights. Identify objectives and implement in the workspace; match repo conventions.
- Save creation — only when the output is a document — Save — step 5. Skip auto-save for code builds.
If step 2 is empty, still run step 3 (DNA probe). If both thread and DNA are empty → Both empty → stop. If thread empty but DNA present → search DNA and build from those insights; suggest an app session for latest intent.
当存在实质性的近期 conversation,或用户指定了 / 时继续:
projectIdconversationId- Bootstrap——每个 shell 执行一次 search-creative-dna。如果返回 ,请执行 连接 OriginMind。
MISSING_KEY - 近期 thread——fetch-recent-messages:解析 project,选择实质性 conversation,加载 messages 或 transcript。输出 project id、conversation id、title 和 message count。从 conversation 中提取关键 insights。
- Creative DNA——执行下方的 Creative DNA — 第 3 步。
- 在本地工作——结合 thread 与 DNA insights。确定目标并在 workspace 中实现;遵循 repo 约定。
- 保存创作成果——仅当输出为 document 时执行 保存 — 第 5 步。代码构建应跳过自动保存。
如果第 2 步为空,仍要执行第 3 步(DNA probe)。如果 thread 和 DNA 均为空 → 两者均为空 → 停止。如果 thread 为空但存在 DNA,则搜索 DNA 并基于这些 insights 构建;建议用户通过 app session 获取最新意图。
Creative DNA — step 3
Creative DNA — 第 3 步
After the thread is loaded or thread is empty — still probe DNA before deciding:
- Resolve project — use the same project resolved by fetch-recent-messages in step 2. If the thread is empty, apply config-based inference from using the workspace/project context. Only call
.originmind/om_project.config.jsonwhen config has no match.GET /api/v1/projects - Extract keywords or short phrases from the thread, or broad terms from the project name if the thread is empty.
- Run search-creative-dna — one per term; start with small
POST .../query/vectorK.neighborLimit - Both empty — no substantive messages and no usable /
matches/resultsafter probe → Both empty → stop.graph - Empty DNA, thread present — skip further DNA search; build from the thread. One brief note: they can add statement, bio, plan, strategy, or reflections over time.
- DNA present — any probe returns usable hits: do not skip. Run full search; prioritize graph; bring DNA insights into the build alongside the thread or from DNA alone if thread was empty.
无论 thread 已加载还是为空,在做决定前仍要探测 DNA:
- 解析 project——使用第 2 步中 fetch-recent-messages 解析出的同一个 project。如果 thread 为空,则根据 workspace/project 上下文,使用 中的 config-based inference。仅当 config 中没有匹配项时,才调用
.originmind/om_project.config.json。GET /api/v1/projects - 提取关键词或短语——从 thread 中提取;如果 thread 为空,则从 project 名称中提取宽泛词语。
- 运行 search-creative-dna——每个 term 执行一次 ;先使用较小的
POST .../query/vectorK。neighborLimit - 两者均为空——探测后没有实质性 messages,且没有可用的 /
matches/results→ 两者均为空 → 停止。graph - DNA 为空、存在 thread——跳过进一步的 DNA 搜索;基于 thread 构建。用一句话说明:用户可以逐步添加 statement、bio、plan、strategy 或 reflections。
- 存在 DNA——任一探测返回可用命中结果:不要跳过。运行完整搜索;prioritize graph;将 DNA insights 与 thread 一同纳入构建;如果 thread 为空,则仅基于 DNA 构建。
Save — step 5
保存 — 第 5 步
Save to OriginMind only when produced a creative document, not when it produced code.
/createAuto-save when the main output is any of:
- Proposal, plan, strategy, brief, pitch
- Artist statement, bio, reflection, essay, outline
- Other markdown or text meant to be read as creative writing
Follow save-creation: GET list → GET by id if match → PATCH if outdated, else POST. Same as the session. Echo creation id.
project_idDo not auto-save when the main output is:
- Source code, refactors, configs, tests, or repo implementation
- “We changed these files” with no standalone creative document
Local code stays in the repo. User can still ask to save explicitly.
Skip save if user says don't save, or no API key — note once how to add one. Shelf / Reference Panel still requires an explicit ask.
仅当 产出 creative document 时才保存到 OriginMind,而不要在产出 code 时保存。
/create当主要输出为以下任一类型时,自动保存:
- Proposal、plan、strategy、brief、pitch
- Artist statement、bio、reflection、essay、outline
- 其他供阅读的 markdown 或创意写作文本
按照 save-creation 执行:GET list → GET by id if match → PATCH if outdated, else POST。使用与 session 相同的 。输出 creation id。
project_id当主要输出为以下内容时,不要自动保存:
- 源代码、refactor、config、测试或 repo 实现
- “我们修改了这些文件”,且没有独立的 creative document
本地代码保留在 repo 中。用户仍可明确要求保存。
如果用户说 don't save,或没有 API key,则跳过保存——用一句话说明如何添加 key。Shelf / Reference Panel 仍需要用户明确要求。
Connect OriginMind — one time
连接 OriginMind — 一次性设置
If bootstrap returns :
MISSING_KEYMethod 1 — one-click OAuth (Recommended)
powershell
. ./skills/create/scripts/setup-oauth.ps1bash
bash ./skills/create/scripts/setup-oauth.shOpens browser, sign in, API key created and saved to — works across all repos. No copy-paste, one setup forever.
~/.originmind/.envMethod 2 —
.env.local- app.originmind.ai → sign in → left panel → below Add new project → API key
- Repo :
.env.local
ORIGINMIND_API_KEY=om_live_your_key_here- Gitignore . Bootstrap again —
.env.localbootstraps for you./create
Do not paste the key in chat.
Method 3 — connect script
powershell
. ./skills/create/scripts/setup-originmind.ps1bash
bash ./skills/create/scripts/setup-originmind.shSame result as method 2 — opens app, writes , verifies API.
.env.local如果 bootstrap 返回 :
MISSING_KEYBootstrap — each new terminal
方法 1 — 一键 OAuth(推荐)
Load the key from into the current shell:
.env.localpowershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.shDoes not print the secret. bootstraps for you when it runs API calls.
/createpowershell
. ./skills/create/scripts/setup-oauth.ps1bash
bash ./skills/create/scripts/setup-oauth.sh打开浏览器,登录后即可创建 API key 并将其保存到 ——适用于所有 repo。无需复制粘贴,一次设置永久生效。
~/.originmind/.envCloud writes
方法 2 — .env.local
.env.local| Action | When |
|---|---|
| Save | Default when output is a plan, statement, proposal, etc. — not code builds — Save — step 5 |
| Save to Reference Panel | User asks — save-to-reference (shelf + vector_only DNA) |
Do not shelf during unless asked.
/create- app.originmind.ai → 登录 → 左侧面板 → Add new project 下方 → API key
- Repo :
.env.local
ORIGINMIND_API_KEY=om_live_your_key_here- 将 加入 Gitignore。再次执行 Bootstrap——
.env.local会自动为你完成 bootstrap。/create
不要在聊天中粘贴 key。
Errors
方法 3 — 连接脚本
- 401: Invalid key — new key at app
- 402 / 429: Stop — https://app.originmind.ai/
- Both empty: Stop — app session + add knowledge — Both empty → stop
- Empty DNA, thread present: Build from thread only
- DNA present: Must search and use insights
powershell
. ./skills/create/scripts/setup-originmind.ps1bash
bash ./skills/create/scripts/setup-originmind.sh与方法 2 相同——打开 app、写入 并验证 API。
.env.local—
Bootstrap — 每个新终端
—
将 中的 key 加载到当前 shell:
.env.localpowershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.sh不会打印 secret。 在执行 API 调用时会自动为你完成 bootstrap。
/create—
云端写入
—
| 操作 | 使用时机 |
|---|---|
| 保存 | 当输出为 plan、statement、proposal 等时的默认行为——不适用于代码构建——保存 — 第 5 步 |
| 保存到 Reference Panel | 用户明确要求时——save-to-reference(shelf + vector_only DNA) |
除非用户要求,否则不要在 期间执行 shelf 操作。
/create—
错误
—
- 401: API key 无效——在 app 中创建新 key
- 402 / 429: 停止——https://app.originmind.ai/
- 两者均为空: 停止——需要 app session 并添加知识——两者均为空 → 停止
- DNA 为空、存在 thread: 仅基于 thread 构建
- 存在 DNA: 必须搜索并使用 insights