Agent skill

Perplexity Improver

by ThomasHoussin in ThomasHoussin/Claude-Book

Improve chapter perplexity score by rewriting AI-suspect sentences.

MITAuto-check passedProductivity & Automation

Install Perplexity Improver

skills CLI
$ npx skills add ThomasHoussin/Claude-Book --skill perplexity-improver -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ThomasHoussin/Claude-Book perplexity-improver --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ThomasHoussin/Claude-Book.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/perplexity-improver .claude/skills/perplexity-improver && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
perplexity-improver
GitHub stars
120
Token cost
~959 tokens
SKILL.md length
392 words
Files
3 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Improve chapter perplexity score by rewriting AI-suspect sentences.

  • Works in 5 steps: Analyze Chapter → Evaluate Need → Rewrite Sentences → …
  • Tasks that involve Web search
  • SKILL.md covers Quick Start, Performance Warning, When to Use and Supported Languages, plus 3 more sections
  • Calls uv

What it does

Perplexity Improver is an agent skill from ThomasHoussin/Claude-Book. Improve chapter perplexity score by rewriting AI-suspect sentences. Use after writing a chapter to reduce detectable AI patterns.

Its SKILL.md is about 960 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/rewriting-techniques-en.md` and `references/rewriting-techniques-fr.md`).

It sits in Productivity & Automation, covering Web search. It works with Perplexity. The repository describes itself as: A Multi-Agent Framework for Writing Novels with Claude Code. The licence is MIT.

When your agent uses it

  • Tasks that involve Web search

Example prompts

  • “/perplexity-improver”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Analyze Chapter
  2. Evaluate Need
  3. Rewrite Sentences
  4. Re-analyze
  5. Finalize

What it can do on your machine

Read from SKILL.md and the folder at commit 3fdebbb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Perplexity Improver loads about 959 tokens when it runs, and up to ~4.5k if it reads all its reference files. Until then it costs about 37 tokens; SKILL.md has 392 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~959
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ThomasHoussin/Claude-Book at commit 3fdebbb, republished under its MIT licence (© ThomasHoussin). 392 words, ~959 tokens.

Download SKILL.mdSave it as .claude/skills/perplexity-improver/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
perplexity-improver
description
Improve chapter perplexity score by rewriting AI-suspect sentences. Use after writing a chapter to reduce detectable AI patterns.

Perplexity Improver Skill

Reduce AI-detectable patterns in chapters by rewriting low-perplexity sentences while preserving narrative integrity.

Quick Start

/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

Performance Warning

⚠️ The analysis script is SLOW (several minutes for model loading and analysis).

  • Accumulate several corrections before re-running
  • Use at the end of a writing session, not after each edit

When to Use

  • After writing a chapter, before final validation
  • When perplexity analysis shows a warning (⚠️)

Supported Languages

CodeLanguageTechniques File
frFrançaisreferences/rewriting-techniques-fr.md
enEnglishreferences/rewriting-techniques-en.md

Workflow

Phase 1: Analyze Chapter

1. Detect language from chapter content (first 500 characters):

  • Identify language code (fr, en, etc.)
  • Load corresponding techniques file: references/rewriting-techniques-{lang}.md
  • If language not supported → report error and exit

2. Run perplexity analysis from the script directory (required for uv to find dependencies):

bash
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:

  • Median perplexity score
  • Warning status (median below threshold)
  • Suspect rate (percentage of suspect sentences)
  • List of suspect sentences sorted by ascending perplexity
Phase 2: Evaluate Need

The script flags sentences using multiple criteria:

  • low_perplexity: individually predictable sentence
  • low_std: passage with uniform perplexity (no surprises)
  • adjacent_low: extended stretch without friction
  • low_ppl_density: cumulative boredom signal
  • forbidden_word: AI-signal vocabulary

Decision tree:

  • If no warning (⚠️) in output → PASS, report and exit
  • If warning displayed (flagged rate > 25%) → proceed to Phase 3

Priority: Sentences with multiple flags (multi-flagged) should be rewritten first using techniques from references/rewriting-techniques-{lang}.md.

Show full SKILL.md (150 more words)Show less
Phase 3: Rewrite Sentences

Process sentences from lowest perplexity first (most predictable = most suspect).

For each suspect sentence:

  1. Locate in original chapter
  2. Rewrite using techniques from references/rewriting-techniques-{lang}.md
  3. Preserve exact meaning and narrative function

CRITICAL: Verify that meaning is preserved and rewrites integrate naturally.

Phase 4: Re-analyze

Run perplexity script on modified chapter.

Compare before/after:

  • Median perplexity: target ≥ threshold (no warning)
  • Suspect rate: target ≤ 20%
  • Suspect sentence count: target reduction

If still warning:

  • Iterate (max 3 loops)
  • Try different rewriting techniques
  • Focus on remaining lowest-perplexity sentences
Phase 5: Finalize

Generate reports in .work/:

  • perplexity-report.md: before/after stats, PASS/FAIL status
  • perplexity-changes.md: each rewritten sentence with technique used

Ask for validation before applying changes to chapter file.

Thresholds Reference

All thresholds are defined in scripts/detection/detection.py (constants at top of file).

Interaction Style

  • Show progress after each phase
  • Present before/after comparisons
  • Explain technique choices
  • Ask for validation before applying changes to file

© ThomasHoussin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .claude/skills/perplexity-improver of ThomasHoussin/Claude-Book.

  • SKILL.md
  • references/rewriting-techniques-en.md
  • references/rewriting-techniques-fr.md

Open the folder on GitHubat commit 3fdebbb

Compare with similar skills

Perplexity Improver next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Perplexity Improver compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Perplexity Improver this skillThomasHoussin/Claude-Book120—~959Automated safety check: PassMIT
Web SearchEXboys/skilllite1703 repos~1kAutomated safety check: PassMIT
Keirouter Web Searchmydisha/keirouter147—~771Automated safety check: PassMIT
Perplexity Researchinbrainfun/inbrain142—~1.7kAutomated safety check: NotesCustom licence
Perplexity Searchparcadei/Continuous-Claude-v33.9k2 repos~806Automated safety check: NotesMIT
Web Search PlusCraftOS-dev/CraftBot3921 repos~2.4kAutomated safety check: NotesMIT

Similar skills

  • Web Search

    EXboys/skilllite

    Web search and content extraction with Tavily and Exa via inference.sh CLI.

    170 GitHub starsUsed in 3 repos~1k tokens
    Productivity & AutomationAuto-check passed
  • Keirouter Web Search

    mydisha/keirouter

    Web search via KeiRouter /v1/search using Tavily / Exa / Brave / Serper / SearXNG / Google PSE / Perplexity.

    147 GitHub stars~771 tokensUpdated 27 days ago
    Productivity & AutomationAuto-check passed
  • Perplexity Research

    inbrainfun/inbrain

    Brain-augmented web research. An agent skill from inbrainfun/inbrain.

    142 GitHub stars~1.7k tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check: notes
  • Perplexity Search

    parcadei/Continuous-Claude-v3

    AI-powered web search, research, and reasoning via Perplexity

    3.9k GitHub starsUsed in 2 repos~806 tokens
    Productivity & AutomationAuto-check: notes
  • Web Search Plus

    CraftOS-dev/CraftBot

    Unified search skill with Intelligent Auto-Routing. An agent skill from CraftOS-dev/CraftBot.

    392 GitHub starsUsed in 1 repo~2.4k tokens
    Productivity & AutomationAuto-check: notes
  • Perplexity

    refly-ai/refly-skills

    AI-powered search and chat with Perplexity. An agent skill from refly-ai/refly-skills.

    204 GitHub stars~786 tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed

More from ThomasHoussin/Claude-Book

  • Book Analyzer

    ThomasHoussin/Claude-Book

    Analyze source books to extract structured bible files (style, characters, structure, universe).

    120 GitHub stars~620 tokensUpdated 8 mo ago
    Auto-check passed
  • Story Ideator

    ThomasHoussin/Claude-Book

    Generate original storylines from any universe bible without plagiarizing source material.

    120 GitHub stars~1.6k tokensUpdated 8 mo ago
    Auto-check passed
  • Bible Merger

    ThomasHoussin/Claude-Book

    Merge multiple book analyses into a unified bible. An agent skill from ThomasHoussin/Claude-Book.

    120 GitHub stars~621 tokensUpdated 8 mo ago
    Auto-check passed

Works with

Questions about Perplexity Improver

What does Perplexity Improver do?

Improve chapter perplexity score by rewriting AI-suspect sentences. Perplexity Improver is an agent skill from ThomasHoussin/Claude-Book. Improve chapter perplexity score by rewriting AI-suspect sentences.

When should I use Perplexity Improver?

Perplexity Improver fits situations like: tasks that involve Web search.

How do I install Perplexity Improver in Claude Code?

Run `npx skills add ThomasHoussin/Claude-Book --skill perplexity-improver -a claude-code`. Or copy the skill folder (.claude/skills/perplexity-improver in ThomasHoussin/Claude-Book) into .claude/skills/perplexity-improver in your project. Claude Code loads it when a task matches its description.

How do I install Perplexity Improver in Codex?

Run `npx skills add ThomasHoussin/Claude-Book --skill perplexity-improver -a codex`. Or copy the skill folder (.claude/skills/perplexity-improver in ThomasHoussin/Claude-Book) into .agents/skills/perplexity-improver in your project. Codex loads it when a task matches its description.

Can I use Perplexity Improver in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ThomasHoussin/Claude-Book --skill perplexity-improver -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/perplexity-improver, .gemini/skills/perplexity-improver, .github/skills/perplexity-improver and .opencode/skills/perplexity-improver in your project.

What does Perplexity Improver need to run?

Going by SKILL.md and its folder, Perplexity Improver needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Perplexity Improver access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Perplexity Improver safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Perplexity Improver use?

Perplexity Improver is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Perplexity Improver use?

About 959 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.5k tokens, read only when the agent opens those files.

What are the alternatives to Perplexity Improver?

Skills that share tags, products or a category with Perplexity Improver: Web Search (EXboys/skilllite, 170 stars), Keirouter Web Search (mydisha/keirouter, 147 stars), Perplexity Research (inbrainfun/inbrain, 142 stars) and Perplexity Search (parcadei/Continuous-Claude-v3, 3.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Perplexity Improver?

ThomasHoussin (a GitHub user) maintains it in ThomasHoussin/Claude-Book, which has 120 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on January 22, 2026.

Source: ThomasHoussin/Claude-Book on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.