mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7827] [Feature]: Professor Mari - move authoring how-tos out of the permanent prompt into built-in skills #4312
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ylli-selmani on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7827
Originally assigned to: @ylli-selmani on GitHub.
What problem does this solve?
Professor Mari's permanent prompt carries every how-to guide inline, on every turn. Measured on
staging(51e6cace8):MARI_SYSTEM_PROMPTworkspace-agent.service.tsworkspaceCommandKnowledgePrompt()That is ~60k chars (~15k tokens) before any history. About 23k chars of it (~38%) is procedure, not policy:
MARI_DECISION_AUTHORING_PROMPT)character.onboarding.*)Two consequences:
character.onboarding.*implementation code to get a write right, because the paragraph cannot carry the procedure.Proposed solution
Use the skill mechanism that already exists (
app_data skill.list/skill.get, index-and-fetch, bodies up to 200k chars) and add a built-in, shipped skill source. This is the narrow variant of #7375/#7376: no new tool, no prompt restructure, no user-editable built-ins.packages/server/src/assets/mari-skills/*.md. That directory is already copied todist/assetsbypackages/server/scripts/build.mjs, so dev (tsx) and packaged builds resolve it the same way. Frontmatter carriesname+ a trigger-styledescription.list()merges built-ins with the user's DATA_DIR skills.skills.jsonis never touched by a built-in, so an app update replaces shipped text cleanly and a user cannot silently fork it. Ids are namespacedbuiltin-*; a name collision is reported indiagnosticsrather than shadowing.MariWorkspaceSkillSummarygainsorigin: "builtin" | "user". Built-ins are always on and read-only (badge in the Skills panel; edit/delete/toggle hidden;PUT/DELETEreject built-in ids).[BUILT-IN], never inlined, and the block tells her toskill.geta matching skill before acting, plus that a skill is a procedure and never permission.apply/change card,understoodRequest, raw-DB delete danger, memory-save policy, the command-family list, voice. Procedure moves: field-by-field authoring, exact argument shapes, validation errors and fixes, read-back steps, worked examples.docs_read docs/...for deeper field semantics instead of duplicating them.First slice (the proof): interactive onboarding. Line ~911 shrinks to a router line, and
builtin-onboarding.mdcarries the template/question model, conditional syntax, the character-question rule (its{{name}}must live in a card field), the validation errors and their fixes, a worked example, and a read-back verify step.Follow-ups, each a small PR: lorebook authoring, preset authoring, Personal Extensions + browser UI, decision authoring, repair/diagnosis, themes + Home widgets.
Proof plan: a regression for the built-in loader/merge/read-only/index ordering, a permanent-prompt char budget so the text cannot creep back, and a contract regression pinning that the onboarding skill documents every key and rule
character.onboarding.updateaccepts.Alternatives considered
docs_readalready works, but the docs are written for users (audience, tone, no command recipes), and there is no "this is the procedure you must follow" contract. Skills reference docs instead of replacing them.DATA_DIRon first run (the pattern in Gunterlie's #7822 example skill). Right for a feature demo, wrong for product behavior: updates would not propagate and users could silently fork shipped procedure.skilltool,<tool_inventory>/<pacing>blocks replacing existing prompt sections, and user-editable built-ins with "Restore Default". Closed as not-planned; this proposal keeps the existing tool and prompt structure and starts with one skill.Additional context
app_data skill.list/skill.get(index-and-fetch) already onstaging.Template check
@ylli-selmani commented on GitHub (Oct 19, 2026):
always with these trigger happy agents, and filing issues.
@Gunterlie commented on GitHub (Oct 19, 2026):
Nono, let's try that. But I suggest doing/merging that after the next stable Update of ME. So we have time to experiment <3
@ylli-selmani commented on GitHub (Oct 19, 2026):
@Gunterlie that's what i was planning to do, but my agent (dsh this time) was very, very trigger happy, lol. such a diligent worker, it even made a draft pr, after i told it to do no pr's today.
@ylli-selmani commented on GitHub (Oct 20, 2026):
reopening this now, after stable released - also, I'm doing this one