Rewrite the documentation and the agent instructions
Move the agent instructions from AGENTS.md to CLAUDE.md. AGENTS.md now points to CLAUDE.md. The UI rules move to docs/ui-design.md. The version and release policy moves to the new docs/releases.md. Rewrite the README, the user guides, and the developer references. Check each claim against the code. Remove old version history and repeated warnings. Link to Gitea at git.knottywyvern.com instead of the LAN address. Move the October 13 menu audit to the archive.
This commit is contained in:
@@ -1,257 +1,3 @@
|
||||
# RuneStone project instructions
|
||||
# Agent instructions
|
||||
|
||||
## Documentation
|
||||
|
||||
Keep the README focused on the project, its usefulness, setup, help, and maintainers.
|
||||
Keep agent instructions in this file. Put detailed usage and development notes in
|
||||
`docs/`, with links from the README.
|
||||
The original roadmap and product scope documents are retired. Do not recreate them.
|
||||
Keep future plans and roadmaps in RuneStone Project Management.
|
||||
Keep current behavior and limits in the [user guide](docs/user-guide.md).
|
||||
Keep product boundaries and architecture constraints in the [development guide](docs/development.md#product-boundaries).
|
||||
Keep interface rules in the [interface design reference](docs/ui-design.md).
|
||||
|
||||
### Write for the task and reader
|
||||
|
||||
- Keep each guide within the task and audience named by its title and incoming link descriptions.
|
||||
An installation guide starts with a supplied release file and ends with installation or launch.
|
||||
Put workspace tutorials in the user guide and source builds, API details, and test records in developer references.
|
||||
- Give the general procedure before specific examples. Label every example and cite its source or defining project file.
|
||||
State the working folder, prerequisites, command, and output for build examples.
|
||||
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 limits when they change a user's choice or action. Avoid repeated availability disclaimers and development history in setup steps.
|
||||
- Treat deliberate user cuts as scope decisions. Do not restore removed tangents during later documentation edits.
|
||||
Keep necessary technical detail in the appropriate reference when reorganizing existing material.
|
||||
- After moving or removing content, check link descriptions, paths, and heading anchors.
|
||||
A link must lead to the task it promises.
|
||||
|
||||
These rules reflect the October 21, 2026 README and installation edits compared with `codex/combined-pr-review` at `f741389`.
|
||||
Those edits shortened setup, removed workspace steps and source-build instructions, and reduced repeated development notes.
|
||||
|
||||
## Kanban workflow
|
||||
|
||||
Move implementation-ready cards to Review after the relevant checks pass.
|
||||
Reserve Done for the user's acceptance. Automated checks do not replace that review.
|
||||
Keep unresolved work In progress. Do not start blocked cards or cards outside the requested scope.
|
||||
|
||||
## Versioning
|
||||
|
||||
Apply this policy to RuneStone and its plugins. Each project keeps its own version number.
|
||||
Use `zz.yy.xx`. Keep routine implementation work in the current `zz.yy` series.
|
||||
Increase `xx` once for each new completed regular build. The number has no two-digit limit.
|
||||
For a hotfix build, keep `zz.yy.xx` and increase only its lowercase letter suffix.
|
||||
Keep the current version during source edits, fixes, improvements, documentation work, and automated checks.
|
||||
A build means a RuneStone installer or a plugin ZIP, unless the user requests another distributable.
|
||||
Development servers, test runs, and intermediate compilation output do not count as new builds.
|
||||
Set the next version when producing the build. Keep all version fields consistent.
|
||||
If no build completes, restore the previous version fields. Failed attempts and retries do not consume version numbers.
|
||||
Report a new version as available only after its build artifact exists.
|
||||
Publishing an existing artifact does not increase its version.
|
||||
Increase `yy` only for a deliberate release ready for build testing, with user direction. Reset `xx` to zero for that release.
|
||||
Increase `zz` only for a full release, with user direction. Reset `yy` and `xx` to zero for that release.
|
||||
Passing automated checks alone does not authorize a `yy` or `zz` increase.
|
||||
Keep version fields consistent within each project. Do not increase versions for instruction-only edits.
|
||||
|
||||
A hotfix fixes a single item or a narrowly scoped problem in an existing release.
|
||||
Use lowercase letter suffixes as the actual hotfix version, such as `0.2.28a` and `0.2.28b`.
|
||||
Advance hotfix suffixes in this order: `a`, `b`, `c`, through `z`, then `aa`, `ab`, and later suffixes.
|
||||
The next regular build increases `xx` and removes the suffix.
|
||||
Use the same hotfix version in `package.json`, `plugin.json`, build metadata, ZIP names, release notes, and tags.
|
||||
For installer toolchains that require numeric or SemVer fields, use the reversible encoding in [the build guide](docs/builds.md#hotfix-installer-versions).
|
||||
Keep the literal hotfix version in release metadata, visible version strings, and artifact names.
|
||||
Do not substitute a numeric build increment for a hotfix suffix.
|
||||
If a package format rejects the suffix, add support or report the blocker before building.
|
||||
Do not bypass validation or overwrite an existing release ZIP.
|
||||
|
||||
See [versioning for plugin authors and agents](docs/plugin-development.md#versioning-for-plugin-authors-and-agents) for the package guidance.
|
||||
|
||||
## Windows installer
|
||||
|
||||
- Default to reinstall when RuneStone is already installed, including builds with the same version.
|
||||
- Do not make users uninstall RuneStone before they can reinstall or update it.
|
||||
- Preserve workspace files and user settings during reinstall and update.
|
||||
- Keep the existing protection against version downgrades.
|
||||
|
||||
## Plugin packages
|
||||
|
||||
Use `docs/plugin-development.md` as the package and release reference for all plugin work.
|
||||
Distribute one standard `.zip` per plugin, with `plugin.json` at the archive root.
|
||||
Use `pnpm package:plugin <compiled-folder> [output-folder]` to create release files.
|
||||
Use Settings → Plug-ins for local ZIP and experimental Gitea-link installation.
|
||||
Do not introduce custom extensions, loose JSON installation, or folder installation instructions.
|
||||
Keep the manifest and entry module readable. Include the assets and dependencies needed to run the plugin.
|
||||
Follow the [shared publishing standard](docs/plugin-development.md#publishing-releases) on any hosting service.
|
||||
Use one plugin ZIP per published release, with an explicit tag for prerelease trials.
|
||||
Keep the download source separate from package validation and installation.
|
||||
GitHub and GitLab adapters remain future work. Do not add untested host support.
|
||||
|
||||
## UI work: prefer meaningful icons
|
||||
|
||||
Apply these rules whenever designing, implementing, modifying, or reviewing RuneStone UI.
|
||||
Apply them automatically without requiring the user to repeat them.
|
||||
|
||||
- Favor recognizable icons for actions, navigation, menus, and settings categories.
|
||||
Help users recognize functions without relying only on English vocabulary.
|
||||
Use icons to save space and reduce clutter.
|
||||
- Pair icons with concise visible labels when the meaning could be ambiguous.
|
||||
Keep labels that help users learn or distinguish functions.
|
||||
- Use icon-only controls for familiar actions in compact spaces.
|
||||
Give them accessible names, tooltips on hover and keyboard focus, and comfortable click targets.
|
||||
- Reuse existing icon components and artwork. Keep the same icon for the same function.
|
||||
Maintain consistent sizing and stroke weight.
|
||||
- Do not force icons onto every setting, label, or explanation.
|
||||
Use text alone when no clear icon exists. Omit decoration that does not improve understanding.
|
||||
Recognition and accessibility take priority over fitting more controls on screen.
|
||||
- Use Obsidian's settings pattern as a reference: icons with labels in navigation,
|
||||
readable text and ordinary controls in detailed settings.
|
||||
|
||||
For UI reviews, check changed controls against these rules.
|
||||
|
||||
## UI work: use shared dimensions
|
||||
|
||||
Use `--rs-titlebar-height` for custom window headers in the main app and settings.
|
||||
Use the shared `--rs-settings-*` tokens for settings spacing, control height, headings, and descriptions.
|
||||
Keep related plugin metadata and actions in compact rows. Preserve readable labels, focus indicators, and comfortable click targets.
|
||||
Wrap controls at narrow widths and scroll the content area. Long settings navigation must leave room for the selected settings.
|
||||
Check both themes, narrow windows, and long plugin lists after changes to shared dimensions.
|
||||
## UI work: use rounded corners
|
||||
|
||||
Apply these rules whenever designing, implementing, modifying, or reviewing RuneStone UI.
|
||||
Apply them automatically without requiring the user to repeat them.
|
||||
|
||||
- Use rounded corners consistently for controls and navigation highlights, including file and folder selections.
|
||||
Compact controls and navigation rows share `--rs-control-radius`.
|
||||
Selection outlines use `--rs-item-selection-radius`.
|
||||
- Round exposed selection corners while keeping adjacent selected rows joined.
|
||||
Do not add rounded gaps or selection borders on shared edges.
|
||||
- Apply the same treatment to hover, active, and selected navigation states.
|
||||
- Tables inside documents are the exception: keep grids, cells, and cell selection outlines square.
|
||||
Table toolbar and menu controls still use rounded corners.
|
||||
|
||||
## UI work: outline only the outer boundary of a selection
|
||||
|
||||
Apply these rules whenever designing, implementing, modifying, or reviewing selection UI.
|
||||
Apply them automatically without requiring the user to repeat them.
|
||||
|
||||
- Adjacent selected rows or cells share one highlighted region.
|
||||
Highlight only its exposed perimeter. Omit selection borders on shared internal edges.
|
||||
Apply this to navigation rows, table cells, lists, and grids.
|
||||
- Use the shared `--rs-item-selection-*` theme values for fill, border color, and border width.
|
||||
Use table-cell selection as the fill and outline reference, with rounded exposed corners outside document tables.
|
||||
- Separate groups, divided by unselected items or physical gaps, retain separate outlines.
|
||||
A single selected item gets a complete outline.
|
||||
- Determine adjacency from visible layout order, including sorting and expanded tree branches.
|
||||
At indentation changes, preserve exposed edges and omit the portions shared by selected rows.
|
||||
- Keep the fill continuous within each selected region.
|
||||
Ordinary table grid lines can remain, but must not become highlighted selection borders inside the region.
|
||||
- Check single items, contiguous ranges, separated selections, and nested rows.
|
||||
|
||||
## UI work: use one menu design
|
||||
|
||||
Apply these rules to context menus, action menus, and their submenus.
|
||||
Apply them automatically when you add, change, or review a menu.
|
||||
|
||||
- Use `src/lib/ui/actionMenu.ts` for action menus.
|
||||
Svelte callers can use `src/lib/layout/ContextMenu.svelte`.
|
||||
Keep presentation in `src/lib/ui/menu.css` and theme values in `src/lib/theme/tokens.css`.
|
||||
Do not create a separate menu renderer or local style overrides for individual features.
|
||||
- Use the same font, row height, padding, icon size, label alignment, separators, and shadow throughout a menu family.
|
||||
Use `--rs-menu-*` tokens and `--rs-control-radius`.
|
||||
Keep a padding inset around every row so hover and focus backgrounds do not touch the panel border.
|
||||
Menu width can change when content requires more space. Keep the other shared measurements.
|
||||
- Use the same action icon for the same function across menus.
|
||||
Give recognizable actions an icon and a concise label.
|
||||
Reserve the icon column when an item has no suitable icon.
|
||||
Keep submenu arrows and shortcut text in separate trailing columns.
|
||||
- Give enabled rows the same hover and keyboard focus treatment.
|
||||
Keep disabled rows readable, skip them during keyboard navigation, and prevent their activation.
|
||||
Use the same inset separators between related groups.
|
||||
- Support arrow keys, Home, End, Enter, Space, and Escape.
|
||||
Open submenus with the Right arrow and return with the Left arrow.
|
||||
Restore focus on keyboard dismissal. Keep menus within the viewport and scroll long menus.
|
||||
- Check file, folder, pane, tab, editor, table, and submenu examples after changes to shared menu code.
|
||||
Check both themes, disabled items, icon alignment, keyboard focus, and viewport edges.
|
||||
Run `scripts/menuConsistency.smoke.mjs` against the development server to compare shared styles and behavior.
|
||||
|
||||
Rich pickers and dialogs can use their own layouts when they contain search fields, descriptions, or forms.
|
||||
Plugin menus should use these rules where the host API permits shared components.
|
||||
|
||||
## Project Management skill
|
||||
|
||||
For RuneStone boards and cards, use the global `runestone-project-management` skill.
|
||||
Find it at `$CODEX_HOME/skills/runestone-project-management/SKILL.md`.
|
||||
When `CODEX_HOME` is unset, use `~/.codex/skills/runestone-project-management/SKILL.md`.
|
||||
The skill supports multiple boards and workspaces with a read-only helper.
|
||||
Discover boards before task selection when the request does not identify a board.
|
||||
Each plugin has its own board. Use board membership to select the project, not tags or labels.
|
||||
Use board placement to select a list. Card status alone does not identify its list.
|
||||
Read priority from the separate `runestone_pm.priority` detail field, never from labels or tags.
|
||||
|
||||
## UI work: keep attention on the work
|
||||
|
||||
Use the principles in [Interface design](docs/ui-design.md#design-principles) for all interface work.
|
||||
Keep active states clear and the structure focused. Use strong colors for theme identity, status, and actions that need attention.
|
||||
Show board and view names once where possible. Keep switching and renaming as separate actions.
|
||||
Use familiar icons and visual previews. Keep labels when they prevent ambiguity.
|
||||
Keep accessible names, keyboard focus, and tooltips on icon controls.
|
||||
Keep optional forms hidden until needed. Let users collapse sections and hide panes to focus on their work.
|
||||
Before adding a control, check the shared component and examples in `docs/ui-design.md`.
|
||||
|
||||
## UI work: record design decisions
|
||||
|
||||
Use [Interface design](docs/ui-design.md) as the current design reference for the app and its plugins.
|
||||
Use the [design decision log](docs/design-decisions.md) for rule changes, recurring problems, and exceptions.
|
||||
|
||||
- For an isolated correction, keep the normal card or commit record. Do not add a design entry.
|
||||
- For a rule change, update the guide and add a rule-change entry in the same change.
|
||||
Record the reason, scope, shared component or token, and evidence. The number of affected controls does not determine the category.
|
||||
- For a recurring problem, link the occurrences and record the cause and prevention check.
|
||||
Mark an unknown cause as unknown. Update an existing entry for the same problem instead of adding duplicate entries.
|
||||
Clarify the guide only when its rule is missing or unclear.
|
||||
- For an exception, record the user benefit, exact scope, and review date or trigger.
|
||||
Link the exception from the relevant guide section. An entry does not authorize a departure from the current rule.
|
||||
- Before moving UI work to Review, include the evidence required by the guide.
|
||||
Identify the shared component or token, check local overrides, and record any gaps in checks.
|
||||
Check design principles as well as styling. Keep unresolved work In progress and reserve Done for the user's acceptance.
|
||||
|
||||
## Release directory
|
||||
|
||||
Keep all completed release files in `releases/` at this project root.
|
||||
RuneStone installers use `releases/<version>/`. Each plugin keeps its ZIPs directly in its own `releases/` folder.
|
||||
Keep release notes, checksums, and build metadata with the release they describe.
|
||||
Repository release attachments must contain only installable binaries: RuneStone installers or plugin ZIPs.
|
||||
Keep repository release descriptions empty so users reach the downloads without introductory text.
|
||||
Keep release notes, test results, and installation instructions in the repository documentation instead.
|
||||
Do not attach Markdown files, checksums, metadata, logs, or screenshots to repository releases.
|
||||
Keep those records in the local release directory. Put downloadable installation checksums in `docs/checksums/<version>/` and link them from the installation guide.
|
||||
Never copy plugin ZIPs into the host project or another plugin project.
|
||||
Use `dist/`, `build/`, `output/`, and toolchain folders only for compilation, staging, logs, or checks.
|
||||
Move completed installers from the toolchain bundle folder into `releases/` after packaging.
|
||||
Do not leave a second installer copy in the bundle folder.
|
||||
Do not overwrite a release with different contents. Remove duplicates only after their SHA-256 hashes match.
|
||||
Keep distinct versions and files with different contents. Report filename conflicts before changing them.
|
||||
Keep `releases/` outside Git. Report the full artifact path after each completed build.
|
||||
This rule applies to the main app, all existing plugins, and all new plugins.
|
||||
|
||||
## UI work: assertive color and complete menu coverage
|
||||
|
||||
Use the global `ui-functional-color` skill for UI work. Read [Functional color requirements](docs/ui-color.md) before choosing or reviewing UI colors.
|
||||
Start with vivid candidates for accents, priority, status, selection outlines, syntax, and important data.
|
||||
Prefer the stronger candidate when readability, meaning, and distinction remain sound. Treat full saturation and full HSV value as normal options.
|
||||
Do not soften colors solely for quiet, refined, professional, premium, minimal, or cohesive styling.
|
||||
Require a concrete reason and before/after evidence for a softer choice.
|
||||
Keep informative text and symbols opaque. Use shared tokens and check the actual composite surface.
|
||||
The guide applies to human developers and agents. Existing muted values do not establish an approved soft design requirement.
|
||||
|
||||
Searchable pickers can contain search, descriptions, and forms. Their panels and result rows use the shared menu presentation.
|
||||
Use `rs-picker`, `rs-picker-row`, `rs-picker-icon`, and `rs-picker-hint` from `src/lib/ui/menu.css`.
|
||||
Keep their different layout and semantics. Do not use the richer layout allowance to override panel color, row padding, font, or focus states.
|
||||
Use the shared action menu for native select replacements whenever the host API exists.
|
||||
Native selects remain only as documented fallbacks for older plugin hosts. Embedded website controls retain the website design.
|
||||
|
||||
Run `node scripts/menuSurfaceAudit.mjs` before menu work moves to Review.
|
||||
The inventory covers menu renderers, callers, native selects, and searchable pickers across the host and sibling plugins.
|
||||
An added or changed menu entry point requires inventory review. Source coverage does not prove runtime compliance.
|
||||
Run the listed browser checks for affected surfaces and retain screenshots of the exact reported control.
|
||||
A neighboring selector does not satisfy a card. Check every control shown in its screenshots.
|
||||
The instructions for AI agents in this repository are in [CLAUDE.md](CLAUDE.md). Read and obey that file.
|
||||
|
||||
Reference in New Issue
Block a user