|
| 1 | +# RuMa Runtime |
| 2 | + |
| 3 | +[中文](./README.zh-CN.md) | English |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +RuMa Runtime turns a prompt gallery into an agent operating runtime. |
| 10 | + |
| 11 | +It combines: |
| 12 | + |
| 13 | +- reusable operating modes such as `diagnose`, `recover`, `ship`, and `audit` |
| 14 | +- execution overlays such as `neutral`, `high-agency`, `hardline`, and `pua` |
| 15 | +- one-command installers for `Codex`, `Claude Code`, and `OpenClaw` |
| 16 | +- a browsable web surface for selecting modes and copying live prompt compositions |
| 17 | +- local QA and autopilot loops for repeated verification |
| 18 | + |
| 19 | +The repo structure takes cues from two directions: |
| 20 | + |
| 21 | +- the productized multi-client installation style of [`tanweai/pua`](https://github.com/tanweai/pua) |
| 22 | +- the content-library and reference-driven style of [`puaclaw/PUAClaw`](https://github.com/puaclaw/PUAClaw) |
| 23 | + |
| 24 | +## Quick Start |
| 25 | + |
| 26 | +```bash |
| 27 | +npm install |
| 28 | +npm run dev |
| 29 | +``` |
| 30 | + |
| 31 | +## Install Into Agents |
| 32 | + |
| 33 | +```bash |
| 34 | +npm run install:codex |
| 35 | +npm run install:claude |
| 36 | +npm run install:openclaw |
| 37 | +npm run install:all |
| 38 | +``` |
| 39 | + |
| 40 | +Installed locations: |
| 41 | + |
| 42 | +- Codex: `~/.codex/skills/ruma-runtime/SKILL.md` and `~/.codex/prompts/ruma-runtime.md` |
| 43 | +- Claude Code: `~/.claude/skills/ruma-runtime/SKILL.md` |
| 44 | +- OpenClaw: `~/.openclaw/skills/ruma-runtime/SKILL.md` |
| 45 | + |
| 46 | +## Verify |
| 47 | + |
| 48 | +```bash |
| 49 | +npm run build |
| 50 | +npm run test |
| 51 | +npm run check |
| 52 | +``` |
| 53 | + |
| 54 | +The Playwright suite covers: |
| 55 | + |
| 56 | +- rendering every mode card |
| 57 | +- opening every modal |
| 58 | +- flavor and adapter switching |
| 59 | +- copy-to-clipboard flows |
| 60 | +- mobile layout coverage |
| 61 | +- installer copy behavior for all supported clients |
| 62 | + |
| 63 | +## Autopilot |
| 64 | + |
| 65 | +```bash |
| 66 | +npm run autopilot:register |
| 67 | +npm run autopilot:once |
| 68 | +npm run qa:loop |
| 69 | +``` |
| 70 | + |
| 71 | +The Windows autopilot loop runs build and smoke tests, writes reports to `automation/reports`, and can trigger one bounded backlog improvement when a local `codex` CLI is available. |
| 72 | + |
| 73 | +## Repo Layout |
| 74 | + |
| 75 | +```text |
| 76 | +adapters/ |
| 77 | + claude/ruma-runtime/SKILL.md |
| 78 | + codex/ruma-runtime/SKILL.md |
| 79 | + openclaw/ruma-runtime/SKILL.md |
| 80 | + cursor/ruma-runtime.mdc |
| 81 | +commands/ |
| 82 | + ruma-runtime.md |
| 83 | +references/ |
| 84 | + failure-patterns.md |
| 85 | + runtime-playbook.md |
| 86 | +scripts/ |
| 87 | + install-agent-skill.mjs |
| 88 | + install-codex-skill.mjs |
| 89 | + autopilot-once.ps1 |
| 90 | +src/ |
| 91 | + data/library.js |
| 92 | +tests/ |
| 93 | + app.spec.js |
| 94 | +``` |
| 95 | + |
| 96 | +## References |
| 97 | + |
| 98 | +- [`references/runtime-playbook.md`](./references/runtime-playbook.md) |
| 99 | +- [`references/failure-patterns.md`](./references/failure-patterns.md) |
| 100 | + |
| 101 | +## License |
| 102 | + |
| 103 | +[MIT](./LICENSE) |
0 commit comments