lylll9436/paper-polish-workflow-skill/ppw-de-ai
Claude Code and agent skill by lylll9436/paper-polish-workflow-skill
- community
Checking that the SKILL.md file is still in the repository.
Detect and rewrite AI-generated patterns in English academic text. Two-phase workflow: scan with risk tagging, then batch rewrite. Triggers on "de-AI", "降AI", "reduce AI traces", "AI检测".
Install
npx vskill@latest install lylll9436/paper-polish-workflow-skill/ppw-de-aiSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/ppw-de-ai.
Purpose
This Skill detects AI-generated patterns in English academic text and rewrites flagged passages with explainable, risk-tagged results. It scans text against three pattern dimensions (vocabulary inflation, sentence overclaims, transition smoothing) from the anti-AI patterns library, presents detections grouped by risk level (High Risk / Medium Risk / Optional), and lets users batch-select which items to rewrite. Rewrites restructure expressions rather than just swapping synonyms, preserving academic meaning and quality. For file input, edits are made in-place with LaTeX comment annotations for traceability; for pasted text, results appear in conversation.
Core Prompt
Source: awesome-ai-research-writing — 去 AI 味(LaTeX 英文)
AI 味高频词汇参考表:
Trigger
Activates when the user asks to:
- Detect, scan, or check for AI-generated patterns in academic text
- Rewrite or reduce AI traces in English writing
- 降AI、检测AI痕迹、降低AI检测分数
Example invocations:
- "De-AI this paragraph" / "降AI这段论文"
- "Check my paper for AI patterns" / "AI检测并改写"
- "Scan only -- just show detections" / "只扫描不改写"
Modes
| Mode | Default | Behavior | |
|---|---|---|---|
direct | Yes | Full detect-then-rewrite two-phase workflow with batch selection | |
batch | Same operation across multiple files with same settings |
Default mode: direct. User says "de-AI this" and gets detect + rewrite.
Mode inference: "scan only", "just check", or "只检测" triggers detect-only (skip rewrite phase). "De-AI all sections" or "batch" switches to batch.
References
Required (always loaded)
| File | Purpose | |
|---|---|---|
references/anti-ai-patterns.md | Risk model, category map, retrieval contract | |
references/expression-patterns.md | Academic expression patterns for rewrite quality |
Leaf Hints (loaded proactively for detection)
| File | When to Load | |
|---|---|---|
references/anti-ai-patterns/vocabulary.md | Always -- loaded proactively for full-text scan | |
references/anti-ai-patterns/sentence-patterns.md | Always -- loaded proactively for full-text scan | |
references/anti-ai-patterns/transitions-and-tone.md | Always -- loaded proactively for full-text scan |
Leaf Hints (loaded during rewrite phase)
| File | When to Load | |
|---|---|---|
references/expression-patterns/introduction-and-gap.md | Rewriting introduction or background content | |
references/expression-patterns/methods-and-data.md | Rewriting methods or data content | |
references/expression-patterns/results-and-discussion.md | Rewriting results or discussion content | |
references/expression-patterns/conclusions-and-claims.md | Rewriting conclusion content |
Loading Rules
- Load ALL three anti-AI pattern leaves proactively at the start for full-text scanning.
- Load expression patterns overview at the start; load section-specific leaves during rewrite phase based on detected section type.
- When a target journal is specified, also load
references/journals/[journal].md. If template missing, refuse with message: "Journal template for [X] not found. Available: CEUS." - If an anti-AI pattern leaf is missing, warn the user and proceed with reduced detection coverage.
Ask Strategy
Before starting, ask about:
- Target journal (if not specified) -- determines style consideration during rewrite
- Scope: full paper or specific section (if ambiguous)
Rules:
- In
directmode, skip pre-questions when the user provides enough context. - Never ask more than 2 questions before scanning.
- Use Structured Interaction when available; fall back to plain-text questions otherwise.
Workflow
Step 0: Workflow Memory Check
- Read
.planning/workflow-memory.json. If file missing or empty, skip to Phase 1. - Check if the last 1-2 log entries form a recognized pattern with
ppw:de-aithat has appeared >= threshold times in the log. Seeskill-conventions.md > Workflow Memory > Pattern Detectionfor the full algorithm. - If a pattern is found, present recommendation via AskUserQuestion:
- Question: "检测到常用流程:[pattern](已出现 N 次)。是否直接以 direct 模式运行 ppw:de-ai?"
- Options: "Yes, proceed" / "No, continue normally"
- If user accepts: set mode to
direct, skip Ask Strategy questions. - If user declines or AskUserQuestion unavailable: continue in normal mode.
Phase 1: Detect
Step 1 -- Prepare:
- Load all three anti-AI pattern leaves (vocabulary, sentence-patterns, transitions-and-tone).
- If target journal specified, load journal template; if missing, refuse.
- Read user input (file via Read tool, or pasted text from conversation).
- Opt-out check: Scan the user's trigger prompt for any of these phrases (case-insensitive, exact phrase match):
english only,no bilingual,only english,不要中文. Store result asbilingual_mode(true/false). This flag governs Phase 2 bilingual output below. - Record workflow: Append
{"skill": "ppw:de-ai", "ts": "<ISO timestamp>"}to.planning/workflow-memory.json. Create file as[]if missing. Drop oldest entry if log length >= 50.
Step 2 -- Scan:
- Follow the Core Prompt constraints above as the primary instruction set for detection and rewrite.
- Scan full text against all three pattern dimensions in a single pass.
- For each match, check domain term protection: if the flagged term is standard domain terminology used in context (e.g., "landscape" in a geography paper, "robust" in a statistics paper), mark as SKIPPED with reason.
- For Optional-tier matches: only flag if the pattern appears 3+ times in the text. Single occurrences are suppressed to reduce noise.
Step 3 -- Present Detection Report:
- Summary line: "Found N AI patterns (X High Risk / Y Medium Risk / Z Optional)" plus count of skipped domain terms.
- Detailed list grouped by risk level (High first, then Medium, then Optional). Each item shows:
Step 4 -- User Selection:
- Ask which items to rewrite:
- "Fix all High Risk"
- "Fix High + Medium"
- "Fix all"
- Specific items by number: "fix 1, 3, 7"
Phase 2: Rewrite
Step 1 -- Group and Rewrite:
- Group selected items by paragraph. When multiple items appear in the same paragraph, rewrite them together in one pass to maintain coherence.
- Load relevant expression pattern leaves based on section type for higher quality alternatives beyond the anti-AI replacement column.
- Restructure expressions -- do not just swap synonyms. Preserve academic meaning and quality.
- If target journal specified, consider journal style preferences during rewrite.
Step 2 -- Apply Changes:
- File input: Use Edit tool for in-place modifications. Add
% [De-AI] Original: <original text>LaTeX comment on the line immediately before each rewritten passage. - Multi-line originals: each line gets its own
% [De-AI] Original:prefix. - If existing
% [De-AI] Original:annotations found, clean them up before adding new ones. - Pasted text: Present rewritten version in conversation with before/after comparison for each changed passage.
Step 3 -- Rewrite Report:
| Field | Content | |
|---|---|---|
| Total rewrites | Applied N of M detected items | |
| By category | Vocabulary inflation: count, Sentence overclaim: count, Transition smoothing: count | |
| Skipped items | Optional below threshold, domain terms protected | |
| Word count delta | +/- N words |
Step 4 -- Bilingual Display:
- If
bilingual_modeis true and input was a file: for each paragraph that was rewritten in Step 1, display a> **[Chinese]** ...blockquote in conversation showing the Chinese translation of the rewritten English text. - Use a section header in conversation: "双语对照 / Bilingual Comparison:" before the first blockquote.
- Format per paragraph:
> [Chinese] [Chinese translation of the rewritten paragraph]
- Do not insert Chinese into the .tex file. The file remains English-only and submission-ready.
- If
bilingual_modeis false (opt-out detected): skip this step entirely. - Pasted text input: if
bilingual_modeis true, append the> **[Chinese]** ...blockquote immediately after each rewritten paragraph in the conversation diff output.
Step 5 -- Summary:
- If further polishing is needed, recommend: "Consider running the Polish Skill for additional refinement."
LaTeX Annotation Format
- Format:
% [De-AI] Original: <original text>on the line immediately before the replacement. - Multi-line originals: each line gets its own
% [De-AI] Original:prefix. - Annotations are valid LaTeX comments -- the file compiles with them present.
- Cleanup: after user confirms acceptance, remove all lines matching
^% \[De-AI\] Original:. - If existing
% [De-AI] Original:annotations are found, clean them up before adding new ones.
Output Contract
| Output | Format | Condition | |
|---|---|---|---|
| Detection report | Structured markdown (summary + detailed list) | Always (Phase 1) | |
| Rewritten text | In-place LaTeX with annotations (file) or conversation diff (pasted) | Phase 2 | |
| Rewrite report | Structured markdown table | After Phase 2 | |
| Word count delta | Integer | After Phase 2 | |
bilingual_conversation | > **[Chinese]** ... blockquotes in session | Phase 2 rewritten paragraphs only. Skipped when opt-out detected. |
Edge Cases
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ppw-de-ai/SKILL.md
Popularity
- Repository stars
- 390
- Repository forks
- 20
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lylll9436/paper-polish-workflow-skill/ppw-de-ai)