一键导入
perplexity-improver
Improve chapter perplexity score by rewriting AI-suspect sentences. Use after writing a chapter to reduce detectable AI patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Improve chapter perplexity score by rewriting AI-suspect sentences. Use after writing a chapter to reduce detectable AI patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Merge multiple book analyses into a unified bible. Use after analyzing several books from a series to consolidate characters, style patterns, and structure into a single canonical reference.
Analyze source books to extract structured bible files (style, characters, structure, universe). Use when analyzing novels, stories, or any narrative text to create a reusable writing bible for style matching and story generation.
Generate original storylines from any universe bible without plagiarizing source material. Use when creating new adventures using established characters, locations, and style. Triggers on "invent a story", "create a new adventure", "generate synopsis", "brainstorm plot".
| name | perplexity-improver |
| description | Improve chapter perplexity score by rewriting AI-suspect sentences. Use after writing a chapter to reduce detectable AI patterns. |
Reduce AI-detectable patterns in chapters by rewriting low-perplexity sentences while preserving narrative integrity.
/perplexity-improver story/chapters/chapitre-05.md
Multiple chapters can be analyzed in one run:
/perplexity-improver story/chapters/chapitre-01.md story/chapters/chapitre-02.md
⚠️ The analysis script is SLOW (several minutes for model loading and analysis).
| Code | Language | Techniques File |
|---|---|---|
fr | Français | references/rewriting-techniques-fr.md |
en | English | references/rewriting-techniques-en.md |
1. Detect language from chapter content (first 500 characters):
fr, en, etc.)references/rewriting-techniques-{lang}.md2. Run perplexity analysis from the script directory (required for uv to find dependencies):
cd scripts/detection && uv run python detection.py ../../<path/to/chapter.md>
Important: The uv run command must be executed from scripts/detection/ where the pyproject.toml is located.
3. Extract from output:
The script flags sentences using multiple criteria:
Decision tree:
Priority: Sentences with multiple flags (multi-flagged) should be rewritten first using techniques from references/rewriting-techniques-{lang}.md.
Process sentences from lowest perplexity first (most predictable = most suspect).
For each suspect sentence:
references/rewriting-techniques-{lang}.mdCRITICAL: Verify that meaning is preserved and rewrites integrate naturally.
Run perplexity script on modified chapter.
Compare before/after:
If still warning:
Generate reports in .work/:
perplexity-report.md: before/after stats, PASS/FAIL statusperplexity-changes.md: each rewritten sentence with technique usedAsk for validation before applying changes to chapter file.
All thresholds are defined in scripts/detection/detection.py (constants at top of file).