[PR #8742] [MERGED] docs(extending): rewrite extending guides + Phase 3 cross-link pass #8777

Closed
opened 2026-11-07 17:39:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8742
Author: @Gunterlie
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @Gunterlie

Base: staging ← Head: docs/extending-guides


📝 Commits (10+)

  • aa8417a docs(extending): rewrite custom-tools guide as task-first steps
  • 09c475b docs(extending): rewrite regex-scripts guide with tables and task-first steps
  • 67b9c59 docs(extending): split personal-extensions into user guide and move API reference to writing-personal-extensions
  • 917614a docs(extending): tidy writing-creature-packs guide
  • 8474d19 docs(extending): tighten writing-rulesets guide
  • 1ad5fe3 docs(extending): tidy writing-story-scripts, drop inline version tags, add minimal example
  • 3652a41 docs(extending): add purpose openings and remove filler words in ruleset reference pages
  • e3ab6ac docs(extending): restore FAKE tag text, add jump lists to ruleset-items and ruleset-combat, trim catalogs opening
  • 38b2ce4 docs(extending): custom-tools review fixes (tool-use label, check step, lists, language tags)
  • ee484cb docs(extending): regex-scripts review fixes (worked steps, group chats, bullets)

📊 Changes

20 files changed (+844 additions, -889 deletions)

View changed files

📝 docs/connections/local-model.md (+1 -1)
📝 docs/connections/local-self-hosted.md (+1 -1)
📝 docs/conversation/calls.md (+1 -1)
📝 docs/conversation/emoji-stickers-gifs.md (+1 -1)
📝 docs/extending/custom-tools.md (+103 -137)
📝 docs/extending/personal-extensions.md (+67 -226)
📝 docs/extending/regex-scripts.md (+102 -99)
📝 docs/extending/ruleset-catalogs.md (+2 -2)
📝 docs/extending/ruleset-character-builder.md (+2 -2)
📝 docs/extending/ruleset-checks.md (+7 -7)
📝 docs/extending/ruleset-combat.md (+38 -15)
📝 docs/extending/ruleset-items.md (+23 -5)
📝 docs/extending/ruleset-layers-and-translations.md (+2 -2)
📝 docs/extending/ruleset-mechanics.md (+20 -20)
📝 docs/extending/ruleset-sheets.md (+3 -3)
📝 docs/extending/writing-creature-packs.md (+33 -43)
📝 docs/extending/writing-personal-extensions.md (+206 -11)
📝 docs/extending/writing-rulesets.md (+82 -53)
📝 docs/extending/writing-story-scripts.md (+149 -259)
📝 docs/roleplay/scenes.md (+1 -1)

📄 Description

Linked issue

Part of #8721 (Docs rewrite: progress). No separate issue; the audit is in #8721. cc @SpicyMarinara

Why this change

The extending guides are where hobbyists build custom tools, regex scripts and rulesets. Before this change:

  • A reader could not install a personal extension a friend shared, because the page never named the import control.
  • The custom-tools guide pointed to an "Enable Function Calling" setting that does not exist.
  • The user and developer material for personal extensions was mixed on one page.
  • The eight ruleset reference pages (over 130k words) opened without saying what they are for or who needs them.

This PR also carries the Phase 3 cross-link pass over all docs, now that the other category PRs in #8721 have merged. The pass is in it to keep the PR count down, as the maintainer asked.

What changed

Extending guides

  • custom-tools.md: −29% words. Adds an admin-secret note in "Before you start" and a "check it works" step. Code blocks are tagged.
  • regex-scripts.md: −20%. Steps use the example's real Find/Replace values. Adds a real-chat check and a Group chats section.
  • personal-extensions.md: now a user guide (−61%). It has "Install an extension someone shared" (Import Extension File / Import Extension Folder), a "Which kind is which" table and a phone-friendly platform table.
  • writing-personal-extensions.md: gained the developer API sections moved from personal-extensions.md. All 16 code blocks are byte-identical.
  • writing-creature-packs.md, writing-rulesets.md, writing-story-scripts.md:
    • Task order and plainer sharing sections.
    • writing-story-scripts gets a "Features by Capability API version" list and a minimal story example, validated against storyScriptSchema.
    • Inline Capability API tags in the ruleset and creature pack guides stay where they were.
  • Eight ruleset-*.md reference pages:
    • New 1–2 sentence openings with a "Before you start" link.
    • Filler words removed in prose only.
    • Jump lists on ruleset-items and ruleset-combat.
    • Bodies, JSON blocks and Capability API tags unchanged.
  • Merged the latest staging, then ran the link and anchor checker over every guide.
  • Fixed links to headings renamed by the other rewrites:
    • CONFIGURATION.md#where-the-env-file-is → #edit-the-env-file (local-model, local-self-hosted, emoji-stickers-gifs).
    • group-chats.md#merged-narrator-or-individual → #choose-who-speaks (roleplay/scenes).
  • Link text "Local Model Setup" → "Built-in Model Setup", the page's current title (game/getting-started, conversation/calls).
  • Connection is kept where it is the UI label (en.json has it), not changed to "account".

Fact changes

  • "Enable Function Calling" → Enable Tool Use in the chat's Function Calling section. The agent editor footer reminds you (en.json:7673, AgentEditor.tsx:4904).
  • The delete button is Delete Function (en.json:15351).
  • Review imports in "Function Calls" → the section is Functions.
  • Added the creature pack 32 MB file limit (creature-pack.ts:113).
  • Custom tool rules: the name is 1–100 characters and the description is 1–500 (custom-tool.schema.ts:13-15).
  • Removed an unverifiable paragraph on semantic lorebook ranking from custom-tools.
  • writing-rulesets: "five ways to share", matching its five sections.
  • writing-story-scripts: the 1.359 entry names the map pack overlay's storyUses entry and links optional-agent-packages.

Could not verify

  • Pixelforge: there is no URL in the repo, so it is described as a separate authoring app.
  • Ruleset package limits (132 MB, 12 catalogs, 40 translations).
  • The 32-file GitHub repository limit.
  • The [story: ...] tag syntax.
  • Mechanics claims in the reference pages.
  • Regex apply-mode names: they are hard-coded in components, not in en.json. The docs match the code.

Open questions

  • ruleset-mechanics.md and ruleset-character-builder.md have no ## headings, so they get no jump list. Adding structure would be a larger edit.
  • contrib/engine-foundations-overview.md (contributor doc, outside this rewrite) has 3 H1s and a horizontal rule. I left it unchanged.

Renamed headings with screenshots

None. "Creating a tool" and "Creating a regex script" are kept, and so are headings that other pages link to.

Other renamed headings (nothing links to them):

  • writing-rulesets: "Quickstart" → "Start a ruleset", "Trying your ruleset" → "Try your ruleset", "The pages of this guide" → "Reference pages".
  • personal-extensions: "External Extensions" → "Allow third-party imports".
  • writing-creature-packs: "Using a pack" → "Use a pack".

Renamed files

None.

Translation follow-up

#8745

Validation

  • node check-docs.mjs (links, anchors, screenshot headings, single H1) over all docs: no errors left in the user guides. The one remaining report is the contrib doc above.
  • All 8 docs-reading regressions pass locally on this branch: launcher update, launcher format-guard, open-issues, prompt, access-chain-security and the three ruleset symbol-pool regressions.
  • A separate fact-check pass found 2 wrong claims, both fixed. One was an Engine literal changed by a filler sweep, now restored.
  • A separate phone-reader pass made fixes, all applied.
  • Dottore findings were fixed and replied to on each thread.
  • Local CodeRabbit: CLI not available in this sandbox.
  • pnpm check passes locally
  • Read and followed CONTRIBUTING.md

Manual verification

  • Create a custom tool and call it in a chat with Enable Tool Use on.
  • Follow the regex example and check the rewrite in a real chat.
  • Import a shared personal extension file following the new steps.
  • Load the minimal story example in a Game chat.
  • Read custom-tools, regex-scripts and personal-extensions on a phone-width screen.
  • Open the fixed cross-links (local-model → .env section, scenes → Choose who speaks) on the docs site.

Docs and release impact

  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (#8745)

🤖 Generated with Claude Code

https://claude.ai/code/session_01R5jnWUseUoEJVRiDfKqrbm


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8742 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `docs/extending-guides` --- ### 📝 Commits (10+) - [`aa8417a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa8417a08e19c1adf68dabf8aa4c5a79d170e298) docs(extending): rewrite custom-tools guide as task-first steps - [`09c475b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/09c475bda5bd29db99c4fba2c39923d605b0b188) docs(extending): rewrite regex-scripts guide with tables and task-first steps - [`67b9c59`](https://github.com/Pasta-Devs/Marinara-Engine/commit/67b9c59556e49ac172df0c1342fea5ec6d58148d) docs(extending): split personal-extensions into user guide and move API reference to writing-personal-extensions - [`917614a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/917614afcada50e11e31ead7faf61fae132ba61c) docs(extending): tidy writing-creature-packs guide - [`8474d19`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8474d193046c35582bd4eadb018713cd510f77fd) docs(extending): tighten writing-rulesets guide - [`1ad5fe3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ad5fe3bf35903ecc004b5fa44eae5dd9bcc75e0) docs(extending): tidy writing-story-scripts, drop inline version tags, add minimal example - [`3652a41`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3652a41c4b563b95693dbb37d6f13f154b1bb099) docs(extending): add purpose openings and remove filler words in ruleset reference pages - [`e3ab6ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3ab6ac0fbf7cab1f91018ba6e0f21be8d459561) docs(extending): restore FAKE tag text, add jump lists to ruleset-items and ruleset-combat, trim catalogs opening - [`38b2ce4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38b2ce40dad5333a4ea213f54e1c9544556bfd2f) docs(extending): custom-tools review fixes (tool-use label, check step, lists, language tags) - [`ee484cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee484cb447e41aa232b5cb2c792492d0a2e8ba8e) docs(extending): regex-scripts review fixes (worked steps, group chats, bullets) ### 📊 Changes **20 files changed** (+844 additions, -889 deletions) <details> <summary>View changed files</summary> 📝 `docs/connections/local-model.md` (+1 -1) 📝 `docs/connections/local-self-hosted.md` (+1 -1) 📝 `docs/conversation/calls.md` (+1 -1) 📝 `docs/conversation/emoji-stickers-gifs.md` (+1 -1) 📝 `docs/extending/custom-tools.md` (+103 -137) 📝 `docs/extending/personal-extensions.md` (+67 -226) 📝 `docs/extending/regex-scripts.md` (+102 -99) 📝 `docs/extending/ruleset-catalogs.md` (+2 -2) 📝 `docs/extending/ruleset-character-builder.md` (+2 -2) 📝 `docs/extending/ruleset-checks.md` (+7 -7) 📝 `docs/extending/ruleset-combat.md` (+38 -15) 📝 `docs/extending/ruleset-items.md` (+23 -5) 📝 `docs/extending/ruleset-layers-and-translations.md` (+2 -2) 📝 `docs/extending/ruleset-mechanics.md` (+20 -20) 📝 `docs/extending/ruleset-sheets.md` (+3 -3) 📝 `docs/extending/writing-creature-packs.md` (+33 -43) 📝 `docs/extending/writing-personal-extensions.md` (+206 -11) 📝 `docs/extending/writing-rulesets.md` (+82 -53) 📝 `docs/extending/writing-story-scripts.md` (+149 -259) 📝 `docs/roleplay/scenes.md` (+1 -1) </details> ### 📄 Description ## Linked issue Part of #8721 (Docs rewrite: progress). No separate issue; the audit is in #8721. cc @SpicyMarinara ## Why this change The extending guides are where hobbyists build custom tools, regex scripts and rulesets. Before this change: - A reader could not install a personal extension a friend shared, because the page never named the import control. - The custom-tools guide pointed to an "Enable Function Calling" setting that does not exist. - The user and developer material for personal extensions was mixed on one page. - The eight ruleset reference pages (over 130k words) opened without saying what they are for or who needs them. This PR also carries the Phase 3 cross-link pass over all docs, now that the other category PRs in #8721 have merged. The pass is in it to keep the PR count down, as the maintainer asked. ## What changed ### Extending guides - `custom-tools.md`: −29% words. Adds an admin-secret note in "Before you start" and a "check it works" step. Code blocks are tagged. - `regex-scripts.md`: −20%. Steps use the example's real Find/Replace values. Adds a real-chat check and a Group chats section. - `personal-extensions.md`: now a user guide (−61%). It has "Install an extension someone shared" (**Import Extension File** / **Import Extension Folder**), a "Which kind is which" table and a phone-friendly platform table. - `writing-personal-extensions.md`: gained the developer API sections moved from personal-extensions.md. All 16 code blocks are byte-identical. - `writing-creature-packs.md`, `writing-rulesets.md`, `writing-story-scripts.md`: - Task order and plainer sharing sections. - writing-story-scripts gets a "Features by Capability API version" list and a minimal story example, validated against `storyScriptSchema`. - Inline Capability API tags in the ruleset and creature pack guides stay where they were. - Eight `ruleset-*.md` reference pages: - New 1–2 sentence openings with a "Before you start" link. - Filler words removed in prose only. - Jump lists on ruleset-items and ruleset-combat. - Bodies, JSON blocks and Capability API tags unchanged. ### Phase 3 cross-link pass (all docs) - Merged the latest `staging`, then ran the link and anchor checker over every guide. - Fixed links to headings renamed by the other rewrites: - `CONFIGURATION.md#where-the-env-file-is` → `#edit-the-env-file` (local-model, local-self-hosted, emoji-stickers-gifs). - `group-chats.md#merged-narrator-or-individual` → `#choose-who-speaks` (roleplay/scenes). - Link text "Local Model Setup" → "Built-in Model Setup", the page's current title (game/getting-started, conversation/calls). - **Connection** is kept where it is the UI label (`en.json` has it), not changed to "account". ## Fact changes - "Enable Function Calling" → **Enable Tool Use** in the chat's **Function Calling** section. The agent editor footer reminds you (`en.json:7673`, `AgentEditor.tsx:4904`). - The delete button is **Delete Function** (`en.json:15351`). - Review imports in "Function Calls" → the section is **Functions**. - Added the creature pack 32 MB file limit (`creature-pack.ts:113`). - Custom tool rules: the name is 1–100 characters and the description is 1–500 (`custom-tool.schema.ts:13-15`). - Removed an unverifiable paragraph on semantic lorebook ranking from custom-tools. - writing-rulesets: "five ways to share", matching its five sections. - writing-story-scripts: the 1.359 entry names the map pack overlay's `storyUses` entry and links optional-agent-packages. ## Could not verify - Pixelforge: there is no URL in the repo, so it is described as a separate authoring app. - Ruleset package limits (132 MB, 12 catalogs, 40 translations). - The 32-file GitHub repository limit. - The `[story: ...]` tag syntax. - Mechanics claims in the reference pages. - Regex apply-mode names: they are hard-coded in components, not in `en.json`. The docs match the code. ## Open questions - `ruleset-mechanics.md` and `ruleset-character-builder.md` have no `##` headings, so they get no jump list. Adding structure would be a larger edit. - `contrib/engine-foundations-overview.md` (contributor doc, outside this rewrite) has 3 H1s and a horizontal rule. I left it unchanged. ## Renamed headings with screenshots None. "Creating a tool" and "Creating a regex script" are kept, and so are headings that other pages link to. Other renamed headings (nothing links to them): - writing-rulesets: "Quickstart" → "Start a ruleset", "Trying your ruleset" → "Try your ruleset", "The pages of this guide" → "Reference pages". - personal-extensions: "External Extensions" → "Allow third-party imports". - writing-creature-packs: "Using a pack" → "Use a pack". ## Renamed files None. ## Translation follow-up #8745 ## Validation - `node check-docs.mjs` (links, anchors, screenshot headings, single H1) over all docs: no errors left in the user guides. The one remaining report is the contrib doc above. - All 8 docs-reading regressions pass locally on this branch: launcher update, launcher format-guard, open-issues, prompt, access-chain-security and the three ruleset symbol-pool regressions. - A separate fact-check pass found 2 wrong claims, both fixed. One was an Engine literal changed by a filler sweep, now restored. - A separate phone-reader pass made fixes, all applied. - Dottore findings were fixed and replied to on each thread. - Local CodeRabbit: CLI not available in this sandbox. - [ ] `pnpm check` passes locally - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification - [ ] Create a custom tool and call it in a chat with **Enable Tool Use** on. - [ ] Follow the regex example and check the rewrite in a real chat. - [ ] Import a shared personal extension file following the new steps. - [ ] Load the minimal story example in a Game chat. - [ ] Read custom-tools, regex-scripts and personal-extensions on a phone-width screen. - [ ] Open the fixed cross-links (local-model → `.env` section, scenes → Choose who speaks) on the docs site. ## Docs and release impact - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (#8745) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01R5jnWUseUoEJVRiDfKqrbm --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8777
No description provided.