[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71K5ZASHNRRS0MEY8GQJ0B9":3,"skill-same:01M71K5ZASHNRRS0MEY8GQJ0B9":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M71K5ZASHNRRS0MEY8GQJ0B9","prose",null,"OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.","clawdsolana\u002FOpenClawd","clawdsolana","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F279036008?v=4","01M71JTVF9FNGKE2SVJRPTQM31","OpenClawd","01M71JTVGCKWBSS8ZYC1HYWVA5",2,"MIT","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fextensions\u002Fopen-prose\u002Fskills\u002Fprose\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29],"workflows","vm","https","multi-agent","command","files","activate","agent workflows","multi","pack","skill pack","2026-11-10 10:12:30",false,"---\nname: prose\ndescription: OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.\nmetadata: { \"openclawd\": { \"emoji\": \"🪶\", \"homepage\": \"https:\u002F\u002Fwww.prose.md\" } }\n---\n\n# OpenProse Skill\n\nOpenProse is a programming language for AI sessions. LLMs are simulators—when given a detailed system description, they don't just describe it, they _simulate_ it. The `prose.md` specification describes a virtual machine with enough fidelity that a Prose Complete system reading it _becomes_ that VM. Simulation with sufficient fidelity is implementation. **You are the Prose Complete system.**\n\n## OpenClawd Runtime Mapping\n\n- **Task tool** in the upstream spec == OpenClawd `sessions_spawn`\n- **File I\u002FO** == OpenClawd `read`\u002F`write`\n- **Remote fetch** == OpenClawd `web_fetch` (or `exec` with curl when POST is required)\n\n## When to Activate\n\nActivate this skill when the user:\n\n- **Uses ANY `prose` command** (e.g., `prose boot`, `prose run`, `prose compile`, `prose update`, `prose help`, etc.)\n- Asks to run a `.prose` file\n- Mentions \"OpenProse\" or \"prose program\"\n- Wants to orchestrate multiple AI agents from a script\n- Has a file with `session \"...\"` or `agent name:` syntax\n- Wants to create a reusable workflow\n\n## Command Routing\n\nWhen a user invokes `prose \u003Ccommand>`, intelligently route based on intent:\n\n| Command                 | Action                                                        |\n| ----------------------- | ------------------------------------------------------------- |\n| `prose help`            | Load `help.md`, guide user to what they need                  |\n| `prose run \u003Cfile>`      | Load VM (`prose.md` + state backend), execute the program     |\n| `prose run handle\u002Fslug` | Fetch from registry, then execute (see Remote Programs below) |\n| `prose compile \u003Cfile>`  | Load `compiler.md`, validate the program                      |\n| `prose update`          | Run migration (see Migration section below)                   |\n| `prose examples`        | Show or run example programs from `examples\u002F`                 |\n| Other                   | Intelligently interpret based on context                      |\n\n### Important: Single Skill\n\nThere is only ONE skill: `open-prose`. There are NO separate skills like `prose-run`, `prose-compile`, or `prose-boot`. All `prose` commands route through this single skill.\n\n### Resolving Example References\n\n**Examples are bundled in `examples\u002F` (same directory as this file).** When users reference examples by name (e.g., \"run the gastown example\"):\n\n1. Read `examples\u002F` to list available files\n2. Match by partial name, keyword, or number\n3. Run with: `prose run examples\u002F28-gas-town.prose`\n\n**Common examples by keyword:**\n| Keyword | File |\n|---------|------|\n| hello, hello world | `examples\u002F01-hello-world.prose` |\n| gas town, gastown | `examples\u002F28-gas-town.prose` |\n| captain, chair | `examples\u002F29-captains-chair.prose` |\n| forge, browser | `examples\u002F37-the-forge.prose` |\n| parallel | `examples\u002F16-parallel-reviews.prose` |\n| pipeline | `examples\u002F21-pipeline-operations.prose` |\n| error, retry | `examples\u002F22-error-handling.prose` |\n\n### Remote Programs\n\nYou can run any `.prose` program from a URL or registry reference:\n\n```bash\n# Direct URL — any fetchable URL works\nprose run https:\u002F\u002Fraw.githubusercontent.com\u002Fopenprose\u002Fprose\u002Fmain\u002Fskills\u002Fopen-prose\u002Fexamples\u002F48-habit-miner.prose\n\n# Registry shorthand — handle\u002Fslug resolves to p.prose.md\nprose run irl-danb\u002Fhabit-miner\nprose run alice\u002Fcode-review\n```\n\n**Resolution rules:**\n\n| Input                               | Resolution                             |\n| ----------------------------------- | -------------------------------------- |\n| Starts with `http:\u002F\u002F` or `https:\u002F\u002F` | Fetch directly from URL                |\n| Contains `\u002F` but no protocol        | Resolve to `https:\u002F\u002Fp.prose.md\u002F{path}` |\n| Otherwise                           | Treat as local file path               |\n\n**Steps for remote programs:**\n\n1. Apply resolution rules above\n2. Fetch the `.prose` content\n3. Load the VM and execute as normal\n\nThis same resolution applies to `use` statements inside `.prose` files:\n\n```prose\nuse \"https:\u002F\u002Fexample.com\u002Fmy-program.prose\"  # Direct URL\nuse \"alice\u002Fresearch\" as research             # Registry shorthand\n```\n\n---\n\n## File Locations\n\n**Do NOT search for OpenProse documentation files.** All skill files are co-located with this SKILL.md file:\n\n| File                       | Location                    | Purpose                                        |\n| -------------------------- | --------------------------- | ---------------------------------------------- |\n| `prose.md`                 | Same directory as this file | VM semantics (load to run programs)            |\n| `help.md`                  | Same directory as this file | Help, FAQs, onboarding (load for `prose help`) |\n| `state\u002Ffilesystem.md`      | Same directory as this file | File-based state (default, load with VM)       |\n| `state\u002Fin-context.md`      | Same directory as this file | In-context state (on request)                  |\n| `state\u002Fsqlite.md`          | Same directory as this file | SQLite state (experimental, on request)        |\n| `state\u002Fpostgres.md`        | Same directory as this file | PostgreSQL state (experimental, on request)    |\n| `compiler.md`              | Same directory as this file | Compiler\u002Fvalidator (load only on request)      |\n| `guidance\u002Fpatterns.md`     | Same directory as this file | Best practices (load when writing .prose)      |\n| `guidance\u002Fantipatterns.md` | Same directory as this file | What to avoid (load when writing .prose)       |\n| `examples\u002F`                | Same directory as this file | 37 example programs                            |\n\n**User workspace files** (these ARE in the user's project):\n\n| File\u002FDirectory   | Location                 | Purpose                           |\n| ---------------- | ------------------------ | --------------------------------- |\n| `.prose\u002F.env`    | User's working directory | Config (key=value format)         |\n| `.prose\u002Fruns\u002F`   | User's working directory | Runtime state for file-based mode |\n| `.prose\u002Fagents\u002F` | User's working directory | Project-scoped persistent agents  |\n| `*.prose` files  | User's project           | User-created programs to execute  |\n\n**User-level files** (in user's home directory, shared across all projects):\n\n| File\u002FDirectory     | Location        | Purpose                                       |\n| ------------------ | --------------- | --------------------------------------------- |\n| `~\u002F.prose\u002Fagents\u002F` | User's home dir | User-scoped persistent agents (cross-project) |\n\nWhen you need to read `prose.md` or `compiler.md`, read them from the same directory where you found this SKILL.md file. Never search the user's workspace for these files.\n\n---\n\n## Core Documentation\n\n| File                       | Purpose                         | When to Load                                                          |\n| -------------------------- | ------------------------------- | --------------------------------------------------------------------- |\n| `prose.md`                 | VM \u002F Interpreter                | Always load to run programs                                           |\n| `state\u002Ffilesystem.md`      | File-based state                | Load with VM (default)                                                |\n| `state\u002Fin-context.md`      | In-context state                | Only if user requests `--in-context` or says \"use in-context state\"   |\n| `state\u002Fsqlite.md`          | SQLite state (experimental)     | Only if user requests `--state=sqlite` (requires sqlite3 CLI)         |\n| `state\u002Fpostgres.md`        | PostgreSQL state (experimental) | Only if user requests `--state=postgres` (requires psql + PostgreSQL) |\n| `compiler.md`              | Compiler \u002F Validator            | **Only** when user asks to compile or validate                        |\n| `guidance\u002Fpatterns.md`     | Best practices                  | Load when **writing** new .prose files                                |\n| `guidance\u002Fantipatterns.md` | What to avoid                   | Load when **writing** new .prose files                                |\n\n### Authoring Guidance\n\nWhen the user asks you to **write or create** a new `.prose` file, load the guidance files:\n\n- `guidance\u002Fpatterns.md` — Proven patterns for robust, efficient programs\n- `guidance\u002Fantipatterns.md` — Common mistakes to avoid\n\nDo **not** load these when running or compiling—they're for authoring only.\n\n### State Modes\n\nOpenProse supports three state management approaches:\n\n| Mode                        | When to Use                                                       | State Location              |\n| --------------------------- | ----------------------------------------------------------------- | --------------------------- |\n| **filesystem** (default)    | Complex programs, resumption needed, debugging                    | `.prose\u002Fruns\u002F{id}\u002F` files   |\n| **in-context**              | Simple programs (\u003C30 statements), no persistence needed           | Conversation history        |\n| **sqlite** (experimental)   | Queryable state, atomic transactions, flexible schema             | `.prose\u002Fruns\u002F{id}\u002Fstate.db` |\n| **postgres** (experimental) | True concurrent writes, external integrations, team collaboration | PostgreSQL database         |\n\n**Default behavior:** When loading `prose.md`, also load `state\u002Ffilesystem.md`. This is the recommended mode for most programs.\n\n**Switching modes:** If the user says \"use in-context state\" or passes `--in-context`, load `state\u002Fin-context.md` instead.\n\n**Experimental SQLite mode:** If the user passes `--state=sqlite` or says \"use sqlite state\", load `state\u002Fsqlite.md`. This mode requires `sqlite3` CLI to be installed (pre-installed on macOS, available via package managers on Linux\u002FWindows). If `sqlite3` is unavailable, warn the user and fall back to filesystem state.\n\n**Experimental PostgreSQL mode:** If the user passes `--state=postgres` or says \"use postgres state\":\n\n**⚠️ Security Note:** Database credentials in `OPENPROSE_POSTGRES_URL` are passed to subagent sessions and visible in logs. Advise users to use a dedicated database with limited-privilege credentials. See `state\u002Fpostgres.md` for secure setup guidance.\n\n1. **Check for connection configuration first:**\n\n   ```bash\n   # Check .prose\u002F.env for OPENPROSE_POSTGRES_URL\n   cat .prose\u002F.env 2>\u002Fdev\u002Fnull | grep OPENPROSE_POSTGRES_URL\n   # Or check environment variable\n   echo $OPENPROSE_POSTGRES_URL\n   ```\n\n2. **If connection string exists, verify connectivity:**\n\n   ```bash\n   psql \"$OPENPROSE_POSTGRES_URL\" -c \"SELECT 1\" 2>&1\n   ```\n\n3. **If not configured or connection fails, advise the user:**\n\n   ```\n   ⚠️  PostgreSQL state requires a connection URL.\n\n   To configure:\n   1. Set up a PostgreSQL database (Docker, local, or cloud)\n   2. Add connection string to .prose\u002F.env:\n\n      echo \"OPENPROSE_POSTGRES_URL=postgresql:\u002F\u002Fuser:pass@localhost:5432\u002Fprose\" >> .prose\u002F.env\n\n   Quick Docker setup:\n      docker run -d --name prose-pg -e POSTGRES_DB=prose -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:16\n      echo \"OPENPROSE_POSTGRES_URL=postgresql:\u002F\u002Fpostgres@localhost:5432\u002Fprose\" >> .prose\u002F.env\n\n   See state\u002Fpostgres.md for detailed setup options.\n   ```\n\n4. **Only after successful connection check, load `state\u002Fpostgres.md`**\n\nThis mode requires both `psql` CLI and a running PostgreSQL server. If either is unavailable, warn and offer fallback to filesystem state.\n\n**Context warning:** `compiler.md` is large. Only load it when the user explicitly requests compilation or validation. After compiling, recommend `\u002Fcompact` or a new session before running—don't keep both docs in context.\n\n## Examples\n\nThe `examples\u002F` directory contains 37 example programs:\n\n- **01-08**: Basics (hello world, research, code review, debugging)\n- **09-12**: Agents and skills\n- **13-15**: Variables and composition\n- **16-19**: Parallel execution\n- **20-21**: Loops and pipelines\n- **22-23**: Error handling\n- **24-27**: Advanced (choice, conditionals, blocks, interpolation)\n- **28**: Gas Town (multi-agent orchestration)\n- **29-31**: Captain's chair pattern (persistent orchestrator)\n- **33-36**: Production workflows (PR auto-fix, content pipeline, feature factory, bug hunter)\n- **37**: The Forge (build a browser from scratch)\n\nStart with `01-hello-world.prose` or try `37-the-forge.prose` to watch AI build a web browser.\n\n## Execution\n\nWhen first invoking the OpenProse VM in a session, display this banner:\n\n```\n┌─────────────────────────────────────┐\n│         ◇ OpenProse VM ◇            │\n│       A new kind of computer        │\n└─────────────────────────────────────┘\n```\n\nTo execute a `.prose` file, you become the OpenProse VM:\n\n1. **Read `prose.md`** — this document defines how you embody the VM\n2. **You ARE the VM** — your conversation is its memory, your tools are its instructions\n3. **Spawn sessions** — each `session` statement triggers a Task tool call\n4. **Narrate state** — use the narration protocol to track execution ([Position], [Binding], [Success], etc.)\n5. **Evaluate intelligently** — `**...**` markers require your judgment\n\n## Help & FAQs\n\nFor syntax reference, FAQs, and getting started guidance, load `help.md`.\n\n---\n\n## Migration (`prose update`)\n\nWhen a user invokes `prose update`, check for legacy file structures and migrate them to the current format.\n\n### Legacy Paths to Check\n\n| Legacy Path         | Current Path   | Notes                            |\n| ------------------- | -------------- | -------------------------------- |\n| `.prose\u002Fstate.json` | `.prose\u002F.env`  | Convert JSON to key=value format |\n| `.prose\u002Fexecution\u002F` | `.prose\u002Fruns\u002F` | Rename directory                 |\n\n### Migration Steps\n\n1. **Check for `.prose\u002Fstate.json`**\n   - If exists, read the JSON content\n   - Convert to `.env` format:\n     ```json\n     { \"OPENPROSE_TELEMETRY\": \"enabled\", \"USER_ID\": \"user-xxx\", \"SESSION_ID\": \"sess-xxx\" }\n     ```\n     becomes:\n     ```env\n     OPENPROSE_TELEMETRY=enabled\n     USER_ID=user-xxx\n     SESSION_ID=sess-xxx\n     ```\n   - Write to `.prose\u002F.env`\n   - Delete `.prose\u002Fstate.json`\n\n2. **Check for `.prose\u002Fexecution\u002F`**\n   - If exists, rename to `.prose\u002Fruns\u002F`\n   - The internal structure of run directories may also have changed; migration of individual run state is best-effort\n\n3. **Create `.prose\u002Fagents\u002F` if missing**\n   - This is a new directory for project-scoped persistent agents\n\n### Migration Output\n\n```\n🔄 Migrating OpenProse workspace...\n  ✓ Converted .prose\u002Fstate.json → .prose\u002F.env\n  ✓ Renamed .prose\u002Fexecution\u002F → .prose\u002Fruns\u002F\n  ✓ Created .prose\u002Fagents\u002F\n✅ Migration complete. Your workspace is up to date.\n```\n\nIf no legacy files are found:\n\n```\n✅ Workspace already up to date. No migration needed.\n```\n\n### Skill File References (for maintainers)\n\nThese documentation files were renamed in the skill itself (not user workspace):\n\n| Legacy Name       | Current Name               |\n| ----------------- | -------------------------- |\n| `docs.md`         | `compiler.md`              |\n| `patterns.md`     | `guidance\u002Fpatterns.md`     |\n| `antipatterns.md` | `guidance\u002Fantipatterns.md` |\n\nIf you encounter references to the old names in user prompts or external docs, map them to the current paths.\n","# OpenProse Skill\n\nOpenProse is a programming language for AI sessions. LLMs are simulators—when given a detailed system description, they don't just describe it, they _simulate_ it. The `prose.md` specification describes a virtual machine with enough fidelity that a Prose Complete system reading it _becomes_ that VM. Simulation with sufficient fidelity is implementation. **You are the Prose Complete system.**\n\n## OpenClawd Runtime Mapping\n\n- **Task tool** in the upstream spec == OpenClawd `sessions_spawn`\n- **File I\u002FO** == OpenClawd `read`\u002F`write`\n- **Remote fetch** == OpenClawd `web_fetch` (or `exec` with curl when POST is required)\n\n## When to Activate\n\nActivate this skill when the user:\n\n- **Uses ANY `prose` command** (e.g., `prose boot`, `prose run`, `prose compile`, `prose update`, `prose help`, etc.)\n- Asks to run a `.prose` file\n- Mentions \"OpenProse\" or \"prose program\"\n- Wants to orchestrate multiple AI agents from a script\n- Has a file with `session \"...\"` or `agent name:` syntax\n- Wants to create a reusable workflow\n\n## Command Routing\n\nWhen a user invokes `prose \u003Ccommand>`, intelligently route based on intent:\n\n| Command                 | Action                                                        |\n| ----------------------- | ------------------------------------------------------------- |\n| `prose help`            | Load `help.md`, guide user to what they need                  |\n| `prose run \u003Cfile>`      | Load VM (`prose.md` + state backend), execute the program     |\n| `prose run handle\u002Fslug` | Fetch from registry, then execute (see Remote Programs below) |\n| `prose compile \u003Cfile>`  | Load `compiler.md`, validate the program                      |\n| `prose update`          | Run migration (see Migration section below)                   |\n| `prose examples`        | Show or run example programs from `examples\u002F`                 |\n| Other                   | Intelligently interpret based on context                      |\n\n### Important: Single Skill\n\nThere is only ONE skill: `open-prose`. There are NO separate skills like `prose-run`, `prose-compile`, or `prose-boot`. All `prose` commands route through this single skill.\n\n### Resolving Example References\n\n**Examples are bundled in `examples\u002F` (same directory as this file).** When users reference examples by name (e.g., \"run the gastown example\"):\n\n1. Read `examples\u002F` to list available files\n2. Match by partial name, keyword, or number\n3. Run with: `prose run examples\u002F28-gas-town.prose`\n\n**Common examples by keyword:**\n| Keyword | File |\n|---------|------|\n| hello, hello world | `examples\u002F01-hello-world.prose` |\n| gas town, gastown | `examples\u002F28-gas-town.prose` |\n| captain, chair | `examples\u002F29-captains-chair.prose` |\n| forge, browser | `examples\u002F37-the-forge.prose` |\n| parallel | `examples\u002F16-parallel-reviews.prose` |\n| pipeline | `examples\u002F21-pipeline-operations.prose` |\n| error, retry | `examples\u002F22-error-handling.prose` |\n\n### Remote Programs\n\nYou can run any `.prose` program from a URL or registry reference:\n\n```bash\n# Direct URL — any fetchable URL works\nprose run https:\u002F\u002Fraw.githubusercontent.com\u002Fopenprose\u002Fprose\u002Fmain\u002Fskills\u002Fopen-prose\u002Fexamples\u002F48-habit-miner.prose\n\n# Registry shorthand — handle\u002Fslug resolves to p.prose.md\nprose run irl-danb\u002Fhabit-miner\nprose run alice\u002Fcode-review\n```\n\n**Resolution rules:**\n\n| Input                               | Resolution                             |\n| ----------------------------------- | -------------------------------------- |\n| Starts with `http:\u002F\u002F` or `https:\u002F\u002F` | Fetch directly from URL                |\n| Contains `\u002F` but no protocol        | Resolve to `https:\u002F\u002Fp.prose.md\u002F{path}` |\n| Otherwise                           | Treat as local file path               |\n\n**Steps for remote programs:**\n\n1. Apply resolution rules above\n2. Fetch the `.prose` content\n3. Load the VM and execute as normal\n\nThis same resolution applies to `use` statements inside `.prose` files:\n\n```prose\nuse \"https:\u002F\u002Fexample.com\u002Fmy-program.prose\"  # Direct URL\nuse \"alice\u002Fresearch\" as research             # Registry shorthand\n```\n\n---\n\n## File Locations\n\n**Do NOT search for OpenProse documentation files.** All skill files are co-located with this SKILL.md file:\n\n| File                       | Location                    | Purpose                                        |\n| -------------------------- | --------------------------- | ---------------------------------------------- |\n| `prose.md`                 | Same directory as this file | VM semantics (load to run programs)            |\n| `help.md`                  | Same directory as this file | Help, FAQs, onboarding (load for `prose help`) |\n| `state\u002Ffilesystem.md`      | Same directory as this file | File-based state (default, load with VM)       |\n| `state\u002Fin-context.md`      | Same directory as this file | In-context state (on request)                  |\n| `state\u002Fsqlite.md`          | Same directory as this file | SQLite state (experimental, on request)        |\n| `state\u002Fpostgres.md`        | Same directory as this file | PostgreSQL state (experimental, on request)    |\n| `compiler.md`              | Same directory as this file | Compiler\u002Fvalidator (load only on request)      |\n| `guidance\u002Fpatterns.md`     | Same directory as this file | Best practices (load when writing .prose)      |\n| `guidance\u002Fantipatterns.md` | Same directory as this file | What to avoid (load when writing .prose)       |\n| `examples\u002F`                | Same directory as this file | 37 example programs                            |\n\n**User workspace files** (these ARE in the user's project):\n\n| File\u002FDirectory   | Location                 | Purpose                           |\n| ---------------- | ------------------------ | --------------------------------- |\n| `.prose\u002F.env`    | User's working directory | Config (key=value format)         |\n| `.prose\u002Fruns\u002F`   | User's working directory | Runtime state for file-based mode |\n| `.prose\u002Fagents\u002F` | User's working directory | Project-scoped persistent agents  |\n| `*.prose` files  | User's project           | User-created programs to execute  |\n\n**User-level files** (in user's home directory, shared across all projects):\n\n| File\u002FDirectory     | Location        | Purpose                                       |\n| ------------------ | --------------- | --------------------------------------------- |\n| `~\u002F.prose\u002Fagents\u002F` | User's home dir | User-scoped persistent agents (cross-project) |\n\nWhen you need to read `prose.md` or `compiler.md`, read them from the same directory where you found this SKILL.md file. Never search the user's workspace for these files.\n\n---\n\n## Core Documentation\n\n| File                       | Purpose                         | When to Load                                                          |\n| -------------------------- | ------------------------------- | --------------------------------------------------------------------- |\n| `prose.md`                 | VM \u002F Interpreter                | Always load to run programs                                           |\n| `state\u002Ffilesystem.md`      | File-based state                | Load with VM (default)                                                |\n| `state\u002Fin-context.md`      | In-context state                | Only if user requests `--in-context` or says \"use in-context state\"   |\n| `state\u002Fsqlite.md`          | SQLite state (experimental)     | Only if user requests `--state=sqlite` (requires sqlite3 CLI)         |\n| `state\u002Fpostgres.md`        | PostgreSQL state (experimental) | Only if user requests `--state=postgres` (requires psql + PostgreSQL) |\n| `compiler.md`              | Compiler \u002F Validator            | **Only** when user asks to compile or validate                        |\n| `guidance\u002Fpatterns.md`     | Best practices                  | Load when **writing** new .prose files                                |\n| `guidance\u002Fantipatterns.md` | What to avoid                   | Load when **writing** new .prose files                                |\n\n### Authoring Guidance\n\nWhen the user asks you to **write or create** a new `.prose` file, load the guidance files:\n\n- `guidance\u002Fpatterns.md` — Proven patterns for robust, efficient programs\n- `guidance\u002Fantipatterns.md` — Common mistakes to avoid\n\nDo **not** load these when running or compiling—they're for authoring only.\n\n### State Modes\n\nOpenProse supports three state management approaches:\n\n| Mode                        | When to Use                                                       | State Location              |\n| --------------------------- | ----------------------------------------------------------------- | --------------------------- |\n| **filesystem** (default)    | Complex programs, resumption needed, debugging                    | `.prose\u002Fruns\u002F{id}\u002F` files   |\n| **in-context**              | Simple programs (\u003C30 statements), no persistence needed           | Conversation history        |\n| **sqlite** (experimental)   | Queryable state, atomic transactions, flexible schema             | `.prose\u002Fruns\u002F{id}\u002Fstate.db` |\n| **postgres** (experimental) | True concurrent writes, external integrations, team collaboration | PostgreSQL database         |\n\n**Default behavior:** When loading `prose.md`, also load `state\u002Ffilesystem.md`. This is the recommended mode for most programs.\n\n**Switching modes:** If the user says \"use in-context state\" or passes `--in-context`, load `state\u002Fin-context.md` instead.\n\n**Experimental SQLite mode:** If the user passes `--state=sqlite` or says \"use sqlite state\", load `state\u002Fsqlite.md`. This mode requires `sqlite3` CLI to be installed (pre-installed on macOS, available via package managers on Linux\u002FWindows). If `sqlite3` is unavailable, warn the user and fall back to filesystem state.\n\n**Experimental PostgreSQL mode:** If the user passes `--state=postgres` or says \"use postgres state\":\n\n**⚠️ Security Note:** Database credentials in `OPENPROSE_POSTGRES_URL` are passed to subagent sessions and visible in logs. Advise users to use a dedicated database with limited-privilege credentials. See `state\u002Fpostgres.md` for secure setup guidance.\n\n1. **Check for connection configuration first:**\n\n   ```bash\n   # Check .prose\u002F.env for OPENPROSE_POSTGRES_URL\n   cat .prose\u002F.env 2>\u002Fdev\u002Fnull | grep OPENPROSE_POSTGRES_URL\n   # Or check environment variable\n   echo $OPENPROSE_POSTGRES_URL\n   ```\n\n2. **If connection string exists, verify connectivity:**\n\n   ```bash\n   psql \"$OPENPROSE_POSTGRES_URL\" -c \"SELECT 1\" 2>&1\n   ```\n\n3. **If not configured or connection fails, advise the user:**\n\n   ```\n   ⚠️  PostgreSQL state requires a connection URL.\n\n   To configure:\n   1. Set up a PostgreSQL database (Docker, local, or cloud)\n   2. Add connection string to .prose\u002F.env:\n\n      echo \"OPENPROSE_POSTGRES_URL=postgresql:\u002F\u002Fuser:pass@localhost:5432\u002Fprose\" >> .prose\u002F.env\n\n   Quick Docker setup:\n      docker run -d --name prose-pg -e POSTGRES_DB=prose -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:16\n      echo \"OPENPROSE_POSTGRES_URL=postgresql:\u002F\u002Fpostgres@localhost:5432\u002Fprose\" >> .prose\u002F.env\n\n   See state\u002Fpostgres.md for detailed setup options.\n   ```\n\n4. **Only after successful connection check, load `state\u002Fpostgres.md`**\n\nThis mode requires both `psql` CLI and a running PostgreSQL server. If either is unavailable, warn and offer fallback to filesystem state.\n\n**Context warning:** `compiler.md` is large. Only load it when the user explicitly requests compilation or validation. After compiling, recommend `\u002Fcompact` or a new session before running—don't keep both docs in context.\n\n## Examples\n\nThe `examples\u002F` directory contains 37 example programs:\n\n- **01-08**: Basics (hello world, research, code review, debugging)\n- **09-12**: Agents and skills\n- **13-15**: Variables and composition\n- **16-19**: Parallel execution\n- **20-21**: Loops and pipelines\n- **22-23**: Error handling\n- **24-27**: Advanced (choice, conditionals, blocks, interpolation)\n- **28**: Gas Town (multi-agent orchestration)\n- **29-31**: Captain's chair pattern (persistent orchestrator)\n- **33-36**: Production workflows (PR auto-fix, content pipeline, feature factory, bug hunter)\n- **37**: The Forge (build a browser from scratch)\n\nStart with `01-hello-world.prose` or try `37-the-forge.prose` to watch AI build a web browser.\n\n## Execution\n\nWhen first invoking the OpenProse VM in a session, display this banner:\n\n```\n┌─────────────────────────────────────┐\n│         ◇ OpenProse VM ◇            │\n│       A new kind of computer        │\n└─────────────────────────────────────┘\n```\n\nTo execute a `.prose` file, you become the OpenProse VM:\n\n1. **Read `prose.md`** — this document defines how you embody the VM\n2. **You ARE the VM** — your conversation is its memory, your tools are its instructions\n3. **Spawn sessions** — each `session` statement triggers a Task tool call\n4. **Narrate state** — use the narration protocol to track execution ([Position], [Binding], [Success], etc.)\n5. **Evaluate intelligently** — `**...**` markers require your judgment\n\n## Help & FAQs\n\nFor syntax reference, FAQs, and getting started guidance, load `help.md`.\n\n---\n\n## Migration (`prose update`)\n\nWhen a user invokes `prose update`, check for legacy file structures and migrate them to the current format.\n\n### Legacy Paths to Check\n\n| Legacy Path         | Current Path   | Notes                            |\n| ------------------- | -------------- | -------------------------------- |\n| `.prose\u002Fstate.json` | `.prose\u002F.env`  | Convert JSON to key=value format |\n| `.prose\u002Fexecution\u002F` | `.prose\u002Fruns\u002F` | Rename directory                 |\n\n### Migration Steps\n\n1. **Check for `.prose\u002Fstate.json`**\n   - If exists, read the JSON content\n   - Convert to `.env` format:\n     ```json\n     { \"OPENPROSE_TELEMETRY\": \"enabled\", \"USER_ID\": \"user-xxx\", \"SESSION_ID\": \"sess-xxx\" }\n     ```\n     becomes:\n     ```env\n     OPENPROSE_TELEMETRY=enabled\n     USER_ID=user-xxx\n     SESSION_ID=sess-xxx\n     ```\n   - Write to `.prose\u002F.env`\n   - Delete `.prose\u002Fstate.json`\n\n2. **Check for `.prose\u002Fexecution\u002F`**\n   - If exists, rename to `.prose\u002Fruns\u002F`\n   - The internal structure of run directories may also have changed; migration of individual run state is best-effort\n\n3. **Create `.prose\u002Fagents\u002F` if missing**\n   - This is a new directory for project-scoped persistent agents\n\n### Migration Output\n\n```\n🔄 Migrating OpenProse workspace...\n  ✓ Converted .prose\u002Fstate.json → .prose\u002F.env\n  ✓ Renamed .prose\u002Fexecution\u002F → .prose\u002Fruns\u002F\n  ✓ Created .prose\u002Fagents\u002F\n✅ Migration complete. Your workspace is up to date.\n```\n\nIf no legacy files are found:\n\n```\n✅ Workspace already up to date. No migration needed.\n```\n\n### Skill File References (for maintainers)\n\nThese documentation files were renamed in the skill itself (not user workspace):\n\n| Legacy Name       | Current Name               |\n| ----------------- | -------------------------- |\n| `docs.md`         | `compiler.md`              |\n| `patterns.md`     | `guidance\u002Fpatterns.md`     |\n| `antipatterns.md` | `guidance\u002Fantipatterns.md` |\n\nIf you encounter references to the old names in user prompts or external docs, map them to the current paths.\n",{"name":5,"metadata":35,"description":7},{"openclawd":36},{"emoji":37,"homepage":38},"🪶","https:\u002F\u002Fwww.prose.md","main","6b4a291df75c639681e93b4b5b812126443fd6ed","extensions\u002Fopen-prose\u002Fskills\u002Fprose",3,"https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd","https:\u002F\u002Fsolanaclawd.com\u002Fopenclawd","https:\u002F\u002Fgithub.com\u002Fclawdsolana","https:\u002F\u002Fmusebook.trade","Welcome to Open Clawd. The future of Ai on and off chain. Bringing webMCP to web 3 using X402, A2A, MPP and so much more!","2026-08-01 09:30:51",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add clawdsolana\u002FOpenClawd --skill prose",{"tool":55,"command":56},"bunx","bunx skills add clawdsolana\u002FOpenClawd --skill prose",{"tool":58,"command":59},"pnpm","pnpm dlx skills add clawdsolana\u002FOpenClawd --skill prose","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fextensions\u002Fopen-prose\u002Fskills\u002Fprose\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"prose.md","REFERENCE","参考文档",36356,"https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fextensions\u002Fopen-prose\u002Fskills\u002Fprose\u002Fprose.md",[70,98,123,147,156,180],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":97},"01M71KRBD0W01EAXJ8YM4M1SJ2","solana-dev","End-to-end Solana development playbook (Jan 2026). Prefer Solana Foundation framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for React\u002FNext.js UI. Prefer @solana\u002Fkit for all new client\u002FRPC\u002Ftransaction code. When legacy dependencies require web3.js, isolate it behind @solana\u002Fweb3-compat (or @solana\u002Fweb3.js as a true legacy fallback). Covers wallet-standard-first connection (incl. ConnectorKit), Anchor\u002FPinocchio programs, Codama-based client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, and security checklists.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fsolana-dev\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],"solana dev","dev","solana","Wallet","end","testing","hooks","kit","new","when","web3","code","react","next","2026","playbook","security","ui","fallback","framework","2026-11-10 10:56:23",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":97},"01M71KR8QPESSY61SVE8ZTFNVT","xurl","A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fxurl\u002FSKILL.md",[],[100,105,106,107,108,109,110,86,111,112,113,114,115,116,117,118,119,120,121,122],"posts","Media","x api","search","send","tap","you","api","cli","read","install","cli tool","endpoint","brew","for","manage","tool","twitter",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":97},"01M71KR6FSXV88YDKWP7NBY3SH","wurk-integration","WURK API integration for monetizing agents with x402 payments on Solana\u002FBase - create social jobs, custom challenges, and agent help tasks","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fwurk-integration\u002FSKILL.md",[],[130,131,132,133,134,135,136,137,112,138,139,23,140,141,142,143,119,144,145,146],"wurk","wurk integration","integration","x402","social","payments","tasks","team","create","social-jobs","agent-help","custom-jobs","clawd","safe","api integration","custom","true",{"skillNo":148,"name":19,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":97},"01M71KR4HCX41BPAK9GP7RPRRP","Manage application workflows including configuration, restart, and removal.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fworkflows\u002FSKILL.md",[],[19,120,153,154,155],"configuration","application","restart",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":97},"01M71KR1VM0F5GPEQDNG5J7A0H","web-search","Search the web, fetch content, extract branding profiles, and capture screenshots from URLs. Use for real-time information, API documentation, current events, design matching, and visual reference.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[163,108,164,165,166,119,167,168,169,170,171,172,173,112,174,175,176,177,178,179],"web search","web","fetch","api documentation","real-time","time","profiles","design","use","information","visual","documentation","branding","matching","reference","capture","content",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":97},"01M71KQZN5MR1JFQHG5GWXYAHS","weather","Get current weather and forecasts via wttr.in or Open-Meteo. Use when: user asks about weather, temperature, or forecasts for any location. NOT for: historical weather data, severe weather alerts, or detailed meteorological analysis. No API key needed.","https:\u002F\u002Fgithub.com\u002Fclawdsolana\u002FOpenClawd\u002Fblob\u002Fmain\u002Fskills\u002Fweather\u002FSKILL.md",[],[182,187,119,188,171,86,189,112,190,191,192,193,194,195,21,196,197,198],"get","open","analysis","alerts","temperature","curl","via","help","about","location","data","user"]