# RuneStone RuneStone is a desktop workspace for Markdown notes, code, and project work in ordinary local files. A Tauri 2 host in Rust (`src-tauri/`) serves a Svelte 5 and TypeScript interface (`src/`). Optional features are plugins. Each plugin is a separate repository beside this one, for example `../RuneStone_Terminal`. The [development guide](docs/development.md#architecture) maps the source folders. ## Skills | Skill | Use it for | | --- | --- | | `asd-ste100` | All prose: docs, commit messages, PR text, code comments, error messages, card text. Lint the docs you change. | | `readme` | Any change to `README.md` | | `ui-functional-color` | Any choice or review of UI colors | | `runestone-project-management` | Boards and cards: find, select, group, delegate, and move cards to Review | ## Commands | Command | Use | | --- | --- | | `pnpm install --frozen-lockfile` | Install dependencies | | `pnpm tauri dev` | Run the desktop app with hot reload | | `pnpm check` | Type checks of the app and the unit tests, then the translation catalog audit | | `pnpm test` | Unit tests (`tests/unit/`) | | `cargo test --manifest-path src-tauri/Cargo.toml --lib` | Rust tests | | `pnpm check:menus` | Menu surface inventory | | `pnpm smoke [filter...]` | Browser smoke tests (`tests/smoke/`). See [Browser smoke tests](docs/development.md#browser-smoke-tests). | | `pnpm build:installer --version ` | Windows installer. See [Builds](docs/builds.md). | | `pnpm package:plugin [output-folder]` | Plugin ZIP | | `pnpm sdk:build` | Build the plugin SDK in `packages/plugin-sdk/` | | `pnpm release:sdk --version ` | Prepare an SDK release in the public SDK clone. It never pushes. See [SDK releases](docs/releases.md). | A source edit needs the checks that cover it. A prose-only change needs only the lint and a link check. ## Documentation | Content | Location | | --- | --- | | Purpose, value, install, help, maintainer | `README.md` | | From a supplied release file to a launched app | `docs/installation.md` | | Current behavior, limits, and workspace tutorials | `docs/user-guide.md`, `docs/guides/` | | Plugin installation and management for users | `docs/plugins.md` | | Source setup, architecture, checks, product boundaries | `docs/development.md`, `docs/linux.md` | | Installer and package builds | `docs/builds.md` | | Versions, release files, and publishing | `docs/releases.md` | | Plugin package, API, and host internals | `docs/plugin-development.md`, `docs/completion.md`, `docs/plugin-host.md` | | Interface rules, color, design decisions | `docs/ui-design.md`, `docs/ui-color.md`, `docs/design-decisions.md` | | Dated records: audits, validations, trials | `docs/archive/` | | Plans and roadmaps | RuneStone Project Management only | The old roadmap and product scope documents are retired. Do not recreate them. Rules from the owner: - Keep each guide within the task and the audience that its title names. - Give the general procedure before examples. Label each example and cite its source file. A build example states the working folder, the prerequisites, the command, and the output. Do not present one plugin's build command as the process for all plugins. - Keep the README's first-use path short. Link to details instead of repeating them. - Include a limit only when it changes a reader's choice or action. Do not repeat availability warnings. Keep development history out of setup steps. - Treat the owner's cuts as scope decisions. Do not restore removed tangents. - After you move or remove content, check link text, paths, and heading anchors. ## Kanban workflow - Use the `runestone-project-management` skill. Each plugin has its own board. - Do not start blocked cards or cards outside the requested scope. - Move an implementation-ready card to Review after its checks pass. Keep unresolved work In progress. - Only the owner moves a card to Done. Automated checks do not replace the owner's review. ## Versions and releases [docs/releases.md](docs/releases.md) holds the full policy. It applies to RuneStone and to each plugin, and each project keeps its own version. - Versions use `zz.yy.xx`. A hotfix adds a lowercase letter suffix: `0.2.28a`, then `0.2.28b`. - Keep the current version during source edits, fixes, documentation, and checks. Instruction-only edits never change it. - Set the next version only when you produce a build: a RuneStone installer or a plugin ZIP. A regular build increases `xx` by one. A hotfix build increases only the suffix. - If the build fails, restore the previous version fields. Failed attempts do not use up a version. - Increase `yy` or `zz` only when the owner directs a release. - Report a new version only after its artifact exists. Report the full artifact path. - Completed builds go in `releases/`, outside Git. Never overwrite a release with different contents. - Repository releases contain only installers or plugin ZIPs, with an empty description. ## Windows installer - Setup replaces an existing installation in place, also for the same version. Users never need to uninstall first. - Reinstall and update preserve workspace files and user settings. - Keep the protection against version downgrades. ## Plugin packages - [docs/plugin-development.md](docs/plugin-development.md) is the package and API reference for all plugin work. - Plugins use only the SDK (`@runestone/plugin-sdk`, Apache-2.0), never direct `invoke` calls or host source files. The SDK source is `packages/plugin-sdk/`. - Each plugin ships as one standard `.zip` with `plugin.json` at the archive root. Create it with `pnpm package:plugin`. - Users install ZIPs through Settings → Plug-ins, from a local file or an experimental Gitea link. Do not add custom extensions, loose JSON installs, or folder installs. - Keep the manifest and the entry module readable. Include the assets and dependencies that the plugin needs. - GitHub and GitLab download adapters are future work. Do not add untested host support. - Keep plugin ZIPs in the plugin's own `releases/` folder. Never copy them into this project or another plugin. ## UI work [docs/ui-design.md](docs/ui-design.md) holds the full interface rules. Read it before you change UI. Check each change against this list: - Use the shared components and tokens. Menus use `src/lib/ui/actionMenu.ts` (or `src/lib/layout/ContextMenu.svelte`), `src/lib/ui/menu.css`, and the `--rs-menu-*` tokens in `src/lib/theme/tokens.css`. Do not add a local menu renderer or local style overrides. - Use recognizable icons. Keep a visible label when an icon alone is ambiguous. An icon-only control needs an accessible name, a tooltip on hover and keyboard focus, and a comfortable click target. - Controls and navigation highlights use rounded corners (`--rs-control-radius`). Tables inside documents stay square. - A selection gets one outline around each group of adjacent selected items, with no borders on shared internal edges. - Colors follow the `ui-functional-color` skill and `docs/ui-color.md`: vivid by default, informative text opaque. - Before Review, check both themes, narrow windows, long lists, keyboard focus, and viewport edges. For menu work, run `pnpm check:menus` and `pnpm smoke menus`. Keep screenshots of the exact control that the card names. - Record a rule change, a recurring problem, or an exception in `docs/design-decisions.md`. An isolated fix needs no entry. ## Subagents Use only Haiku 5.5 (`model: "haiku"`) or Opus 5.5 (`model: "opus"`, effort `medium` to `xhigh`). Never use Sonnet or Fable. The `runestone-project-management` skill maps task types to models and lists what each brief must contain.