storebound/CONTRIBUTING.md
CRT ee427553bb shots check: ligatures no longer read as system-font glyphs (probe spans shaped as one run); --help on every command and group, unknown flags rejected before anything runs
Root cause: the per-character font probes were inline spans side by side, so Chrome shaped f + i into the fi ligature across them and the lone i probe reported no glyph of ours. Each probe is now its own block. The Google Fonts text= subsets keep the GSUB ligatures; regression test with a real Montserrat text= subset.

--help / -h prints the command's usage and exits 0 before any config, render or network; unknown flags exit 2 with the usage (cli/data/flags.json from tools/gen-flags.ts). Command tables moved to cli/commands.ts; ads apple reachable again; shots render --scenes rejects unknown ids at once.
2026-10-11 21:23:37 +00:00

4 KiB

Contributing

Thanks for wanting to help. storebound is my own toolchain that I open-sourced, so it stays small and opinionated, but fixes, store rule updates and new engines / AI tools are very welcome.

Setup

bun install                 # Bun 1.1+; playwright is a dev dependency (renders, web capture)
bun run ci                  # adapters fresh, tests, typecheck, secrets / personal data scrub

Try the screenshot and video pipeline on the demo game without any store account: see examples/demo-game/README.md.

Rules of the house

  • Bun + TypeScript strict, zero runtime dependencies. fetch against the official store APIs, node: built-ins, external tools (ffmpeg, xcrun, adb) only through argv builders. Playwright is resolved from the user's project.
  • Pure where possible. Rules, argv builders, plans and parsers are pure functions with tests in tests/; the IO stays in the command's run. Tests never need a store account, a simulator or a network.
  • Every write command takes --dry and is idempotent. New MCP write tools default to dry_run: true. Nothing public or irreversible (submit, release, rollout resume / complete, cancel, delete) goes into MCP.
  • Store facts need a source. When you change a size, limit or rule, cite the official page in the code comment and the skill (Apple Developer / App Store Connect Help, Play Console Help, API references) with the date you checked it.
  • Skills are the single source. Edit skills/*/SKILL.md or docs/agents-core.md, then run bun tools/gen-adapters.ts; never edit AGENTS.md, GEMINI.md, the plugin manifests or the Cursor / Copilot files by hand. Frontmatter is name + description only.
  • New or renamed flags: run bun tools/gen-flags.ts. The CLI rejects a flag a command does not read (cli/data/flags.json, generated from the commands and their imports in cli/commands.ts); a flag read with a computed name goes into DYNAMIC in that tool. tests/cli-help.test.ts fails on a stale table, on a command whose --help does anything but print its usage, and on an MCP / desktop tool that passes a flag its command does not take.
  • No secrets, no real ids, no personal data in code, tests, fixtures or examples: use com.example.*, example.com and obviously fake values. bun run ci runs the scrub.
  • No hand-written SVG. Charts come from visx, icons from Phosphor (@phosphor-icons/react in the desktop app, one per-icon import each; the site's icons are Phosphor's own files from @phosphor-icons/core), the App Store and Google Play marks from simple-icons (vendored with the licences by bun tools/site-icons.ts into site/img/icons/ and apps/desktop/src/ui/store-marks/, byte-equal to the packages), diagrams from Mermaid (docs/diagrams/*.mmd, rendered by bun tools/diagrams.ts), the desktop fixtures' art from bun tools/fixture-art.ts. The logo files (app icons, favicons, header marks, site/og.png) are PNG / ICO / ICNS from tools/brand-assets.py (brand/README.md). tests/no-handmade-svg.test.ts fails on new inline <svg> / <path> drawing in apps/desktop/src and site/*.html and on SVG files that are not vendored or rendered. These libraries are desktop dependencies (bundled by Vite) or devDependencies; the CLI package keeps zero runtime dependencies.
  • Every bug found in real use becomes a guardrail. Add an entry to docs/pitfalls.md and to skills/store-pitfalls/SKILL.md (symptom, cause, what to do, what guards it) and, where possible, a check or a test with recorded store answers that fails without the fix. A --dry run prints the plan (dryPlan in cli/lib/dry.ts), not only a count; tests/pitfalls.test.ts enforces it.
  • Plain English in docs and messages, short sentences, no marketing words.

Pull requests

One topic per PR, bun run ci green, a line in CHANGELOG.md under an "Unreleased" heading, and for anything that talks to a store: how you verified it (--dry output, a test app, or "not verified" said plainly).