Files
RuneStone/CLAUDE.md
T
Knotty Wyvern 69f90df571 Move the smoke tests onto the shared harness
Each smoke test now uses tests/smoke/_harness/ for Playwright, the Tauri
IPC mock, the in-memory workspace, and output folders, instead of its
own copy. The tests keep their interactions and assertions. Mock
handlers that the app never calls are gone.

- Split the four mixed regression scripts into 18 feature tests.
- Update tests that broke when the app changed on purpose. Each update
  cites the app source that shows the new behavior.
- Mark two real app defects with @known-issue: the settings window
  controls are 1px shorter than the main window controls, and plugin
  tabs cannot be reordered by dragging without a workspace.
- Merge three palette unit tests into one table-driven test.
- The native tests load Playwright through the harness and read
  NATIVE_CDP_URL, with their old variable names as fallbacks.
- A failed smoke test saves a screenshot and prints the console errors.
- The runner runs failed tests once more, alone, and reports a test
  that then passes as flaky.

Result: 89 passed, 1 flaky, 2 known issues, 0 failed. Before, 45 of 78
passed.
2026-10-27 20:58:55 -07:00

7.1 KiB

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 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
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.
pnpm build:installer --version <version> Windows installer. See Builds.
pnpm package:plugin <compiled-folder> [output-folder] Plugin ZIP

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 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

  • An existing installation defaults to reinstall, 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 is the package and API reference for all plugin work.
  • 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 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.