agentleFS
tronschelltronschell/shinbo/.agents/skills/start-shinbo/SKILL.md

start-shinbo

Skill1 starsChanged 3 months agoMITView on GitHub

Start, restart, or visually verify Shinbo from this repository in isolated Vite development mode, as a packaged production app, or with the production renderer bundle. Not for publishing a release.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run commands from the repository root.

    line 8
  2. Very specific:

    Use this by default for development and UI validation.

    line 13
  3. Very specific:

    Only desktop/src/ hot-reloads without an Electron restart.

    line 16
  4. Very specific:

    If desktop/node_modules/.bin/electron is missing, install the locked desktop dependencies with npm --prefix desktop ci before building.

    line 31
  5. Very specific:

    Use two owned long-running terminal sessions.

    line 34
  6. Very specific:

    Wait until Vite prints http://127.0.0.1:5173/, then start Electron in the second session:

    line 41
  7. Very specific:

    Keep the fixed /tmp paths so development settings survive relaunches.

    line 51
  8. Very specific:

    If the user asked to launch Shinbo for their use, leave both sessions running.

    line 78
  9. Distinctive:

    When the user asks to build this checkout as production, package and open its unsigned local bundle:

    line 96
  10. Very specific:

    Do not rebuild merely to start an existing app.

    line 104
  11. Very specific:

    Use this only when the user wants unbundled Electron against dist-renderer without Vite.

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Start Shinbo

Run commands from the repository root. Preserve every Shinbo process you did not start unless the user explicitly asks to stop or restart it.

Isolated development

Use this by default for development and UI validation. It runs beside production Shinbo without taking its profile or touching its data.

Only desktop/src/** hot-reloads without an Electron restart. Build only the layer that changed:

  • Cold checkout or missing outputs: run all three commands below, sequentially.
  • desktop/main/** or desktop/shared/**: build:main, then relaunch Electron.
  • crates/** or harness/**: build:host, then relaunch Electron.
  • desktop/native/**: build:native, then relaunch Electron.
  • desktop/src/**: let Vite hot-reload; do not rebuild or relaunch.
npm --prefix desktop run build:host
npm --prefix desktop run build:native
npm --prefix desktop run build:main

If desktop/node_modules/.bin/electron is missing, install the locked desktop dependencies with npm --prefix desktop ci before building.

Use two owned long-running terminal sessions. Do not hide them behind &. Start Vite first:

npm --prefix desktop exec -- vite --host 127.0.0.1 --strictPort

Wait until Vite prints http://127.0.0.1:5173/, then start Electron in the second session:

SHINBO_DATA_DIR=/tmp/shinbo-dev-data \
SHINBO_DEV_SERVER_URL=http://127.0.0.1:5173 \
./desktop/node_modules/.bin/electron ./desktop \
  --user-data-dir=/tmp/shinbo-dev-profile

Keep the fixed /tmp paths so development settings survive relaunches. If port 5173 is occupied, do not stop an unknown listener. Use the next free port, update SHINBO_DEV_SERVER_URL, and suffix both /tmp paths with that port.

Localhost binding and GUI launch may need sandbox escalation. Retry the same command with the required permission instead of changing the host, disabling Electron security, or launching production Shinbo.

Verify the right window

For Computer Use, target the development Electron bundle by its resolved full path, not by the ambiguous names Shinbo or Electron. Put the literal path in the app property:

await sky.get_app_state({ app: "/absolute/repository/desktop/node_modules/electron/dist/Electron.app", disableDiff: true })

The correct window reports Window: "Shinbo" and the Vite URL. Fetch fresh app state after every interaction before reusing accessibility element indexes.

Restart and stop

For a main, host, or native change, stop only the Electron session, rebuild the affected layer, and relaunch it while Vite stays up. Restart both sessions only for Vite configuration or dependency changes.

If the user asked to launch Shinbo for their use, leave both sessions running. If the instance exists only for a validation task, send Ctrl-C to Electron and then Vite when the task is finished. Never use pkill or killall; production Shinbo may be running beside it.

npm run dev performs the full builds and starts Vite and Electron, but it uses the default profile and data and launches Electron after a fixed delay. Use it only when no other Shinbo is running and isolated state is intentionally unwanted.

Production Shinbo

Production means a packaged Shinbo.app, not electron .. Start the installed release by exact path so macOS cannot choose another registered copy:

open /Applications/Shinbo.app

When the user asks to build this checkout as production, package and open its unsigned local bundle:

npm run package:mac
open "$PWD/desktop/release/Shinbo-darwin-arm64/Shinbo.app"

Do not rebuild merely to start an existing app. Packaged Shinbo has no hot reload and uses production data.

Production-renderer smoke test

Use this only when the user wants unbundled Electron against dist-renderer without Vite. It rebuilds the app but is not packaged production:

SHINBO_DATA_DIR=/tmp/shinbo-smoke-data \
npm --prefix desktop start -- \
  --user-data-dir=/tmp/shinbo-smoke-profile

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.