Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Add the openmausbot-docs skill
star-nebula369e5de95770
diff --git a/server/skill-openmausbot-docs.test.ts b/server/skill-openmausbot-docs.test.tsnew file mode 100644index 0000000000..c652ad4e4d--- /dev/null+++ b/server/skill-openmausbot-docs.test.ts@@ -0,0 +1,50 @@+import { existsSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, it } from "vitest";+import { loadBundledSkills, selectBundledSkills } from "./skill-library.ts";++describe("openmausbot-docs skill guide", () => {+ const skills = loadBundledSkills(join(process.cwd(), "skills"));+ const guide = skills.find((skill) => skill.manifest.id === "openmausbot-docs")?.instructions ?? "";+ const ids = (text: string) => selectBundledSkills(text, [], skills).map((skill) => skill.manifest.id);++ it("mounts when the person asks about the app's own settings, and stays out of ordinary work", () => {+ for (const text of [+ "Where does OpenMausBot keep its bots?",+ "how do I change the approval level for one bot",+ "Open MausBot 的配置文件在哪",+ "where are my bot's routines stored",+ "explain OMB settings for connected apps",+ "MausBot 设置里记忆开关是什么意思",+ ]) {+ expect(ids(text), text).toContain("openmausbot-docs");+ }+ for (const text of [+ "write a paragraph about my bot",+ "book a call for Friday",+ "fix the failing test in src/app.ts",+ "summarize this email",+ "chart our signups by month",+ ]) {+ expect(ids(text), text).not.toContain("openmausbot-docs");+ }+ });++ it("keeps the guide short, names the data folder, and every page it names exists", () => {+ expect(guide.split("\n").length).toBeLessThanOrEqual(110);+ expect(guide).toContain("~/.openmausbot/");+ expect(guide).toContain("config.json");+ expect(guide).toContain("bots/<botId>/SOUL.md");+ const pages = [...guide.matchAll(/`([a-z0-9-]+\.md)`/g)].map((match) => match[1]);+ expect(pages.length).toBeGreaterThan(20);+ for (const page of new Set(pages)) {+ expect(existsSync(join(process.cwd(), "docs", page)), page).toBe(true);+ }+ });++ it("sends the reader to the app before the docs, and never asks for a key to be quoted", () => {+ expect(guide).toContain("the app wins");+ expect(guide).toContain("never quote a key back");+ expect(guide).toContain("change them through the app or its API");+ });+});diff --git a/skills/openmausbot-docs/SKILL.md b/skills/openmausbot-docs/SKILL.mdnew file mode 100644index 0000000000..6cfba3fa02--- /dev/null+++ b/skills/openmausbot-docs/SKILL.md@@ -0,0 +1,85 @@+---+name: openmausbot-docs+description: "Answer how OpenMausBot itself works and how to change it: settings, the data folder, approval levels, routines, engines, skills, teams, memory and self-hosting. Use when the question is about the app, not about the person's own project."+---++# OpenMausBot, documented++Answer from this install and from the app's own docs, in that order. Never+describe a setting from memory: read the file, or read the page.++- **This install.** Every setting is a file under `~/.openmausbot/`, and+ `OMB_DATA_DIR` moves that folder. The file says what is set right now.+- **The docs.** One page per area: in a repo checkout under `docs/`, otherwise+ at `https://github.com/milind-soni/OpenMausBot/blob/main/docs/<page>.md`. A+ page explains why something is built that way and what happens if.+- When the two disagree the app wins, and say which one you checked. When+ neither has the setting, say it does not exist instead of inventing a name.++## The data folder++| Path | Holds |+| --- | --- |+| `config.json` | Engine instances (`instances`), feature switches, saved keys, `budgets`, `signIn`, `decisions.retentionDays`. It contains secrets: read what you need, never quote a key back. |+| `bots.json` | One record per bot: its standing instructions (`soul`), model, folder, approval level, peers and look. |+| `bots/<botId>/SOUL.md` | A mirror of that bot's standing instructions. The record is the source of truth; `soulDrift` records that the two differed at the last turn. |+| `routines.json` | Routines, their runs, and webhook receipts. |+| `app-triggers.json` | Automations that fire on an app event. |+| `workspaces/<botId>/` | The bot's own folder: `MEMORY.md`, `memory/<topic>.md`, `memory/log/<date>.md`, its private `skills/`. |+| `skills-library/index.json` | Skills imported into the shared library: hashes, source, review state. |+| `skill-state/` | Per-bot skill imports and their revisions. |+| `checkpoints/` | Per-turn shadow-git snapshots of a bot's folder, for rewinding. |++`config.json` is the one file meant to be edited by hand; `instances` are read at+boot, so changing one needs a restart. `bots.json` and `routines.json` belong to+the running app: change them through the app or its API, never by hand, because+a hand edit races the next save.++## Where a question goes++| The person asks about | Page |+| --- | --- |+| Approval levels, what a bot may do without asking | `approval-levels.md` |+| Bots, roles, the review before Create, ready-made templates | `presets.md` |+| A model or CLI the app does not ship | `custom-engines.md`, `opencode-go.md` |+| MCP servers of their own, or the app's own MCP server | `custom-mcp-servers.md`, `mcp-server.md` |+| Connected apps such as Gmail, Calendar, Slack or Notion | `composio.md` |+| What a bot remembers between tasks | `memory.md` |+| Timing, cron, time zones, paused and done routines | `routine-schedules.md` |+| The daily brief, and the checks that run before it | `proactive-routines.md` |+| Letting an app or a script message one bot | `bot-api.md` |+| Letting a script drive the whole server | `headless-cli.md` |+| Which model picks between bots, and whose key decides | `decision-model.md` |+| How a bot chooses a tool | `tool-selection.md` |+| Work one bot hands to another, and what wakes it | `runtime-contract.md` |+| Teams, shared departments, escalations, incidents | `team-sharing.md`, `team-cloud.md`, `team-escalations.md`, `team-incidents.md` |+| Self-hosting, a VPS, My Cloud | `self-hosting.md`, `deploy-vps.md`, `byo-vps.md`, `cloud-pro.md` |+| Where a bot's files go, and how to get them out | `files.md`, `bot-box.md` |+| Browser and computer control | `computer-use-integration.md`, `browser-packaging.md` |+| Voice, images, meeting notes | `voice-mode.md`, `image-generation.md`, `meeting-notes.md` |++## Rules that hold everywhere++- **Approval is per bot, not global**, and applies to that bot's next turn. Each+ level is a provider's own permission mode, passed through. A personal install+ starts at Full access; a hosted company workspace starts at Ask. A bot reading+ its own files never asks.+- **Routines are calendar rules.** Five-field cron plus an explicit IANA zone,+ and the scheduler wakes the bot at that time; no model checks the date. Never+ answer a schedule question with "check every morning instead".+- **Built-in skills are mounted by keyword, not kept on.** A message that+ matches a bundled skill's trigger terms carries its instructions for that+ turn, and the skill never appears in the bot's own list. A skill the person+ writes or imports is the opposite: listed, and owned by one bot.+- **Memory is local markdown.** `MEMORY.md` loads every turn, `memory/*.md` is+ read on demand, `memory/log/` is the bot's own record of its days. Nothing+ leaves the computer unless a Cloud is in use.+- **Nothing is changed until you read it back.** After a change, read the file+ or the settings response again and say what it now holds; if it was+ `config.json`, say that a restart is what makes `instances` apply.++## When the person wants depth++Answer for this install first, then name the page above and its link as the+place to read more. Do not paste doc passages into the chat: give the file, the+setting and the value it holds now.diff --git a/skills/openmausbot-docs/manifest.json b/skills/openmausbot-docs/manifest.jsonnew file mode 100644index 0000000000..ac4a30bb88--- /dev/null+++ b/skills/openmausbot-docs/manifest.json@@ -0,0 +1,24 @@+{+ "id": "openmausbot-docs",+ "name": "OpenMausBot Docs",+ "version": "0.1.0",+ "description": "Answer how OpenMausBot itself is configured, from this install's files and the app's own docs.",+ "defaultEnabled": true,+ "triggerTerms": [+ "openmausbot",+ "open mausbot",+ "mausbot settings",+ "mausbot config",+ "mausbot 设置",+ "mausbot 配置",+ "omb settings",+ "omb config",+ "bot settings",+ "approval level",+ "bot's routines",+ "bot routines",+ "bot's memory",+ "bot memory"+ ],+ "requiredCapabilities": []+}