---
name: eureka-opportunity-room
description: Turn a technology list (CSV export) or a folder of documents into a working MindrianOS opportunity room in one step - runs Eureka on it, builds the result hub with its 3D map, opens one room for the job, files the strongest candidate pairs as evidence and opportunity-bank entries, works the room with Larry and hands over the first move. Use when the user says "find opportunities in my list", "run Eureka on this export", "open a room on this job", or gives a CSV of technologies and asks MindrianOS to do the work.
argument-hint: "<path to the CSV export or the folder> [room name]"
---
# Eureka opportunity room (one step)
The user invoking this skill with a path is their approval for the offline steps (1 to 4). The
room step (5 onward) sends room content to the model provider when Larry works it, so it waits
for the ONE card in Step 5. Do not ask anything else. Say in one line what will happen, then go.
One line to say first:
"I'll run Eureka on your list on this machine, build the result page with its 3D map, then ask
you once before I open a MindrianOS room and work the best leads in it."
Every result stays a candidate, not verified. Never call a pair an opportunity without that label.
## Paths
- `INPUT` = the path the user gave. If it is a CSV file, use its parent folder as the input
folder only when the CSV is the only file there; otherwise copy the CSV into
`~/eureka-jobs/<job>/input/` and use that folder. Never write into the user's own folder.
- `CSV` = the CSV file the user gave (or its copy under `$JOB/input/`).
- `SIDECAR` = a `.csv` file in the same folder as `CSV` whose header row is exactly
`case_number,text`, or a file the user names; else unset.
- `JOB` = `~/eureka-jobs/<job>` where `<job>` is a short slug from the room name or the file name.
- `ENGINE` = `~/.mindrian/eureka-engine` (or `$MINDRIAN_EUREKA_ROOT`).
- Run every `eureka` command as `uv run --project "$ENGINE" --no-sync eureka ...`.
## Step 1 - Engine ready
Run `uv run --project "$ENGINE" --no-sync --offline eureka doctor`. If the folder is missing or
the doctor shows a FAIL, run the setup skill first (`/mindrian-eureka:mindrian-eureka-setup`),
then continue. Long timeouts: up to 10 minutes per step.
## Step 2 - Pick the mapping
Read the CSV header.
- It has `case_number`, `title` and `abstract` (a technology-transfer export such as JHTV):
<!-- ‹guest · 2026-11-24› -->
use `$ENGINE/examples/mappings/technology-audit-export.json`. Run once with `--dry-run`. If the
dry run names columns that are missing, copy the mapping to `$JOB/mapping.json`, remove only
the missing names from it, and use the copy. Tell the user which columns were dropped.
- Any other CSV: copy that mapping to `$JOB/mapping.json` and set `id_column`, `title_column`
and `text_columns` to the CSV's own id, title and description columns; empty the outcome and
carried lists that do not exist. Keep its `room_sections` block (needed for seeding).
- A folder of documents (no CSV): run without `--mapping`; Step 4 then skips seeding and the
room gets the top pairs from `ranked-pairs.md` instead.
When `SIDECAR` is set, add `--text-sidecar "$SIDECAR"` to the Step 3 run line and report the
coverage line the run prints. With the shipped technology-audit mapping, the side-car text fills
the blank `abstract` column.
## Step 3 - Run and build the hub (offline)
```bash
uv run --project "$ENGINE" --no-sync eureka run "$INPUT_FOLDER" --out "$JOB/run" --mapping "$MAPPING" [--text-sidecar "$SIDECAR"]
uv run --project "$ENGINE" --no-sync eureka hub "$JOB/run" --out "$JOB/hub"
```
The `--text-sidecar "$SIDECAR"` part is optional: add it only when `SIDECAR` is set.
Open `$JOB/hub/hub.html` in the default browser (`open` on macOS, `start` on Windows,
`xdg-open` on Linux). Tell the user the hub has the ranked pairs, a filter by class
(open next to licensed, both open, both licensed) and the Graph view with the 3D map of how the
technologies connect. Report the class count lines the run printed.
## Step 4 - Choose the leads (offline)
```bash
uv run --project "$ENGINE" --no-sync eureka seed "$JOB/run" --list --json
```
Pick up to 5 `cross` pairs, then up to 2 `open_open` pairs, in the order listed, plus the first
spine (if any). For each pick write a seed:
```bash
uv run --project "$ENGINE" --no-sync eureka seed "$JOB/run" --pair <pair_id> --out "$JOB/seeds/<pair_id>"
uv run --project "$ENGINE" --no-sync eureka seed "$JOB/run" --cluster <record_id> --out "$JOB/seeds/cluster"
```
<!-- ‹guest · 2026-11-24› -->
## Step 5 - The one card: open the room
New room: call `room_create` with `name` = the room name, `slug` = the job slug, and `purpose` =
one plain sentence that names the job, the number of leads, and the boundary: "Working these
leads with Larry sends their text to the model provider. The run and the hub stayed on this
machine." `room_create` returns an F.0 approval gate (options `approve`, `reject`, `defer`;
`approving: ["approve"]`). No room folder exists until that gate is answered.
Fire THAT gate as the one card of this skill (AskUserQuestion on Claude Code), with the gate's
own options. No other card fires before it. Then call `gate_answer` once with that gate id:
- the user picked approve: `chosen ["approve"]`, verdict `approve`;
- the user picked reject: `chosen ["reject"]`, verdict `reject`;
- the user picked defer: `chosen ["defer"]`, verdict `defer`.
Rerun on the same job: when `room_create` answers `room_exists`, do not change the slug and do
not create a room. Call `room_bind` with that slug and confirm the binding. No birth gate came
back, so fire one F.0 card with `gate_render` (`kind: general`; options `approve` "File the new
leads into this room and work them with Larry", `reject`, `defer`; `approving: ["approve"]`).
The approve description holds the same boundary sentence. Answer it with `gate_answer` by the
same verdict rule.
Only one card fires in a run. Approving it opens the room (or uses the existing one) AND works
the leads with Larry; there is no separate "file only" choice. The user can stop after filing by
saying so. On a reject or a defer, end with the hub path. Nothing else is written.
## Step 6 - Fill the room
1. Call `room_bind` to the room (the new one, or the existing one on a rerun) and confirm the
binding before any filing.
2. Pick order: the cross pair seeds, then the open_open pair seeds, then the cluster seed. From
the cluster seed keep at most the first 5 bank entries, in `seed.json` order. Deduplicate the
bank entries by `pair_id`: keep the first one in pick order.
3. Keep evidence only for record ids that are the `left_id` or `right_id` of a kept entry,
deduplicated by record id. Verify each `evidence_sha256` in `seed.json` against its file
before filing; stop on a mismatch. File each kept evidence file once, byte for byte, into
`solution-design` with `artifact_file`.
4. Draft the What if statements ONCE, before filing the bank entries. For each kept entry, draft
one statement in this form: "What if <A capability> and <B capability> together <solved
problem> for <who>?". Draft it from the two records' full text in
<!-- ‹guest · 2026-11-24› -->
`$JOB/run/corpus/records.jsonl` (for a technology-audit export: the `Problem solved` and
`End user` blocks and the rest of the record text). Do not draft it from the evidence
excerpt, which is cut at 1600 characters. Never draft it from a person or money column.
Write all statements to `$JOB/what-if.json` as one JSON object:
```json
{"<pair_id>": {"what_if": "What if ...?", "problem": "...", "who": "...",
"author": "Larry (drafted)", "basis": "<the seed's statement.text>"}}
```
The file stays in the local job folder; reading it needs no card beyond Step 5. Any later
step that shows a What if statement reads it from `$JOB/what-if.json`; it never drafts a
second one.
5. File each kept bank entry into `opportunity-bank`, one artifact per entry, as: the What if
line, the label "drafted, candidate, not verified", a blank line, `Basis (seed statement):`
and the seed's `statement.text` unchanged. Set `review_status: proposed`, `critic: pending`,
`banked: false`, `epistemic_type: hypothesis` and the pair class. Do not change the seed
files.
6. File one provenance artifact in `references`: the run `manifest.json` sha256, each
`seed.json` sha256, `seed_writer` and `engine_versions`, and the hub path.
7. Do not write a BRIEF; there is no governed path for it yet.
8. After the last filing, call `room_state` with `compute-state`.
## Step 7 - Work the room
Do not use `find-connections` or the eureka perspective recall for these leads: in an earlier
live run one read another room and the other returned no candidates for technology pairs.
Instead:
1. Read the filed bank entries.
2. Group them. A group = the kept entries that share a record id, joined transitively; an entry
that shares no record with another entry is a group of its own.
3. File ONE synthesis artifact in `opportunity-bank` that holds, for each group: the What if
lines of its entries (read from `$JOB/what-if.json`), the one fact that would decide it, and
the first move. Label it candidate, not verified, with `epistemic_type: hypothesis`.
4. Call `suggest_next` for the first move.
Do not grade, bank or confirm anything. Every bank entry stays `proposed` until the user decides.
## Step 8 - Hand over
<!-- ‹guest · 2026-11-24› -->
Report in short plain lines, one line for each item (the top 3 leads take one line each):
- the hub path (and that the 3D map is in its Graph view),
- the run counts (records, pairs, class counts) and any dropped columns,
- the side-car coverage line the run printed (only when a side-car was used),
- the room name and what was filed (evidence files, bank entries),
- the name of the synthesis artifact,
- the count of What if statements in `$JOB/what-if.json`,
- the top 3 leads in one line each, labelled candidate, not verified,
- one next move from `suggest_next`.
To rerun on a new export: run this skill again with the new file; it writes a new `$JOB/run`.
## Rules
- Claim only what ran. Quote the run and seed summary lines; never invent counts.
- The people and money columns never enter the room; only what the seed files carry.
- Offline until the Step 5 card is approved. No web search. No Brain call with room text.
- On any failure, show the tool's own error and its printed Fix line, then stop.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.