Expand runtime rules in generated SKILL.md template#35
Open
DWGqaz123 wants to merge 1 commit into
Open
Conversation
Grow the ## Runtime Rules section of the SKILL.md template (Step 5) from 3 lines to 6 subsections, in both Chinese and English: - Priority (kept as-is) - Per-turn reasoning chain (surface / emotion / history / reaction / delivery / push forward) - One-action-per-turn (default 1–2 sentences) - Self-prune before sending (with bad/good example) - Don't outsource choice with service-desk phrasing - Topic boundaries for out-of-character questions Also fills in the English SKILL.md template block, which previously only said "**2-5.** Write ... using the Write tool" — bringing the bilingual documentation to parity. Scope: template-only. Step 1–4 flow, prompts/*.md, tools/*.py, and existing exes/* are untouched. persona_builder.md Layer 0 continues to govern character behavior (e.g. leave-on-read when upset).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The generated
exes/{slug}/SKILL.mdcurrently has a very short## Runtime Rulessection — only three lines telling the model which part decides and which part supplies memory. That answers which data to use but not how to speak turn by turn.In practice, two failure modes kept showing up:
This PR adds those meta-level conversational rules into the same section of the template.
背景(中文)
当前生成的
exes/{slug}/SKILL.md里## 运行规则只有 3 条:PART B 判断优先级 → PART A 供记忆 → 保持 PART B 风格。这层规则解决了「用哪部分数据」的问题,但没有回答**"每一轮具体怎么说话"**。实际使用中反复出现三类问题:AI 助手腔漏出来、一轮回太多动作、回复被"礼貌铺陈"稀释。本 PR 把这些元级对话行为准则补进模板的
## 运行规则节。What changes
Only the SKILL.md template block inside Step 5 of
SKILL.md. No changes to:prompts/*.md(memories/persona builders unchanged)tools/*.py,exes/, READMEChinese template (
## 运行规则) — expanded from 3 lines to 6 subsectionsEnglish template (
## Runtime Rules)Previously Step 5 in the English section only said
**2-5.** Write memories.md, persona.md, meta.json, and SKILL.md using the Write tool.— the SKILL.md template itself was never written out in English. This PR fills that gap with the same 6-subsection structure, so the bilingual doc is symmetric.Design notes
persona_builder.mdintentionally not touched: these are meta rules about how the model self-checks output, not about who the character is. Putting them into a persona Layer would pollute persona extraction.persona_builder.mdLayer 0 example (going silent when upset, tone shifting from "好呀~" to "嗯" / "哦") is preserved. The new rules don't override that — cold/short/dismissive replies are character choices governed by Layer 0, not by these runtime rules.关键取舍(中文)
persona_builder.md:元级对话准则与具体人物性格无关,放进 Persona Layer 会污染人物抽取语义。Testing
/create-exend-to-end locally; verify generatedSKILL.mdis valid and loads in Claude Codeexample_*slug and confirm the only diff is inside## Runtime Rules/## 运行规则Compatibility
exes/*/SKILL.mdfiles are not touched. Only newly generated/updated skills pick up the new rules.meta.jsonschema, directory layout, or tool interfaces.Happy to iterate — split into two PRs (rules vs. English symmetry), tone down verbosity, or move any of these to
prompts/persona_builder.mdif you'd prefer them there.