$npx -y skills add free-revalution/AIGC-Detector-Pro --skill aigc-detectorAcademic paper AI content detection, rewriting, and thesis writing assistant. Analyzes text for AI-generated characteristics, provides detailed rewrite suggestions, and generates full thesis drafts. Supports .docx files, outputs reports and rewritten/formatted documents. Bilingua
| 1 | # AIGC Detection, Rewriting & Thesis Writing Assistant |
| 2 | |
| 3 | Bilingual academic paper assistant. Two modes: **Detection & Rewrite** (analyze existing papers for AI-generated content) and **Thesis Writing** (generate full thesis drafts from templates and code). Supports Chinese and English academic papers. |
| 4 | |
| 5 | --- |
| 6 | |
| 7 | ## 使用方式 |
| 8 | |
| 9 | **分析论文 / Analyze paper:** |
| 10 | - "分析这篇论文的AIGC特征:/path/to/thesis.docx" |
| 11 | - "Analyze this paper for AI-generated content: /path/to/thesis.docx" |
| 12 | - "检测这篇论文的AI率"(然后粘贴文本) |
| 13 | |
| 14 | **改写论文 / Rewrite paper:** |
| 15 | - "帮我改写这篇论文降低AI率:/path/to/thesis.docx" |
| 16 | - "Help me rewrite this paper to reduce AI detection rate: /path/to/thesis.docx" |
| 17 | |
| 18 | **撰写论文 / Write thesis:** |
| 19 | - "帮我写毕业论文,模板在About/目录" |
| 20 | - "Help me write my graduation thesis, template is in About/" |
| 21 | - "开始论文写作模式"(然后按提示操作) |
| 22 | |
| 23 | --- |
| 24 | |
| 25 | ## Agent 适配说明 |
| 26 | |
| 27 | 本 Skill 适配多种 AI Agent。以下是各 Agent 的工具映射: |
| 28 | |
| 29 | | 功能 | Claude Code | 其他 Agent (Codex / Cursor / Windsurf / Gemini) | |
| 30 | |------|------------|--------------------------------------------------| |
| 31 | | 询问用户 | AskUserQuestion 工具 | 输出选项编号,等待用户输入数字选择 | |
| 32 | | 保存文件 | Write 工具 | 使用 Bash 写入文件 | |
| 33 | | 读取文档 | Bash + python3 | 相同 | |
| 34 | | 生成图表 | Bash + python3 diagram_gen.py | 相同 | |
| 35 | | 插入图片 | Bash + python3 docx_io.py insert_figure | 相同 | |
| 36 | | 路径解析 | .claude/skills/ → ~/.claude/skills/(fallback) | ~/.claude/skills/(全局安装路径) | |
| 37 | |
| 38 | --- |
| 39 | |
| 40 | ## 工作流程 |
| 41 | |
| 42 | 严格按照以下步骤执行,不要跳过任何步骤。 |
| 43 | |
| 44 | ### 模式选择(Mode Selection) |
| 45 | |
| 46 | 根据用户意图选择工作模式: |
| 47 | |
| 48 | 1. **检测/改写模式(Detection & Rewrite Mode)** — 用户要求分析或改写已有论文 |
| 49 | - 触发词:"分析""检测""改写""降低AI率""AIGC" + 文件路径或文本 |
| 50 | - 执行下方 **检测/改写模式** 步骤(Step 0-5) |
| 51 | |
| 52 | 2. **论文写作模式(Thesis Writing Mode)** — 用户要求撰写或生成论文 |
| 53 | - 触发词:"写论文""撰写""生成论文""毕业论文""thesis""write paper" |
| 54 | - 执行下方 **论文写作模式** 步骤(Step W0-W5) |
| 55 | - 详细指令见 `references/thesis_writing_guide.md` |
| 56 | |
| 57 | 如果用户意图不明确,使用 AskUserQuestion 工具询问: |
| 58 | > 1. "检测/改写已有论文" |
| 59 | > 2. "撰写新论文" |
| 60 | |
| 61 | --- |
| 62 | |
| 63 | ### 检测/改写模式(Detection & Rewrite Mode) |
| 64 | |
| 65 | ### Step 0:语言检测 |
| 66 | |
| 67 | 检测论文语言。如果用户提供了 .docx 文件,先执行 Step 1 读取文档获取文本后再检测语言。 |
| 68 | |
| 69 | 1. 分析输入文本的前500个字符 |
| 70 | 2. 如果非标点字符中中文字符占比 > 60% → 语言 = "zh" |
| 71 | 3. 否则 → 语言 = "en" |
| 72 | 4. 后续所有步骤(分析、报告、改写)均使用检测到的语言 |
| 73 | |
| 74 | **中英文对应维度映射:** |
| 75 | |
| 76 | | 中文维度 | English Dimension | |
| 77 | |---------|------------------| |
| 78 | | 句式规整度 | Sentence Regularity | |
| 79 | | 逻辑词密度 | Connector Density | |
| 80 | | 语态特征 | Voice Characteristics | |
| 81 | | 词汇多样性 | Vocabulary Diversity | |
| 82 | | 论证深度 | Argumentation Depth | |
| 83 | |
| 84 | **重要:** 如果语言为 "en",在 Step 2 分析时参考 `references/detection_principles.md` 中的 "English AI Characteristics" 章节,在 Step 5 改写时参考 `references/rewrite_methods.md` 中的 "English Rewrite Techniques" 章节。 |
| 85 | |
| 86 | ### Step 1:读取文档 |
| 87 | |
| 88 | 根据用户输入类型选择处理方式: |
| 89 | |
| 90 | **如果用户提供了 .docx 文件路径:** |
| 91 | |
| 92 | 先用全局安装路径尝试: |
| 93 | ```bash |
| 94 | python3 ~/.claude/skills/aigc-detector/scripts/docx_io.py read "<文件路径>" |
| 95 | ``` |
| 96 | 如果上述命令失败(文件不存在),再尝试项目级路径: |
| 97 | ```bash |
| 98 | python3 .claude/skills/aigc-detector/scripts/docx_io.py read "<文件路径>" |
| 99 | ``` |
| 100 | |
| 101 | 将输出的文本用于后续分析。输出格式为 `[段落编号] 段落内容`,段落间以空行分隔。 |
| 102 | |
| 103 | **如果用户直接粘贴了文本:** |
| 104 | 直接使用粘贴的文本进行分析。 |
| 105 | |
| 106 | **处理要求:** |
| 107 | - 如果文本过长(超过5000字),按章节或自然段落分段处理,每段200-500字 |
| 108 | |
| 109 | ### Step 2:多维度语义分析 |
| 110 | |
| 111 | 对文本进行5个维度的AI特征分析。不要使用简单的关键词匹配或统计计算,要基于语义理解进行深度分析。 |
| 112 | |
| 113 | **5个分析维度:** |
| 114 | |
| 115 | 1. **句式规整度** — 检测是否存在以下特征: |
| 116 | - 中文:模板化句式("首先...其次...最后..."、"一是...二是...三是...") |
| 117 | - 英文:Template transitions ("Firstly...Secondly...In conclusion...", "It is important to note that...", "Building on previous work...") |
| 118 | - 句长过于均匀(缺乏长短句交错) |
| 119 | - 段落结构雷同 |
| 120 | |
| 121 | 2. **逻辑词密度** — 检测是否存在: |
| 122 | - 中文:连接词使用频率异常("综上所述""由此可见""具体而言""也就是说") |
| 123 | - 英文:Hedging language overuse ("it is worth noting that", "it should be emphasized", "to some extent", "arguably", "may suggest") |
| 124 | - 机械化的过渡句 |
| 125 | - 逻辑词在相似位置反复出现 |
| 126 | |
| 127 | 3. **语态特征** — 检测是否存在: |
| 128 | - 中文:被动语态泛滥("被分析""被发现""被证明") |
| 129 | - 英文:Passive voice overuse ("was analyzed", "has been shown to", "it was found that") and uniform formal register throughout |
| 130 | - 无主句过多(句子缺乏明确的行为主体) |
| 131 | - 泛指表达过多("具有重要意义""提供了参考"而未说明"谁""对什么") |
| 132 | |
| 133 | 4. **词汇多样性** — 检测是否存在: |
| 134 | - 中文:特定词汇重复率高("显著""有效""重要""促进"等) |
| 135 | - 英文:AI overuses "significantly", "effectively", "demonstrate", "leverage", "utilize", "facilitate", "comprehensive" |
| 136 | - 概念表述过于抽象,缺乏具体化 |
| 137 | - 缺乏学科术语的自然使用 |
| 138 | |
| 139 | 5. **论证深度** — 检测是否存在: |
| 140 | - 论证呈线性结构(观点→解释→结论),缺乏多维度证据 |
| 141 | - 缺少具体数据、案例、实验细节支撑 |
| 142 | - 缺少对比研究、方法论反思、局限性讨论 |
| 143 | - 缺少个人研究观点和独立见解 |
| 144 | - 英文特有:Missing methodological caveats(不讨论局限性)和 citation pattern uniformity(公式化引用 "According to [Author] (Year)..." 而不深入讨论引文内容) |
| 145 | |
| 146 | **评分规则:** |
| 147 | - 每个维度单独评分(0-100分,100分代表最像AI) |
| 148 | - 整体风险评分 = 5个维度的加权平均 |
| 149 | - 句式规整度:权重 25% |
| 150 | - 逻辑词密度:权重 20% |
| 151 | - 语态特征:权重 15% |
| 152 | - 词汇多样性:权重 15% |
| 153 | - 论证深度:权重 25% |
| 154 | - 段落级风险分级: |
| 155 | - 高风险(>60分):需要重点改写 |
| 156 | - 中风险(30-60分):建议优化 |
| 157 | - 低风险(<30分):可保持 |
| 158 | |
| 159 | **重要:** 评分要考虑学科类型。如果用户未指定学科,询问用户论文所属学科,然后使用对应的阈值。 |
| 160 | |
| 161 | ### Step 3:输出检测报告 |
| 162 | |
| 163 | 在终端输出Markdown格式的检测报告。根据 Step 0 检测到的语言选择对应模板。 |
| 164 | |
| 165 | **中文报告模板(language = "zh"):** |
| 166 | |
| 167 | ```markdown |
| 168 | # AIGC检测报告 |
| 169 | |
| 170 | ## 基本信息 |
| 171 | - 段落总数:X段 |
| 172 | - 分析学科:[学科名称] |
| 173 | - 分析时间:[日期] |
| 174 | |
| 175 | ## 整体评估 |
| 176 | - **AIGC风险评分:XX%** 【高风险/中风险/低风险】 |
| 177 | |
| 178 | ## 维度评分 |
| 179 | |
| 180 | | 维度 | 评分 | 状态 | |
| 181 | |:-----|:----:|:----:| |
| 182 | | 句式规整度 | XX分 | 高/中/低风险 | |
| 183 | | 逻辑词密度 | XX分 | 高/中/低风险 | |
| 184 | | 语态特征 | XX分 | 高/中/低风险 | |
| 185 | | 词汇多样性 |