Create
Entry point for Creation Mode. Works in any coding agent with workspace access.
Triggers
,
,
,
implement from OriginMind
,
use what we just discussed
.
For search-only (no build), use search-creative-dna instead.
No API key required
Do not block on missing
. Do not Read
.
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
again.
Do not run a long planning interview here instead of the app.
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.
Ready → build
Continue when there is a substantive recent conversation or the user names a
/
:
- Bootstrap — search-creative-dna once per shell. If , Connect OriginMind.
- 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.
Creative DNA — step 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
.originmind/om_project.config.json
using the workspace/project context. Only call when config has no match.
- 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 / .
- Both empty — no substantive messages and no usable / / after probe → Both empty → stop.
- 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.
Save — step 5
Save to OriginMind only when
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
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.
Connect OriginMind — one time
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
— works across all repos. No copy-paste, one setup forever.
- app.originmind.ai → sign in → left panel → below Add new project → API key
- Repo :
ORIGINMIND_API_KEY=om_live_your_key_here
- Gitignore . Bootstrap again — 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
, verifies API.
Bootstrap — each new terminal
Load the key from
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.
bootstraps for you when it runs API calls.
Cloud writes
| 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.
Errors
- 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