关于 cw-style-skill-creator
cw-style-skill-creator 是用于将作者写作习惯整理成 Claude 可遵循的风格技能的指南。它涵盖轻量 Markdown 文件和可验证、可分发的技能包制作流程。
主要功能
- 01创建写作风格指令
- 02支持 Markdown 和技能包
- 03以模式和示例编写规则
- 04涵盖多种文体技能
- 05提供初始化与打包步骤
适用场景
- 01把现有文稿风格转成指令
- 02为对话或角色声音制定规则
- 03制作可分发的写作技能包
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ haowjy/ creative-writing-skills --skill cw-style-skill-creator安装后在 Claude Code 中输入/cw-style-skill-creator确认已加载。
详细介绍
风格技能创建器
创建风格技能,教会 Claude 如何模仿你的写作风格。
重要:受众是 AI
此处创建的是供 Claude 阅读的 AI 指令,而不是供作者阅读的 人工文档。
| AI 指令 | 人工文档 |
|---|---|
| “撰写 X 时,执行 Y” | “故事使用 X 是因为 Y” |
| 指令式命令 | 解释性描述 |
| 模式 + 示例 | 分析 + 推理 |
步骤 1:询问格式
务必先询问:
Would you like me to create:
1. Simple markdown file (.md)
- Quick, lightweight
- Single file with style instructions
2. Full skill package (.skill)
- Properly structured and validated
- Can include reference files with examples
- Better for complex styles
Which format would you prefer?
简易 Markdown 格式
---
description: [What this style covers]
alwaysApply: false
---
# [Style Name]
[Brief intro]
## [Category]
[Directive instructions with examples]
位置: .cursor/rules/styles/[name].md 或用户指定的位置
完整技能包格式
初始化
python /mnt/skills/examples/skill-creator/scripts/init_skill.py [skill-name] --path [output-dir]
创建包含 SKILL.md、references/、scripts/ 和 assets/ 的目录结构
自定义
SKILL.md 结构:
---
name: [skill-name]
description: Style skill for [specific writing type]
---
# [Style Name]
## Purpose
Teaches Claude to write [X] in the author's style.
## [Style Instructions]
[Directive instructions organized by category]
如有帮助,可添加参考文件:
references/examples.md- 正面和反面示例references/patterns.md- 详细的模式库
删除未使用的目录(如果不需要 scripts/、assets/)
打包
python /mnt/skills/examples/skill-creator/scripts/package_skill.py [path-to-skill] [output-dir]
创建经过验证、可供分发的 .skill 文件。
写作风格:指令性和技术性
使用祈使句/命令式表达:
✅ “描写动作时使用短句”
✅ “避免使用对话标签”
✅ “通过动作表现情绪”
❌ “作者倾向于使用短句”(这是分析,不是指令)
务必包含示例:
**Emotional beats:**
- Use action instead of emotional labels
- Example: "Her hands trembled" not "She felt nervous"
模式 + 示例格式:
**[Pattern name]:**
- [Instruction about the pattern]
- Example: [Concrete example]
- Avoid: [What NOT to do]
常见的风格技能类型
散文总风格: 整体文风、句子结构、语气
对话: 标签使用、动作描写、潜台词、角色声音
动作: 句子长度、细节程度、节奏
描写: 感官细节、隐喻、细节程度
角色声音: 每个角色的说话模式和词汇
格式: 长破折号、省略号、场景分隔、思想格式
创建流程
1. 收集输入
根据用户描述:
- “向我描述你的风格”
- “这种风格应涵盖哪些模式?”
根据现有作品:
- “我可以读几章来识别模式吗?”
- 如果用户提供了章节,请阅读 2-3 章
2. 询问格式
简易 .md 还是完整 .skill 技能包?
3A. 简易流程
- 创建包含各个章节的 Markdown 文件
- 添加指令性说明和示例
- 保存到
.cursor/rules/styles/或指定位置
3B. 完整技能流程
- 运行
init_skill.py - 编辑 SKILL.md,添加风格指令
- 如有帮助,添加参考文件
- 删除未使用的目录
- 运行
package_skill.py - 提供下载链接
示例
对话风格(简易 .md)
---
description: Dialogue writing conventions
alwaysApply: false
---
# Dialogue Style
## Dialogue Tags
**Minimize "said":**
- Use action beats instead
- Example: She crossed her arms. "Fine."
- When using tags, prefer "said" to fancy verbs
## Interruptions
**Use em dashes:**
- For interrupted speech: "I thought we could—"
- Example: "Wait, I—" He grabbed her arm.
## Subtext
**Characters avoid directness:**
- Show tension through what's NOT said
- Example: "That's nice." (flat, clearly upset)
- Avoid: "I'm angry!" (too direct)
角色声音
---
name: character-amber-voice
description: Amber's voice and speech patterns
---
# Character Voice: Amber
## Speech Patterns
**Careful word choice:**
- Adult consciousness = measured speech
- Avoids contractions when stressed
- Example: "I do not want to go" not "I don't wanna go"
**Politeness as defense:**
- Overly formal when uncomfortable
- Uses "please" and "thank you" excessively
## Internal Monologue
**Analytical:**
- Observes and categorizes
- Example: "Dr. Fuji's hands trembled—stress response, possibly guilt."
集成
工作流:
- 用户自然地撰写章节
- 此技能将写作模式转换为风格技能
- cw-prose-writing 加载并遵循这些技能
- 结果:AI 以用户的风格创作出风格一致的散文
评论
支持 Markdown