@lylll9436/paper-polish-workflow-skill 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/ppw-abstract/SKILL.md +239 -0
- package/.claude/skills/ppw-caption/SKILL.md +284 -0
- package/.claude/skills/ppw-cover-letter/SKILL.md +230 -0
- package/.claude/skills/ppw-de-ai/SKILL.md +299 -0
- package/.claude/skills/ppw-experiment/SKILL.md +290 -0
- package/.claude/skills/ppw-literature/SKILL.md +237 -0
- package/.claude/skills/ppw-logic/SKILL.md +316 -0
- package/.claude/skills/ppw-polish/SKILL.md +265 -0
- package/.claude/skills/ppw-repo-to-paper/SKILL.md +460 -0
- package/.claude/skills/ppw-reviewer-simulation/SKILL.md +284 -0
- package/.claude/skills/ppw-team/SKILL.md +242 -0
- package/.claude/skills/ppw-translation/SKILL.md +264 -0
- package/.claude/skills/ppw-update/SKILL.md +156 -0
- package/.claude/skills/ppw-visualization/SKILL.md +250 -0
- package/CHANGELOG.md +53 -0
- package/CONTRIBUTING.md +106 -0
- package/CONTRIBUTING_CN.md +106 -0
- package/LICENSE +21 -0
- package/README.md +313 -0
- package/examples/abstract-polishing-session.md +263 -0
- package/package.json +38 -0
- package/paper-polish-workflow/SKILL.md +160 -0
- package/references/anti-ai-patterns/sentence-patterns.md +33 -0
- package/references/anti-ai-patterns/transitions-and-tone.md +32 -0
- package/references/anti-ai-patterns/vocabulary.md +36 -0
- package/references/anti-ai-patterns.md +56 -0
- package/references/bilingual-output.md +95 -0
- package/references/body-generation-rules.md +121 -0
- package/references/expression-patterns/conclusions-and-claims.md +41 -0
- package/references/expression-patterns/geography-domain.md +50 -0
- package/references/expression-patterns/introduction-and-gap.md +41 -0
- package/references/expression-patterns/methods-and-data.md +41 -0
- package/references/expression-patterns/results-and-discussion.md +41 -0
- package/references/expression-patterns.md +67 -0
- package/references/journals/ceus.md +121 -0
- package/references/repo-patterns.md +96 -0
- package/references/skill-conventions.md +273 -0
- package/references/skill-skeleton.md +169 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [2.1.0] - 2026-03-20
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `ppw:team` — Team orchestration mode: split paper into sections and run any eligible Skill (polish, translation, de-ai) via subagents with proof-of-concept quality gate
|
|
9
|
+
- Embedded upstream prompts from [awesome-ai-research-writing](https://github.com/Leey21/awesome-ai-research-writing) as `## Core Prompt` in 8 Skills (translation, polish, de-ai, logic, visualization, caption, experiment, reviewer-simulation)
|
|
10
|
+
- AI high-frequency vocabulary reference list in ppw:de-ai Core Prompt
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- README updated: 14 skills, team orchestration category, PoC explanation, team mode scenario (Chinese + English)
|
|
14
|
+
- Skill count 13 → 14
|
|
15
|
+
|
|
16
|
+
## [2.0.0] - 2026-03-19
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- `ppw:repo-to-paper` — scan experiment repo, generate H1/H2/H3 outline with user checkpoints, body text with `[SOURCE: file:line]` annotations
|
|
20
|
+
- `ppw:update` — sync latest skills and references from GitHub repo
|
|
21
|
+
- Bilingual paragraph-by-paragraph comparison output for 7 Skills (default ON, opt-out with keywords)
|
|
22
|
+
- Shared bilingual output spec (`references/bilingual-output.md`)
|
|
23
|
+
- Body generation rules reference (`references/body-generation-rules.md`)
|
|
24
|
+
- Repo scan patterns reference (`references/repo-patterns.md`)
|
|
25
|
+
- Workflow Memory system — Skills record invocations, detect frequent chains, offer direct mode
|
|
26
|
+
- Literature integration at H2 stage in repo-to-paper (Semantic Scholar batch search)
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- **BREAKING:** All skills renamed from `*-skill` to `ppw:*` namespace (e.g., `polish-skill` → `ppw:polish`)
|
|
30
|
+
- **BREAKING:** Skill directories renamed from `*-skill/` to `ppw-*/` (e.g., `.claude/skills/polish-skill/` → `.claude/skills/ppw-polish/`)
|
|
31
|
+
- All 12 existing Skills now use AskUserQuestion for structured interaction
|
|
32
|
+
- skill-conventions.md updated with Workflow Memory section and AskUserQuestion enforcement
|
|
33
|
+
- skill-skeleton.md updated with Step 0 template and record-write instruction
|
|
34
|
+
- README rewritten with ppw:* naming, 13 skills, updated scenarios
|
|
35
|
+
|
|
36
|
+
### Removed
|
|
37
|
+
- `.planning/` directory removed from git tracking (internal development state)
|
|
38
|
+
- `.sisyphus/` directory removed from git tracking
|
|
39
|
+
- `.claude/settings.local.json` removed from git tracking
|
|
40
|
+
|
|
41
|
+
## [1.0.0] - 2025-01-30
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
- Initial release as standardized Claude/OpenCode skill
|
|
45
|
+
- YAML frontmatter for skill discovery
|
|
46
|
+
- CEUS journal template in references/journals/
|
|
47
|
+
- Academic expression patterns library
|
|
48
|
+
- GitHub Actions CI for skill validation
|
|
49
|
+
- Bilingual contributing guide (EN/CN)
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
- Restructured from skill/ to paper-polish-workflow/ directory
|
|
53
|
+
- Extracted journal specs to references/ for extensibility
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
[English](CONTRIBUTING.md) | [中文](CONTRIBUTING_CN.md)
|
|
4
|
+
|
|
5
|
+
Thank you for your interest in contributing to Paper Polish Workflow.
|
|
6
|
+
|
|
7
|
+
## How to Contribute
|
|
8
|
+
|
|
9
|
+
### Creating a New Skill
|
|
10
|
+
|
|
11
|
+
New Skills must follow the project conventions:
|
|
12
|
+
|
|
13
|
+
1. Copy [`references/skill-skeleton.md`](references/skill-skeleton.md) into a new directory as `SKILL.md`
|
|
14
|
+
2. Follow the rules in [`references/skill-conventions.md`](references/skill-conventions.md)
|
|
15
|
+
3. Fill in all required frontmatter fields (`name`, `description`, `triggers`, `tools`, `references`, `input_modes`, `output_contract`)
|
|
16
|
+
4. Fill in all required body sections (`Purpose`, `Trigger`, `Modes`, `References`, `Ask Strategy`, `Workflow`, `Output Contract`, `Edge Cases`, `Fallbacks`)
|
|
17
|
+
5. Stay within the ~300 line budget; move reusable content to `references/`
|
|
18
|
+
6. Define fallback behavior for when structured interaction tools are unavailable
|
|
19
|
+
|
|
20
|
+
### Adding Journal Contracts
|
|
21
|
+
|
|
22
|
+
1. Create a new file in `references/journals/`
|
|
23
|
+
2. Name it `[journal-name].md` (lowercase, hyphens for spaces)
|
|
24
|
+
3. Keep the stable heading contract:
|
|
25
|
+
- `## Submission Requirements`
|
|
26
|
+
- `## Writing Preferences`
|
|
27
|
+
- `## Quality Checks`
|
|
28
|
+
- `## Section Guidance`
|
|
29
|
+
4. Keep `references/journals/[journal].md` directly loadable by downstream Skills
|
|
30
|
+
|
|
31
|
+
### Improving Expression References
|
|
32
|
+
|
|
33
|
+
1. Keep `references/expression-patterns.md` as the stable overview entrypoint
|
|
34
|
+
2. Add or refine leaf modules in `references/expression-patterns/`
|
|
35
|
+
3. Organize content by writing scenario, not by generic grammar buckets
|
|
36
|
+
4. Each leaf module should keep:
|
|
37
|
+
- `## Recommended Expressions`
|
|
38
|
+
- `## Avoid Expressions`
|
|
39
|
+
- `## Usage Scenarios`
|
|
40
|
+
- `## Bilingual Example Patterns`
|
|
41
|
+
|
|
42
|
+
### Improving Anti-AI References
|
|
43
|
+
|
|
44
|
+
1. Keep `references/anti-ai-patterns.md` as the stable overview entrypoint
|
|
45
|
+
2. Add or refine leaf modules in `references/anti-ai-patterns/`
|
|
46
|
+
3. Group patterns by category, not by paper section
|
|
47
|
+
4. Each leaf module should keep:
|
|
48
|
+
- `## High Risk`
|
|
49
|
+
- `## Medium Risk`
|
|
50
|
+
- `## Optional`
|
|
51
|
+
5. Prefer lightweight `Problem expression -> Replacement` rows so future Skills can retrieve them directly
|
|
52
|
+
|
|
53
|
+
### Modifying the Skill
|
|
54
|
+
|
|
55
|
+
1. Edit `paper-polish-workflow/SKILL.md`
|
|
56
|
+
2. Preserve YAML frontmatter:
|
|
57
|
+
```yaml
|
|
58
|
+
---
|
|
59
|
+
name: paper-polish-workflow
|
|
60
|
+
description: ...
|
|
61
|
+
---
|
|
62
|
+
```
|
|
63
|
+
3. Keep long reference content out of `SKILL.md`; put it in `references/`
|
|
64
|
+
4. Maintain workflow structure unless the redesign explicitly changes it
|
|
65
|
+
|
|
66
|
+
## SKILL.md Requirements
|
|
67
|
+
|
|
68
|
+
All Skills must follow the [Skill conventions](references/skill-conventions.md). Use the [skill-skeleton.md](references/skill-skeleton.md) as your starting point.
|
|
69
|
+
|
|
70
|
+
### Frontmatter (Required)
|
|
71
|
+
|
|
72
|
+
Every `SKILL.md` must have YAML frontmatter with these required fields:
|
|
73
|
+
|
|
74
|
+
```yaml
|
|
75
|
+
---
|
|
76
|
+
name: skill-name
|
|
77
|
+
description: Brief description with trigger keywords
|
|
78
|
+
triggers:
|
|
79
|
+
primary_intent: what the skill does
|
|
80
|
+
examples: ["English phrase", "Chinese phrase"]
|
|
81
|
+
tools: [Read, Write]
|
|
82
|
+
references:
|
|
83
|
+
required: [references/expression-patterns.md]
|
|
84
|
+
input_modes: [file, pasted_text]
|
|
85
|
+
output_contract: [polished_english]
|
|
86
|
+
---
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Rules:**
|
|
90
|
+
- `name`: max 64 chars, pattern `^[a-z0-9]+(-[a-z0-9]+)*$`
|
|
91
|
+
- `description`: max 1024 chars, include trigger keywords
|
|
92
|
+
- `name` must match the parent directory name
|
|
93
|
+
- `tools` lists capability categories, not vendor-specific tool names
|
|
94
|
+
- See [skill-conventions.md](references/skill-conventions.md) for the full field reference
|
|
95
|
+
|
|
96
|
+
## Pull Request Process
|
|
97
|
+
|
|
98
|
+
1. Fork the repository
|
|
99
|
+
2. Create a feature branch
|
|
100
|
+
3. Make your changes
|
|
101
|
+
4. Test with Claude/OpenCode
|
|
102
|
+
5. Submit a pull request
|
|
103
|
+
|
|
104
|
+
## Questions?
|
|
105
|
+
|
|
106
|
+
Open an issue or start a discussion.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# 贡献指南
|
|
2
|
+
|
|
3
|
+
[English](CONTRIBUTING.md) | [中文](CONTRIBUTING_CN.md)
|
|
4
|
+
|
|
5
|
+
感谢你对 Paper Polish Workflow 项目的关注。
|
|
6
|
+
|
|
7
|
+
## 如何贡献
|
|
8
|
+
|
|
9
|
+
### 创建新 Skill
|
|
10
|
+
|
|
11
|
+
新 Skill 必须遵循项目规范:
|
|
12
|
+
|
|
13
|
+
1. 将 [`references/skill-skeleton.md`](references/skill-skeleton.md) 复制到新目录并命名为 `SKILL.md`
|
|
14
|
+
2. 遵循 [`references/skill-conventions.md`](references/skill-conventions.md) 中的规则
|
|
15
|
+
3. 填写所有必需的前置元数据字段(`name`、`description`、`triggers`、`tools`、`references`、`input_modes`、`output_contract`)
|
|
16
|
+
4. 填写所有必需的正文章节(`Purpose`、`Trigger`、`Modes`、`References`、`Ask Strategy`、`Workflow`、`Output Contract`、`Edge Cases`、`Fallbacks`)
|
|
17
|
+
5. 保持在约 300 行的预算范围内;将可复用内容移至 `references/`
|
|
18
|
+
6. 为结构化交互工具不可用时定义降级行为
|
|
19
|
+
|
|
20
|
+
### 添加期刊契约
|
|
21
|
+
|
|
22
|
+
1. 在 `references/journals/` 目录下创建新文件
|
|
23
|
+
2. 命名为 `[journal-name].md`(小写,空格用连字符)
|
|
24
|
+
3. 保持稳定标题契约:
|
|
25
|
+
- `## Submission Requirements`
|
|
26
|
+
- `## Writing Preferences`
|
|
27
|
+
- `## Quality Checks`
|
|
28
|
+
- `## Section Guidance`
|
|
29
|
+
4. 保证 `references/journals/[journal].md` 可以被下游 Skill 直接读取
|
|
30
|
+
|
|
31
|
+
### 改进表达模式库
|
|
32
|
+
|
|
33
|
+
1. 保持 `references/expression-patterns.md` 作为稳定总览入口
|
|
34
|
+
2. 在 `references/expression-patterns/` 中新增或调整叶子模块
|
|
35
|
+
3. 按写作场景组织内容,不要按泛泛的语法类别堆叠
|
|
36
|
+
4. 每个叶子模块应保留:
|
|
37
|
+
- `## Recommended Expressions`
|
|
38
|
+
- `## Avoid Expressions`
|
|
39
|
+
- `## Usage Scenarios`
|
|
40
|
+
- `## Bilingual Example Patterns`
|
|
41
|
+
|
|
42
|
+
### 改进 Anti-AI 参考库
|
|
43
|
+
|
|
44
|
+
1. 保持 `references/anti-ai-patterns.md` 作为稳定总览入口
|
|
45
|
+
2. 在 `references/anti-ai-patterns/` 中新增或调整叶子模块
|
|
46
|
+
3. 按风险类别组织内容,而不是按论文章节组织
|
|
47
|
+
4. 每个叶子模块应保留:
|
|
48
|
+
- `## High Risk`
|
|
49
|
+
- `## Medium Risk`
|
|
50
|
+
- `## Optional`
|
|
51
|
+
5. 优先使用轻量的 `Problem expression -> Replacement` 表格,方便未来 Skill 直接检索
|
|
52
|
+
|
|
53
|
+
### 修改技能文件
|
|
54
|
+
|
|
55
|
+
1. 编辑 `paper-polish-workflow/SKILL.md`
|
|
56
|
+
2. 保留 YAML 前置元数据:
|
|
57
|
+
```yaml
|
|
58
|
+
---
|
|
59
|
+
name: paper-polish-workflow
|
|
60
|
+
description: ...
|
|
61
|
+
---
|
|
62
|
+
```
|
|
63
|
+
3. 不要把长篇参考内容继续塞进 `SKILL.md`,而是放到 `references/`
|
|
64
|
+
4. 除非明确在做工作流重设计,否则保持原有流程结构
|
|
65
|
+
|
|
66
|
+
## SKILL.md 要求
|
|
67
|
+
|
|
68
|
+
所有 Skill 必须遵循 [Skill 编写规范](references/skill-conventions.md)。请以 [skill-skeleton.md](references/skill-skeleton.md) 作为起点。
|
|
69
|
+
|
|
70
|
+
### 前置元数据(必需)
|
|
71
|
+
|
|
72
|
+
每个 `SKILL.md` 都必须带 YAML 前置元数据,包含以下必需字段:
|
|
73
|
+
|
|
74
|
+
```yaml
|
|
75
|
+
---
|
|
76
|
+
name: skill-name
|
|
77
|
+
description: 包含触发关键词的简短描述
|
|
78
|
+
triggers:
|
|
79
|
+
primary_intent: 技能用途
|
|
80
|
+
examples: ["English phrase", "中文短语"]
|
|
81
|
+
tools: [Read, Write]
|
|
82
|
+
references:
|
|
83
|
+
required: [references/expression-patterns.md]
|
|
84
|
+
input_modes: [file, pasted_text]
|
|
85
|
+
output_contract: [polished_english]
|
|
86
|
+
---
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**规则:**
|
|
90
|
+
- `name`:最多 64 字符,格式 `^[a-z0-9]+(-[a-z0-9]+)*$`
|
|
91
|
+
- `description`:最多 1024 字符,包含触发关键词
|
|
92
|
+
- `name` 必须与父目录名称匹配
|
|
93
|
+
- `tools` 列出功能类别,而非特定厂商的工具名
|
|
94
|
+
- 完整字段参考请查看 [skill-conventions.md](references/skill-conventions.md)
|
|
95
|
+
|
|
96
|
+
## Pull Request 流程
|
|
97
|
+
|
|
98
|
+
1. Fork 仓库
|
|
99
|
+
2. 创建功能分支
|
|
100
|
+
3. 进行修改
|
|
101
|
+
4. 使用 Claude/OpenCode 测试
|
|
102
|
+
5. 提交 Pull Request
|
|
103
|
+
|
|
104
|
+
## 有问题?
|
|
105
|
+
|
|
106
|
+
欢迎提 Issue 或发起讨论。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="assets/logo.jpg" alt="Paper Polish Workflow Suite" width="360">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Paper Polish Workflow</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>14 项学术论文写作、润色与投稿技能套件 —— 基于 Claude Code 驱动。</strong>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT">
|
|
13
|
+
<img src="https://img.shields.io/badge/Claude%20Code-Skills-blue" alt="Claude Code">
|
|
14
|
+
<img src="https://img.shields.io/github/v/tag/Lylll9436/Paper-Polish-Workflow-skill?label=version&color=green" alt="version">
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
[中文](#chinese) | [English](#english)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<a name="chinese"></a>
|
|
24
|
+
|
|
25
|
+
## 安装说明
|
|
26
|
+
|
|
27
|
+
### 方式一:通过 Claude Code 安装(推荐)
|
|
28
|
+
|
|
29
|
+
将以下 prompt 直接粘贴到 Claude Code 中执行:
|
|
30
|
+
|
|
31
|
+
> 安装 `@lylll9436/paper-polish-workflow-skill` 到当前项目:
|
|
32
|
+
>
|
|
33
|
+
> 1. 运行 `npm install @lylll9436/paper-polish-workflow-skill`
|
|
34
|
+
> 2. 将 `node_modules/@lylll9436/paper-polish-workflow-skill/.claude/skills/` 下所有子目录复制到当前项目的 `.claude/skills/`
|
|
35
|
+
> 3. 将 `node_modules/@lylll9436/paper-polish-workflow-skill/references/` 复制到当前项目的 `references/`
|
|
36
|
+
> 4. 安装完成后清理 node_modules
|
|
37
|
+
|
|
38
|
+
### 方式二:手动安装
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# 1. 安装包
|
|
42
|
+
npm install @lylll9436/paper-polish-workflow-skill
|
|
43
|
+
|
|
44
|
+
# 2. 将 skills 和 references 复制到你的项目中
|
|
45
|
+
cp -r node_modules/@lylll9436/paper-polish-workflow-skill/.claude/skills/* .claude/skills/
|
|
46
|
+
cp -r node_modules/@lylll9436/paper-polish-workflow-skill/references/ references/
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Semantic Scholar MCP 配置(适用于 ppw:literature)
|
|
50
|
+
|
|
51
|
+
`ppw:literature` 需要 Semantic Scholar MCP 服务器来检索学术文献。配置步骤如下:
|
|
52
|
+
|
|
53
|
+
1. 打开 Claude Code 设置。
|
|
54
|
+
2. 进入 **MCP Servers**(MCP 服务器)。
|
|
55
|
+
3. 添加 Semantic Scholar MCP 服务器(服务器键名:`semanticscholar`)。
|
|
56
|
+
4. 重启 Claude Code。
|
|
57
|
+
|
|
58
|
+
配置完成后,即可在 Claude Code 会话中直接触发文献检索。
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 技能清单
|
|
63
|
+
|
|
64
|
+
所有技能统一使用 `ppw:` 命名空间前缀,通过 `/ppw:技能名` 调用。
|
|
65
|
+
|
|
66
|
+
### 写作工作流
|
|
67
|
+
|
|
68
|
+
| 技能 | 触发示例 | 功能描述 |
|
|
69
|
+
|------|---------|---------|
|
|
70
|
+
| `/ppw:translation` | `翻译这段中文为英文` | 将中文学术草稿翻译为投稿级英文,生成 LaTeX 格式输出,包含中英文段落对照。 |
|
|
71
|
+
| `/ppw:polish` | `润色这段英文` | 通过快速修复或引导式多轮工作流润色英文学术文本,支持期刊风格适配与原地编辑追踪。 |
|
|
72
|
+
| `/ppw:de-ai` | `降AI这段论文` | 检测并改写英文学术文本中的 AI 生成痕迹,两阶段工作流:扫描标记风险,再批量改写。 |
|
|
73
|
+
| `/ppw:reviewer-simulation` | `审稿这篇论文` | 模拟同行评审,生成结构化双语审稿报告,包含评分与可操作的改进建议。 |
|
|
74
|
+
|
|
75
|
+
### 论文生成
|
|
76
|
+
|
|
77
|
+
| 技能 | 触发示例 | 功能描述 |
|
|
78
|
+
|------|---------|---------|
|
|
79
|
+
| `/ppw:repo-to-paper` | `从我的实验仓库生成论文` | 扫描 Python ML 实验仓库,逐级生成论文大纲(H1/H2/H3),每级用户确认后推进,最终生成带证据标注、引用和双语输出的正文文本。 |
|
|
80
|
+
|
|
81
|
+
### 辅助工具
|
|
82
|
+
|
|
83
|
+
| 技能 | 触发示例 | 功能描述 |
|
|
84
|
+
|------|---------|---------|
|
|
85
|
+
| `/ppw:abstract` | `帮我写摘要` | 使用五句话 Farquhar 公式生成或优化摘要,支持从零生成和改写现有摘要两条路径。 |
|
|
86
|
+
| `/ppw:cover-letter` | `帮我写投稿信` | 生成投稿信,包含贡献声明、数据可用性声明、利益冲突声明和联系方式。 |
|
|
87
|
+
| `/ppw:experiment` | `帮我分析实验结果` | 分析实验结果并生成有依据的讨论段落,两阶段:提取发现,再生成讨论。 |
|
|
88
|
+
| `/ppw:caption` | `帮我写图表标题` | 生成或优化学术论文的图表标题,地理感知:支持研究区域、坐标系标注和数据来源。 |
|
|
89
|
+
| `/ppw:logic` | `检查我的论文逻辑` | 验证论文各章节的逻辑一致性,追踪论证链,识别逻辑断裂、无支撑声明、术语不一致和数字矛盾。 |
|
|
90
|
+
| `/ppw:literature` | `帮我找关于城市热岛的文献` | 通过 Semantic Scholar MCP 检索学术文献并生成经过验证的 BibTeX 引用。需要 Semantic Scholar MCP。 |
|
|
91
|
+
| `/ppw:visualization` | `帮我选择合适的可视化方式` | 为实验数据推荐合适的图表类型,提供理由和工具提示,地理感知:空间数据时推荐分级地图、空间散点图等。 |
|
|
92
|
+
|
|
93
|
+
### 团队协作
|
|
94
|
+
|
|
95
|
+
| 技能 | 触发示例 | 功能描述 |
|
|
96
|
+
|------|---------|---------|
|
|
97
|
+
| `/ppw:team` | `ppw:team polish paper.tex` | 团队协作模式:将论文拆分为章节,通过子代理并行运行任意适用技能(polish、translation、de-ai)。支持 LaTeX `\section{}` 和 Markdown `# H1` 拆分,包含概念验证质量门控。 |
|
|
98
|
+
|
|
99
|
+
### 维护工具
|
|
100
|
+
|
|
101
|
+
| 技能 | 触发示例 | 功能描述 |
|
|
102
|
+
|------|---------|---------|
|
|
103
|
+
| `/ppw:update` | `更新技能` / `sync skills` | 从 GitHub 仓库下载最新的 skills 和 references 文件并更新本地版本。 |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 快速上手
|
|
108
|
+
|
|
109
|
+
### 场景一:论文投稿流程
|
|
110
|
+
|
|
111
|
+
使用此工作链,将中文草稿一步步推进到可投稿的英文论文:
|
|
112
|
+
|
|
113
|
+
1. `/ppw:translation` — 将中文草稿翻译为学术英文,输出 LaTeX 格式。
|
|
114
|
+
2. `/ppw:polish` — 对英文文本进行期刊级润色,保留修改记录。
|
|
115
|
+
3. `/ppw:de-ai` — 扫描 AI 生成痕迹,对标记段落进行改写。
|
|
116
|
+
4. `/ppw:reviewer-simulation` — 在投稿前获取包含评分和可操作建议的结构化模拟审稿报告。
|
|
117
|
+
|
|
118
|
+
### 场景二:从实验仓库生成论文
|
|
119
|
+
|
|
120
|
+
1. `/ppw:repo-to-paper` — 扫描 Python ML 仓库,生成完整论文大纲和正文。
|
|
121
|
+
2. `/ppw:polish` — 润色生成的英文文本。
|
|
122
|
+
3. `/ppw:literature` — 检索补充文献并生成 BibTeX。
|
|
123
|
+
|
|
124
|
+
### 场景三:图表辅助
|
|
125
|
+
|
|
126
|
+
准备图表时,配合使用这两个技能:
|
|
127
|
+
|
|
128
|
+
1. `/ppw:caption` — 生成或改进图表标题,地图类图表支持地理元数据。
|
|
129
|
+
2. `/ppw:visualization` — 为实验数据推荐图表类型,附工具提示。
|
|
130
|
+
|
|
131
|
+
### 场景四:团队协作模式
|
|
132
|
+
|
|
133
|
+
对长论文进行章节级并行处理,适合全文润色、翻译或去 AI 痕迹:
|
|
134
|
+
|
|
135
|
+
1. `/ppw:team polish paper.tex` — 自动拆分论文为章节,选择目标章节,通过子代理对单个章节运行概念验证(PoC,Proof of Concept:先用一个子代理处理一个章节,确认输出质量与主会话一致后再扩展到全部章节)。
|
|
136
|
+
2. 确认子代理输出质量后,后续版本将支持全章节并行派发。
|
|
137
|
+
|
|
138
|
+
支持的子技能:`polish`、`translation`、`de-ai`。支持 `.tex` 和 `.md` 格式。
|
|
139
|
+
|
|
140
|
+
### 场景五:文献搜索流程
|
|
141
|
+
|
|
142
|
+
1. `/ppw:literature` — 通过 Semantic Scholar MCP 检索文献并生成经验证的 BibTeX 引用。
|
|
143
|
+
2. `/ppw:abstract` — 使用五句话 Farquhar 公式生成或改写摘要。
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 参与贡献
|
|
148
|
+
|
|
149
|
+
发现了 Bug 或有功能需求?请在 GitHub 上提交 Issue:
|
|
150
|
+
|
|
151
|
+
- **Bug 反馈** — 描述异常行为、触发的技能名称以及你的输入内容。
|
|
152
|
+
- **功能需求** — 描述你想要自动化的写作任务和期望的输出结果。
|
|
153
|
+
|
|
154
|
+
详细的贡献指南请参考 [CONTRIBUTING.md](CONTRIBUTING.md) 和 [CONTRIBUTING_CN.md](CONTRIBUTING_CN.md)。
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 致谢
|
|
159
|
+
|
|
160
|
+
本项目的核心写作技能改编自 [**awesome-ai-research-writing**](https://github.com/Leey21/awesome-ai-research-writing) 中的提示词模板——该仓库收录了来自顶级科研机构(MSRA、Seed、上海 AI 实验室)和高校(北大、中科大、上交大)的学术写作提示词。本项目将这些提示词重构为模块化的 Claude Code Skill,配备 YAML 前置配置、共享参考文件库和交互式多步工作流。
|
|
161
|
+
|
|
162
|
+
改编来源包括:翻译、润色、去 AI 痕迹、模拟审稿、摘要生成、图表标题、逻辑验证、实验分析和可视化建议等技能。投稿信、文献搜索和 repo-to-paper 技能为原创扩展。
|
|
163
|
+
|
|
164
|
+
`ppw:abstract` 中的 5 句摘要结构采用 **Farquhar formula**。
|
|
165
|
+
|
|
166
|
+
本项目的开发工作流由 [**get-shit-done**](https://github.com/gsd-build/get-shit-done) 提供支持——一套基于 Claude Code 的结构化 AI 协作开发框架。
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
<a name="english"></a>
|
|
171
|
+
|
|
172
|
+
## Installation
|
|
173
|
+
|
|
174
|
+
### Option 1: Install via Claude Code (Recommended)
|
|
175
|
+
|
|
176
|
+
Paste the following prompt directly into Claude Code:
|
|
177
|
+
|
|
178
|
+
> Install `@lylll9436/paper-polish-workflow-skill` into the current project:
|
|
179
|
+
>
|
|
180
|
+
> 1. Run `npm install @lylll9436/paper-polish-workflow-skill`
|
|
181
|
+
> 2. Copy all subdirectories from `node_modules/@lylll9436/paper-polish-workflow-skill/.claude/skills/` to `.claude/skills/` in the current project
|
|
182
|
+
> 3. Copy `node_modules/@lylll9436/paper-polish-workflow-skill/references/` to `references/`
|
|
183
|
+
> 4. Clean up node_modules after installation
|
|
184
|
+
|
|
185
|
+
### Option 2: Manual Installation
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# 1. Install the package
|
|
189
|
+
npm install @lylll9436/paper-polish-workflow-skill
|
|
190
|
+
|
|
191
|
+
# 2. Copy skills and references into your project
|
|
192
|
+
cp -r node_modules/@lylll9436/paper-polish-workflow-skill/.claude/skills/* .claude/skills/
|
|
193
|
+
cp -r node_modules/@lylll9436/paper-polish-workflow-skill/references/ references/
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Semantic Scholar MCP Setup (for ppw:literature)
|
|
197
|
+
|
|
198
|
+
`ppw:literature` requires the Semantic Scholar MCP server to search academic literature. To enable it:
|
|
199
|
+
|
|
200
|
+
1. Open Claude Code settings.
|
|
201
|
+
2. Navigate to **MCP Servers**.
|
|
202
|
+
3. Add the Semantic Scholar MCP server (server key: `semanticscholar`).
|
|
203
|
+
4. Restart Claude Code.
|
|
204
|
+
|
|
205
|
+
Once set up, you can trigger literature searches directly from your Claude Code session.
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Skill Inventory
|
|
210
|
+
|
|
211
|
+
All skills use the `ppw:` namespace prefix. Invoke with `/ppw:skill-name`.
|
|
212
|
+
|
|
213
|
+
### Writing Workflow
|
|
214
|
+
|
|
215
|
+
| Skill | Trigger Examples | Description |
|
|
216
|
+
|-------|-----------------|-------------|
|
|
217
|
+
| `/ppw:translation` | `Translate this Chinese draft to English` | Translate Chinese academic text into polished English for journal submission. Produces LaTeX output with bilingual paragraph-by-paragraph comparison. |
|
|
218
|
+
| `/ppw:polish` | `Polish this paragraph` | Polish English academic text through quick-fix or guided multi-pass workflow. Adapts to journal style with in-place editing and change tracking. |
|
|
219
|
+
| `/ppw:de-ai` | `De-AI this paragraph` | Detect and rewrite AI-generated patterns in English academic text. Two-phase workflow: scan with risk tagging, then batch rewrite. |
|
|
220
|
+
| `/ppw:reviewer-simulation` | `Review this paper` | Simulate peer review of academic papers with structured bilingual feedback report, scoring, and actionable suggestions. |
|
|
221
|
+
|
|
222
|
+
### Paper Generation
|
|
223
|
+
|
|
224
|
+
| Skill | Trigger Examples | Description |
|
|
225
|
+
|-------|-----------------|-------------|
|
|
226
|
+
| `/ppw:repo-to-paper` | `Generate a paper from my experiment repo` | Scan a Python ML experiment repo, generate a complete paper outline (H1/H2/H3) with user checkpoints at each level, then produce body text with evidence annotations, citations, and bilingual output. |
|
|
227
|
+
|
|
228
|
+
### Support Tools
|
|
229
|
+
|
|
230
|
+
| Skill | Trigger Examples | Description |
|
|
231
|
+
|-------|-----------------|-------------|
|
|
232
|
+
| `/ppw:abstract` | `Write an abstract for my paper` | Generate or optimize abstracts using the 5-sentence Farquhar formula. Supports generate-from-scratch and restructure-existing paths. |
|
|
233
|
+
| `/ppw:cover-letter` | `Write a cover letter for my CEUS submission` | Generate submission-ready cover letters with contribution statement, data availability, conflict of interest, and contact block. |
|
|
234
|
+
| `/ppw:experiment` | `Analyze my experiment results` | Analyze experiment results and generate grounded discussion paragraphs. Two-phase: extract findings, then write discussion. |
|
|
235
|
+
| `/ppw:caption` | `Write a caption for my figure` | Generate or optimize figure/table captions for academic papers. Geography-aware: study area, CRS notation, data source. |
|
|
236
|
+
| `/ppw:logic` | `Check the logic of my paper` | Verify logical consistency across paper sections. Traces argument chains and identifies gaps, unsupported claims, terminology inconsistencies, and number contradictions. |
|
|
237
|
+
| `/ppw:literature` | `Find papers about urban heat island` | Search academic literature via Semantic Scholar MCP and generate verified BibTeX entries. Requires Semantic Scholar MCP. |
|
|
238
|
+
| `/ppw:visualization` | `What chart should I use for this data?` | Recommend appropriate chart types for experimental data with rationale and tool hints. Geography-aware: choropleth, spatial scatter, kernel density when spatial data detected. |
|
|
239
|
+
|
|
240
|
+
### Team Orchestration
|
|
241
|
+
|
|
242
|
+
| Skill | Trigger Examples | Description |
|
|
243
|
+
|-------|-----------------|-------------|
|
|
244
|
+
| `/ppw:team` | `ppw:team polish paper.tex` | Team mode: split a paper into sections and run any eligible Skill (polish, translation, de-ai) across sections via subagents. Supports LaTeX `\section{}` and Markdown `# H1` splitting with proof-of-concept quality gate. |
|
|
245
|
+
|
|
246
|
+
### Maintenance
|
|
247
|
+
|
|
248
|
+
| Skill | Trigger Examples | Description |
|
|
249
|
+
|-------|-----------------|-------------|
|
|
250
|
+
| `/ppw:update` | `Update skills` / `Sync skills` | Download latest skills and references from the GitHub repo and update local files. |
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Quick Start
|
|
255
|
+
|
|
256
|
+
### Scenario 1: Paper Submission Chain
|
|
257
|
+
|
|
258
|
+
Use this chain to take a Chinese draft all the way to a reviewer-ready English manuscript:
|
|
259
|
+
|
|
260
|
+
1. `/ppw:translation` — Translate your Chinese draft into academic English with LaTeX output.
|
|
261
|
+
2. `/ppw:polish` — Polish the English text for journal submission style, with change tracking.
|
|
262
|
+
3. `/ppw:de-ai` — Scan for AI-generated patterns and rewrite flagged passages.
|
|
263
|
+
4. `/ppw:reviewer-simulation` — Get a structured peer review report with scores and actionable suggestions before submission.
|
|
264
|
+
|
|
265
|
+
### Scenario 2: Repo-to-Paper Pipeline
|
|
266
|
+
|
|
267
|
+
1. `/ppw:repo-to-paper` — Scan your Python ML repo, generate a full paper outline and body text.
|
|
268
|
+
2. `/ppw:polish` — Polish the generated English text.
|
|
269
|
+
3. `/ppw:literature` — Search for supplementary references and generate BibTeX.
|
|
270
|
+
|
|
271
|
+
### Scenario 3: Figure and Table Assistance
|
|
272
|
+
|
|
273
|
+
Use these Skills together when preparing figures and tables:
|
|
274
|
+
|
|
275
|
+
1. `/ppw:caption` — Generate or improve a figure or table caption, with geography-aware metadata for maps.
|
|
276
|
+
2. `/ppw:visualization` — Get chart type recommendations for your experimental data, with tool hints.
|
|
277
|
+
|
|
278
|
+
### Scenario 4: Team Mode
|
|
279
|
+
|
|
280
|
+
Process long papers section-by-section in parallel — ideal for full-paper polish, translation, or de-AI:
|
|
281
|
+
|
|
282
|
+
1. `/ppw:team polish paper.tex` — Auto-split the paper into sections, select targets, and run a PoC (Proof of Concept) validation — a single subagent processes one section first to verify output quality matches main-session execution before scaling to all sections.
|
|
283
|
+
2. After confirming subagent output quality, future versions will support full parallel dispatch across all sections.
|
|
284
|
+
|
|
285
|
+
Eligible sub-skills: `polish`, `translation`, `de-ai`. Supports `.tex` and `.md` formats.
|
|
286
|
+
|
|
287
|
+
### Scenario 5: Literature Search Chain
|
|
288
|
+
|
|
289
|
+
1. `/ppw:literature` — Search academic literature via Semantic Scholar MCP and generate verified BibTeX entries.
|
|
290
|
+
2. `/ppw:abstract` — Generate or restructure your abstract using the 5-sentence Farquhar formula.
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Contributing
|
|
295
|
+
|
|
296
|
+
Found a bug or have a feature request? Open an issue on GitHub:
|
|
297
|
+
|
|
298
|
+
- **Bug reports** — describe the unexpected behavior, which Skill triggered it, and your input.
|
|
299
|
+
- **Feature requests** — describe the writing task you want to automate and the expected output.
|
|
300
|
+
|
|
301
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [CONTRIBUTING_CN.md](CONTRIBUTING_CN.md) for detailed contribution guidelines.
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## Acknowledgements
|
|
306
|
+
|
|
307
|
+
The core writing Skills in this project are adapted from the prompt templates in [**awesome-ai-research-writing**](https://github.com/Leey21/awesome-ai-research-writing) — a curated collection of academic writing prompts from top research labs (MSRA, Seed, Shanghai AI Lab) and universities (PKU, USTC, SJTU). This project restructures those prompts as modular Claude Code Skills with YAML frontmatter, shared reference libraries, and interactive multi-step workflows.
|
|
308
|
+
|
|
309
|
+
Specifically adapted: translation, polish, de-AI, reviewer simulation, abstract, caption, logic verification, experiment analysis, and visualization recommendation. Cover letter, literature search, and repo-to-paper Skills are original extensions.
|
|
310
|
+
|
|
311
|
+
The 5-sentence abstract structure in `ppw:abstract` is based on the **Farquhar formula**.
|
|
312
|
+
|
|
313
|
+
The development workflow is powered by [**get-shit-done**](https://github.com/gsd-build/get-shit-done) — a structured Claude Code workflow framework for shipping software with AI agents.
|