refactor: 拆分 SKILL.md 为模块化 references 结构#24
Open
IA20201 wants to merge 2 commits into
Open
Conversation
- SKILL.md 精简至 ~55 行,只保留核心规则、快速检查和处理流程 - 24 个 AI 写作模式按类别拆分到 references/ 目录: - content-patterns.md (模式 1-6): 内容层面 - language-patterns.md (模式 7-12): 语言/语法层面 - style-patterns.md (模式 13-18): 风格/排版层面 - communication-patterns.md (模式 19-24): 交流/填充层面 - scoring.md: 质量评分 + 个性注入指南 + 完整示例 - README.md 更新以反映新结构
- 参考文件列表添加触发条件,引导 agent 按需加载 - 处理流程第 4 步改为引用核心规则+快速检查,避免重叠 - 末尾添加使用示例(输入/输出对比) - 模式 3 添加分类归属注释(语言结构但归入内容模式的原因)
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.
背景
当前 SKILL.md 将 24 个 AI 写作模式、核心规则、处理流程、质量评分、完整示例全部堆在一个文件中(~19KB/300+ 行)。Agent 加载时需要读取整个文件,占用大量上下文窗口。
改动
将 SKILL.md 拆分为模块化结构,agent 按需加载:
SKILL.md(主文件)
references/(参考文件)
scoring.md独立封装评分表和个性注入指南README.md
动机
references/按需加载验证
validate_skill.py验证