[PR #7822] [MERGED] feat(mari): example skill that asks questions with chips (off by default) #7948

Closed
opened 2026-10-24 04:09:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7822
Author: @Gunterlie
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/mari-example-skill


📝 Commits (4)

  • 8ecf133 feat(mari): seed a disabled example skill that asks questions with chips
  • 979e4ff style: prettier
  • ed4a50c fix(mari): seed the example skill once per process and write the skill index atomically
  • 298d321 fix(mari): give each skill index write its own temp file

📊 Changes

2 files changed (+80 additions, -2 deletions)

View changed files

📝 packages/server/src/services/professor-mari/workspace-skills.service.ts (+48 -2)
➕ scripts/regressions/mari/example-skill.regression.ts (+32 -0)

📄 Description

Why

New users open the Professor Mari Skills panel and see No custom skills yet, with no example of what a skill can do. This ships one example, off by default, that shows a real behaviour change: Professor Mari asks short questions with quick-reply chips (suggestions) or one guided plan before she builds, instead of building first with her best guess.

No linked issue (small planned change).

What changed

  • On an install with no skill index yet, the server seeds one skill, ask-before-building, disabled.
  • It is a normal user skill after that: edit, toggle or delete it, and it stays that way. No built-in id, no override, no "restore default" (avoids the data-loss path from #7376).
  • Existing installs that already have skills do not get it.
  • Regression scripts/regressions/mari/example-skill.regression.ts: seeded once and disabled, adds nothing to the prompt while off, and does not come back after a delete.

Manual verification

  • On a fresh data dir, open Professor Mari → Skills and confirm ask-before-building is listed and off.
  • Turn it on, ask "make me a character", and confirm she asks with chips or a plan before she creates anything.
  • Delete it, reload, and confirm it does not come back.

Summary by CodeRabbit

  • New Features
    • Added a disabled example skill that encourages asking clarifying questions before creating or changing something. It is added only when no skills index exists and does not appear in prompts while disabled.
  • Bug Fixes
    • Improved reliability when saving the skills index, including recovery from failed saves.
  • Tests
    • Added coverage for the example skill’s initial state, prompt visibility, and behavior after deletion.

🔄 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/7822 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/mari-example-skill` --- ### 📝 Commits (4) - [`8ecf133`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ecf13369b373602fd262f32b2bed6994a9cff66) feat(mari): seed a disabled example skill that asks questions with chips - [`979e4ff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/979e4ff09d2f060b9d672d211fa37faf563f53bd) style: prettier - [`ed4a50c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed4a50c25f1afd07bba39f108ff6e378a4d74b36) fix(mari): seed the example skill once per process and write the skill index atomically - [`298d321`](https://github.com/Pasta-Devs/Marinara-Engine/commit/298d32122490fc402bc0448e4491e5f40234064f) fix(mari): give each skill index write its own temp file ### 📊 Changes **2 files changed** (+80 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/professor-mari/workspace-skills.service.ts` (+48 -2) ➕ `scripts/regressions/mari/example-skill.regression.ts` (+32 -0) </details> ### 📄 Description ## Why New users open the Professor Mari **Skills** panel and see **No custom skills yet**, with no example of what a skill can do. This ships one example, off by default, that shows a real behaviour change: Professor Mari asks short questions with quick-reply chips (`suggestions`) or one guided `plan` before she builds, instead of building first with her best guess. No linked issue (small planned change). ## What changed - On an install with no skill index yet, the server seeds one skill, `ask-before-building`, **disabled**. - It is a normal user skill after that: edit, toggle or delete it, and it stays that way. No built-in id, no override, no "restore default" (avoids the data-loss path from #7376). - Existing installs that already have skills do not get it. - Regression `scripts/regressions/mari/example-skill.regression.ts`: seeded once and disabled, adds nothing to the prompt while off, and does not come back after a delete. ## Manual verification - [ ] On a fresh data dir, open Professor Mari → **Skills** and confirm **ask-before-building** is listed and off. - [ ] Turn it on, ask "make me a character", and confirm she asks with chips or a plan before she creates anything. - [ ] Delete it, reload, and confirm it does not come back. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a disabled example skill that encourages asking clarifying questions before creating or changing something. It is added only when no skills index exists and does not appear in prompts while disabled. * **Bug Fixes** * Improved reliability when saving the skills index, including recovery from failed saves. * **Tests** * Added coverage for the example skill’s initial state, prompt visibility, and behavior after deletion. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:04 +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#7948
No description provided.