Novel dna
小说独特性守卫。防止AI写作同质化——在写前注入DNA约束、写后三重检测(AI味/套路重复/角色偏离)、自动修复。与context-weaver协作,共同保证长篇小说质量。From its SKILL.md
npx -y skills add Huo0077/novel-qa-pipeline --skill novel-dnaAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.2 KB, 732 tokens by cl100k_base, as published. Nobody here has run it
Novel DNA — 独特性守卫
Iron Law
- DNA 初始化必须先于任何章节写作:未执行
/dna-init前不得开始写作 - 每章写后必须执行检测:
/dna-detect不可跳过 - 检测到需修复时必须修复:
need_repair=true时唯一合法操作是执行/dna-repair
命令入口
| 命令 | 说明 | 触发时机 |
|---|---|---|
/dna-init | 初始化小说DNA档案 | 开书时(一次) |
/dna-inject | 为下一章生成DNA约束prompt | 写前(自动) |
/dna-detect | 三重检测:L1 AI味 / L2 自我重复 / L3 角色偏离 | 写后(自动) |
/dna-repair | 自动修复检测到的问题 | 检测需修复后(自动) |
工作流
开书 → /dna-init(一次性)
↓
每章循环:
/dna-inject → [写作] → /dna-detect → /dna-repair(若需要)
工具脚本
所有工具位于 tools/ 目录,Python 3 标准库,零外部依赖。
# DNA初始化
python tools/dna_init.py --project-root <项目目录> --genre <题材>
# 写前约束注入
python tools/dna_inject.py --project-root <项目目录> --chapter <N> --characters <角色列表>
# 写后三重检测
python tools/dna_detect.py --project-root <项目目录> --chapter-file <章节文件>
# 自动修复
python tools/dna_repair.py --project-root <项目目录> --chapter-file <章节文件>
检测层级
| 层级 | 检测内容 | 修复方式 |
|---|---|---|
| L1: AI味 | 7大类AI写作模式(空洞比喻、过度总结、固定感叹、犹豫句式、回避命名、废话连篇、情感过载) | 自动替换 |
| L2: 自我重复 | 套路冷却期内的重复使用 | 标记报警 |
| L3: 角色偏离 | 角色做出DNA禁止的行为 | 标记报警 |
数据存储
.novel-dna/— DNA档案(dna-manifest.json, style-fingerprint.json, used-patterns.json, banned-cliches.json, ai-patterns.json).mindmap/— 共享思维导图(与context-weaver共享)
What ships with it: 6 files
22.8 KB alongside SKILL.md, 6 of them executable
tools/
- ai_patterns.pyruns3.6 KB
- common.pyruns1.7 KB
- dna_detect.pyruns5.8 KB
- dna_init.pyruns3.9 KB
- dna_inject.pyruns4.2 KB
- dna_repair.pyruns3.6 KB