feat: W8 強度 0~3、稱呼與安全規則 #12

Merged
jiantw83 merged 1 commits from feat/w8-intensity into main 2026-10-14 17:30:32 +00:00
Contributor

Closes #9

  • 新增 hooks/rules.ts(純函式 buildRules):依強度 0~3 與稱呼(角色預設、設定可覆寫)組成規則段落
  • register.tsx 以 prompt.compose hook 把段落加到系統提示最後
  • 強度 2 前後各一個對話氣泡;強度 3 再加動作旁白;不做常駐 band
  • 任何強度下,錯誤/風險/需確認的事先用一句中性清楚的話說完;需確認時省略收尾氣泡
  • 角色語氣不進程式碼、commit 與檔案內容
  • 測試:hooks/rules.test.ts(16 個測試全過,validate 通過)

依賴 PR #11(W2 插件骨架與 config.ts);請在其合併後再合併本 PR。

🤖 Generated with Claude Code

Closes #9 - 新增 hooks/rules.ts(純函式 buildRules):依強度 0~3 與稱呼(角色預設、設定可覆寫)組成規則段落 - register.tsx 以 prompt.compose hook 把段落加到系統提示最後 - 強度 2 前後各一個對話氣泡;強度 3 再加動作旁白;不做常駐 band - 任何強度下,錯誤/風險/需確認的事先用一句中性清楚的話說完;需確認時省略收尾氣泡 - 角色語氣不進程式碼、commit 與檔案內容 - 測試:hooks/rules.test.ts(16 個測試全過,validate 通過) 依賴 PR #11(W2 插件骨架與 config.ts);請在其合併後再合併本 PR。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
admin added 2 commits 2026-10-14 17:10:53 +00:00
兩個角色 skill 空殼(sao-asuna、sao-suguha)、userConfig(預設角色、強度、稱呼)、
設定解析與測試,並登錄到 marketplace。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
以 prompt.compose hook 注入依強度與稱呼組成的規則段落;規則為純函式並附測試。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
jiantw83 merged commit 8fb487ee2c into main 2026-10-14 17:30:32 +00:00
jiantw83 deleted branch feat/w8-intensity 2026-10-14 17:30:32 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jiantw83/jsc-plugins#12