create

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Create

Create

Entry point for Creation Mode. Works in any coding agent with workspace access.
Creation Mode 的入口。可在任何具备 workspace 访问权限的 coding Agent 中运行。

Triggers

触发条件

/create
,
build
,
Creation Mode
,
implement from OriginMind
,
use what we just discussed
.
For search-only (no build), use search-creative-dna instead.
/create
、
build
、
Creation Mode
、
implement from OriginMind
、
use what we just discussed
。
仅搜索(不构建)时,改用 search-creative-dna。

No API key required

无需 API key

Do not block on missing
ORIGINMIND_API_KEY
. Do not Read
.env
.
不要因缺少
ORIGINMIND_API_KEY
而阻塞。不要 Read
.env
。

Not 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
/create
again.
Do 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:
  1. Start a session — open https://app.originmind.ai, sign in, and start a voice or chat session about what you want to build.
  2. 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.
  3. Run
    /create
    again when you have a session or knowledge in the project.
当两者均为空时——没有实质性 conversation,并且根据 Creative DNA — 第 3 步 探测后也没有 Creative DNA——停止。不要构建。
告知用户:
  1. 开始 session——打开 **https://app.originmind.ai**,登录,并开始一次关于你想构建什么的语音或聊天 session。
  2. 添加知识——在应用中添加能体现你风格的内容(statement、bio、plan、reflections),或返回此处并要求 save to reference。不要添加源代码。
  3. 当 project 中已有 session 或知识后,再次运行
    /create
    。

Ready → build

已就绪 → 构建

Continue when there is a substantive recent conversation or the user names a
projectId
/
conversationId
:
  1. Bootstrap — search-creative-dna once per shell. If
    MISSING_KEY
    , Connect OriginMind.
  2. 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.
  3. Creative DNA — Creative DNA — step 3 below.
  4. Work locally — Use thread + any DNA insights. Identify objectives and implement in the workspace; match repo conventions.
  5. 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,或用户指定了
projectId
/
conversationId
时继续:
  1. Bootstrap——每个 shell 执行一次 search-creative-dna。如果返回
    MISSING_KEY
    ,请执行 连接 OriginMind。
  2. 近期 thread——fetch-recent-messages:解析 project,选择实质性 conversation,加载 messages 或 transcript。输出 project id、conversation id、title 和 message count。从 conversation 中提取关键 insights。
  3. Creative DNA——执行下方的 Creative DNA — 第 3 步。
  4. 在本地工作——结合 thread 与 DNA insights。确定目标并在 workspace 中实现;遵循 repo 约定。
  5. 保存创作成果——仅当输出为 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:
  1. Resolve project — use the same project resolved by fetch-recent-messages in step 2. If the thread is empty, apply config-based inference from
    .originmind/om_project.config.json
    using the workspace/project context. Only call
    GET /api/v1/projects
    when config has no match.
  2. Extract keywords or short phrases from the thread, or broad terms from the project name if the thread is empty.
  3. Run search-creative-dna — one
    POST .../query
    per term; start with small
    vectorK
    /
    neighborLimit
    .
  4. Both empty — no substantive messages and no usable
    matches
    /
    results
    /
    graph
    after probe → Both empty → stop.
  5. 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.
  6. 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:
  1. 解析 project——使用第 2 步中 fetch-recent-messages 解析出的同一个 project。如果 thread 为空,则根据 workspace/project 上下文,使用
    .originmind/om_project.config.json
    中的 config-based inference。仅当 config 中没有匹配项时,才调用
    GET /api/v1/projects
    。
  2. 提取关键词或短语——从 thread 中提取;如果 thread 为空,则从 project 名称中提取宽泛词语。
  3. 运行 search-creative-dna——每个 term 执行一次
    POST .../query
    ;先使用较小的
    vectorK
    /
    neighborLimit
    。
  4. 两者均为空——探测后没有实质性 messages,且没有可用的
    matches
    /
    results
    /
    graph
    → 两者均为空 → 停止。
  5. DNA 为空、存在 thread——跳过进一步的 DNA 搜索;基于 thread 构建。用一句话说明:用户可以逐步添加 statement、bio、plan、strategy 或 reflections。
  6. 存在 DNA——任一探测返回可用命中结果:不要跳过。运行完整搜索;prioritize graph;将 DNA insights 与 thread 一同纳入构建;如果 thread 为空,则仅基于 DNA 构建。

