contributing
Skill1 starsChanged 3 months agoMITView on GitHub
How to contribute to the Shinbo repository — the house standards, which layer to rebuild for a given change, how to run a dev instance (and a second one that will not fight the first), how to run against the packaged build, the six checks, and how to verify a change in the real app. Use for any change to Shinbo's own desktop, crates, or harness code, or when asked how to build, run, check, or package this repo.
- Installs packages
13 other projects use a version of this.
Adopted by
Most recently taken up by
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
- rokokol/contributing-skilltheir own version, first seen Sep 15, 2026
- crmne/ruby_llmtheir own version, first seen Sep 14, 2026
- cloudflare/cloudflare-docstheir own version, first seen Sep 14, 2026
- Dpro-at/Tel-Agenttheir own version, first seen Sep 13, 2026
- ZaxbyHub/opencode-swarmtheir own version, first seen Sep 5, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- kortix-ai/suna★ 20ksame name
- cloudflare/cloudflare-docs★ 5.3ksame name
- crmne/ruby_llm★ 4.4ksame name
- GoogleCloudPlatform/cloud-foundation-fabric★ 2.1ksame name
- Dpro-at/Tel-Agent★ 1.1ksame name
- butterbase-ai/butterbase-skills★ 533same name
- ZaxbyHub/opencode-swarm★ 485same name
- GoogleCloudPlatform/race-condition★ 234same name
- Dqz00116/skill-lib★ 22same name
- wcollins/skills-and-specs-lab★ 3same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- harness/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- start-shinboSkill
- releasingSkill
- sibling-reposSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Validate at the trust boundary: Every IPC parameter, NDJSON line, imported manifest and model-supplied argument is parsed and bounded where …
- Very specific: line 39
Start feature branches from dev and open PRs against dev.
- Very specific: line 44
When preparing or updating a feature PR, write its ## Release notes section from the completed changes using releasing.
- Very specific: line 97
All six. Nothing else is a check — just check runs two of them and is not the list.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Contributing to Shinbo
Read first
AGENTS.md is the contract, not a style guide. The rule
that catches everyone: no comments, anywhere — TypeScript, Rust, Zig, CSS,
shell, config, and doc comments (///, /** */, JSDoc) count. Delete the ones
you find in files you are already editing. Only tool-mandated lines survive:
shebangs, license headers on vendored files, and directives like
// @ts-expect-error or #![allow(...)].
The rest of the standards:
- Layer boundaries stay visible.
desktop/mainowns windows, shortcuts, IPC and every privileged runtime;desktop/srcis a sandboxed renderer with no Node and no Electron imports;desktop/sharedis what both agree on and may not import Electron;crates/hostis the NDJSON bridge;crates/coreowns durable Markdown records;harness/owns the agent loop. Filesystem, process, network, image and model work never moves into the renderer. - Validate at the trust boundary. Every IPC parameter, NDJSON line, imported
manifest and model-supplied argument is parsed and bounded where it arrives.
desktop/main/ipc.tsanddesktop/main/tools.tsare the house style. The guard goes in the shared function, not in each caller. - No new dependency, crate, trait, service locator or plugin framework until a second real implementation needs the boundary. One implementation is not a boundary.
- Shortest diff that works, fewest files.
- One runnable check for non-trivial logic.
node:testfiles indesktop/test/*.test.ts; copy a neighbour's shape. harness/is a fork of vercel-labs/fx, Apache-2.0. Readharness/FORK.mdbefore touching it and keep it honest;LICENSEandTHIRD_PARTY_NOTICES.mdstay.
Start feature branches from dev and open PRs against dev. Squash-merge
features with a conventional PR title. Only a prepared release on dev is
promoted to main, using a merge commit. See releasing.
Preserve unrelated work already in the checkout.
When preparing or updating a feature PR, write its ## Release notes section
from the completed changes using releasing. Keep the
notes current as the PR changes; squash merging preserves them for the release.
Running it
Three ways, and they are not interchangeable.
| Command | What you get | |
| Dev | npm run dev | Builds host + native + main, starts Vite, launches Electron against it. Only desktop/src/** hot-reloads |
| Prod-ish | npm --prefix desktop start | Same builds, no Vite — Electron runs the built bundle. Closest thing to the shipped app without packaging |
| Packaged | npm run package:mac | Release Rust + ReleaseSafe Zig + electron-packager → desktop/release/Shinbo-darwin-arm64/Shinbo.app. Apple silicon only; signed with the Developer ID Application identity in your keychain when there is one (or SHINBO_CODESIGN_IDENTITY), ad hoc otherwise, so privacy grants survive rebuilds |
First clone:
npm install --prefix desktop
npm run devscripts/dev.mjs is strictly sequential and has no watcher. A change to
main/, shared/, crates/, harness/ or native/ means quit and rerun
npm run dev. A main-process edit that was not rebuilt and relaunched shows up
as red No handler registered for 'shinbo:…' in the window — that is a stale main
process, not your bug.
A second instance, without killing the first
A running Shinbo holds Electron's single-instance lock, so a plain electron .
exits silently with code 0 and looks like a build failure. Give the second one
its own profile, and its own data root so it does not edit real threads:
cd desktop && SHINBO_DATA_DIR=/tmp/shinbo-dev-data ./node_modules/.bin/electron . \
--user-data-dir=/tmp/shinbo-dev-profile --remote-debugging-port=9223The unsigned dev binary never gets macOS notification permission — only the packaged app is prompted.
Rebuild only the layer you touched
| Changed | Build with | Then |
desktop/src | npm --prefix desktop run build:renderer | reload the window |
desktop/main, desktop/shared | npm --prefix desktop run build:main | relaunch Electron |
crates/ | npm --prefix desktop run build:host | relaunch |
harness/ | npm --prefix desktop run build:harness | relaunch |
desktop/native/*.m, *.c | npm --prefix desktop run build:native | relaunch |
Checks
All six. Nothing else is a check — just check runs two of them and is not the
list.
npm --prefix desktop run check
cargo fmt --all -- --check
cargo check --workspace --locked --all-targets
cargo test --workspace --locked
cargo clippy --workspace --locked --all-targets -- -D warnings
(cd harness && zig build test)npm run check is test → typecheck → lint → renderer build. Never run two at
once: concurrent Vite builds clash over dist-renderer.
Verifying
Launching is not verifying. Visible or platform work is not done until the real app has been launched and the changed interaction exercised.
SHINBO_CDP_PORT=9223 node desktop/scripts/drive.mjs \
'return await window.shinbo.request("snapshot", {})'
node desktop/scripts/shot.mjs 9223 /tmp/shinbo-shots 1440 900drive.mjs evaluates against the real window.shinbo bridge — the same path a
click takes. Its argument is an async function body, so it needs return.
shot.mjs reloads first, so it picks up a renderer rebuild but not a main one.
A screenshot that disagrees with the source is a stale bundle: rebuild, confirm
over CDP, then believe the picture.
Report what you did not verify. Privacy permissions, VoiceOver, display geometry, signing and non-macOS paths are called out, not implied.
Deeper
releasing— conventional PR titles, the generated changelog, CI, and how a build reaches a releasedocs/development.md— every npm script, the full repo map, toolchain pins, packaging and the open release blockersdocs/architecture.md— process boundaries and the trust modeldocs/data.md— every file and environment variabledocs/troubleshooting.md— when it breaksdocs/design-system.md— the renderer's visual contract
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
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.