Save — step 5

保存 — 第 5 步

Save to OriginMind only when
/create
produced a creative document, not when it produced code.
Auto-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
project_id
as the session. Echo creation id.
Do 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.
仅当
/create
产出 creative document 时才保存到 OriginMind,而不要在产出 code 时保存。
当主要输出为以下任一类型时,自动保存:
  • 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 相同的
project_id
。输出 creation 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_KEY
:
Method 1 — one-click OAuth (Recommended)
powershell
. ./skills/create/scripts/setup-oauth.ps1
bash
bash ./skills/create/scripts/setup-oauth.sh
Opens browser, sign in, API key created and saved to
~/.originmind/.env
— works across all repos. No copy-paste, one setup forever.
Method 2 —
.env.local
  1. app.originmind.ai → sign in → left panel → below Add new project → API key
  2. Repo
    .env.local
    :
ORIGINMIND_API_KEY=om_live_your_key_here
  1. Gitignore
    .env.local
    . Bootstrap again —
    /create
    bootstraps for you.
Do not paste the key in chat.
Method 3 — connect script
powershell
. ./skills/create/scripts/setup-originmind.ps1
bash
bash ./skills/create/scripts/setup-originmind.sh
Same result as method 2 — opens app, writes
.env.local
, verifies API.
如果 bootstrap 返回
MISSING_KEY
:

Bootstrap — each new terminal

方法 1 — 一键 OAuth(推荐)

Load the key from
.env.local
into the current shell:
powershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1
bash
source ./skills/create/scripts/bootstrap-originmind-env.sh
Does not print the secret.
/create
bootstraps for you when it runs API calls.
powershell
. ./skills/create/scripts/setup-oauth.ps1
bash
bash ./skills/create/scripts/setup-oauth.sh
打开浏览器,登录后即可创建 API key 并将其保存到
~/.originmind/.env
——适用于所有 repo。无需复制粘贴,一次设置永久生效。

Cloud writes

方法 2 —
.env.local

ActionWhen
SaveDefault when output is a plan, statement, proposal, etc. — not code builds — Save — step 5
Save to Reference PanelUser asks — save-to-reference (shelf + vector_only DNA)
Do not shelf during
/create
unless asked.
  1. app.originmind.ai → 登录 → 左侧面板 → Add new project 下方 → API key
  2. Repo
    .env.local
    :
ORIGINMIND_API_KEY=om_live_your_key_here
  1. 将
    .env.local
    加入 Gitignore。再次执行 Bootstrap——
    /create
    会自动为你完成 bootstrap。
不要在聊天中粘贴 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.ps1
bash
bash ./skills/create/scripts/setup-originmind.sh
与方法 2 相同——打开 app、写入
.env.local
并验证 API。
—

Bootstrap — 每个新终端

—
将
.env.local
中的 key 加载到当前 shell:
powershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1
bash
source ./skills/create/scripts/bootstrap-originmind-env.sh
不会打印 secret。
/create
在执行 API 调用时会自动为你完成 bootstrap。
—

云端写入

—
操作使用时机
保存当输出为 plan、statement、proposal 等时的默认行为——不适用于代码构建——保存 — 第 5 步
保存到 Reference Panel用户明确要求时——save-to-reference(shelf + vector_only DNA)
除非用户要求,否则不要在
/create
期间执行 shelf 操作。
—

错误

—
  • 401: API key 无效——在 app 中创建新 key
  • 402 / 429: 停止——https://app.originmind.ai/
  • 两者均为空: 停止——需要 app session 并添加知识——两者均为空 → 停止
  • DNA 为空、存在 thread: 仅基于 thread 构建
  • 存在 DNA: 必须搜索并使用 insights