Sepia: The Open-Source Skill That Repairs AI Writing at the Structural Level

Instead of swapping words, Sepia rewrites narrative flow, paragraph logic, and stylistic over-completeness to make machine-generated prose feel less machine-shaped.

8 min read • View on GitHub • More from Nanako0129

A manuscript moves through three repair stations on a crowded drafting desk. One station untangles dense causal threads, another rearranges paragraph cards, and a third trims excess ornament from the page. The image explains Sepia as a structural repair pipeline, not a synonym swapper.
Sepia treats AI prose like a draft that needs architectural repair. The point is not to disguise the machine, but to reshape the structure that gives it away.

De-AI writing at the layer that actually gives AI away. Fiction gets its narrative architecture repaired before anyone touches word choice; professional documents (release notes, PR replies, postmortems, tickets, technical articles) each get rules matched to their venue.

Nanako0129, Project Creator / Maintainer · Nanako0129/sepia GitHub README
Key Takeaways

Most “humanizer” tools start at the wrong layer. They hunt for giveaway words, obvious hedges, and the occasional em dash, then declare victory when the prose looks less synthetic on the surface. Sepia takes a harder position: the real fingerprint is usually structural, not lexical.

That difference changes everything. If AI prose feels uncanny, it is often because the whole piece is too tidy, too linear, and too exhaustively resolved. Sepia treats that as a repair problem, not a vocabulary problem.

The Real Problem Is Not Vocabulary

A hedcut-style portrait of Nanako0129 rendered from a verified GitHub avatar. The portrait identifies the project creator behind Sepia, grounding the article’s structural analysis in a real maintainer.

That README line is the project’s thesis in plain language. Sepia does not ask, “How do we make this sound less AI?” It asks, “Which layer of the draft is actually failing?”

The answer, in Sepia’s model, depends on the genre. Fiction gets narrative repair. Professional prose gets venue-specific rules. The common thread is that prose is calibrated to context, not flattened into a generic anti-slop style.

Sepia’s Core Idea: Calibrate, Don’t Invert

The strongest idea in the repo is also the simplest: do not invert AI into a cartoon of human writing. Calibrate prose toward the human distribution. That means accepting slack, asymmetry, and the occasional rough edge instead of sanding everything into a uniformly polished blur.

Narrative features alone achieve 93.2% macro-F1 for human vs. AI detection... AI stories over-explain themes and favor tidy, single-track plots while human stories frame protagonist' choices as more morally ambiguous and have increased temporal complexity.

Jenna Russell, et al., Researchers · StoryScope: Investigating idiosyncrasies in AI fiction

That research premise matters because it shifts the target. If AI prose is detected by structural regularities, then a successful repair tool has to intervene where those regularities live: the arc of the piece, the rhythm of paragraphs, and the order in which ideas are allowed to appear.

Sepia’s repair loop is ordered on purpose. It diagnoses structure first, then discourse, then style, so the surface cleanup does not hide deeper problems.

How the Three-Pass Repair Loop Works

Sepia’s central mechanism is a three-pass protocol. The narrative pass looks for the big shape of the piece. The discourse pass checks whether each paragraph is answering a real question. The style pass cleans up what remains after the deeper repairs are done.

PassPrimary targetWhat it changesWhat it tries to avoid
Narrative passStory shapeCausal tidiness, single-track plots, over-closed arcsA story that reads too inevitable
Discourse passParagraph logicQuestion flow, transitions, paragraph rhythmSmooth but template-like sequencing
Style passSurface residueWord choice, repetition, leftover over-explanationA fake “humanizer” finish

The order is the point. If you polish style too early, you can hide the fact that the piece is still structurally robotic. Sepia repairs from the inside out, so surface cleanup becomes the last mile, not the whole journey.

Two paragraph blocks sit on a compositor’s table with question cards above them. One block follows a perfectly neat arrow path from sentence to sentence, while the other branches and pauses in a less predictable way. The image explains the QUD check, where Sepia tests whether a paragraph answers a real question instead of merely continuing the script.
The QUD check is Sepia’s most interesting move. It turns paragraph flow into something you can audit, not just admire.

The QUD Check Is the Hidden Trick

The hidden move is the Question Under Discussion check. Sepia asks, paragraph by paragraph, what question the text is actually answering. That matters because machine-written prose can sound coherent while still moving in a flat, predetermined sequence.

That observation is accurate because Sepia is not using the same repair logic for every kind of writing. It separates text by venue and intent. A paragraph in a postmortem should not be shaped like a paragraph in a story, and Sepia acts like it knows that.

This is also why the repo feels more like an editorial system than a prompt pack. QUD is a test for discourse quality, but it is also a way to disrupt the overly smooth cadence that many LLM drafts default to.

Why the Wrapper Pattern Matters

Sepia is packaged as a canonical `SKILL.md` with thin wrappers around it. The `sepia-write`, `sepia-review`, `sepia-refactor`, and `sepia-recreate` folders do not reinvent the logic. They point back to the same source of truth.

skills/
  sepia/
    SKILL.md
    references/
      narrative-pass.md
      discourse-pass.md
      style-pass.md
  sepia-write/
    SKILL.md -> ../sepia/SKILL.md
  sepia-review/
    SKILL.md -> ../sepia/SKILL.md
  sepia-refactor/
    SKILL.md -> ../sepia/SKILL.md
  sepia-recreate/
    SKILL.md -> ../sepia/SKILL.md

That design is more than neat packaging. It prevents platform drift. If the same logic is meant to run inside Claude Code, Codex, Grok Build, and other agent environments, duplication would eventually bend the behavior. One canonical file keeps the repair philosophy intact.

The wrapper pattern also clarifies intent. Each operation is a mode of use, not a separate product. That makes the project portable without making it vague.

DimensionSurface humanizersSepia
Primary targetWords and obvious AI markersNarrative architecture and discourse flow
Unit of changeSentence-level paraphraseParagraph and structure-level repair
Failure modeLooks rewritten but still feels machine-shapedMay leave some roughness, but the draft feels less scripted
Best forQuick cleanupSerious revision and agent-native workflows

Research-Backed, Not Prompt-Decorated

Sepia stands out because it tries to operationalize research, not merely cite it. StoryScope is not decorative background reading here. It supplies the structural logic behind the repair passes, especially the focus on tidiness, temporal shape, and over-explained causality.

The highlight of the sepia skill is that it's based on research (StoryScope, arXiv:2604.03136) and adjusts the narrative structure, fluency, and sentence style. You can compare and see which model performs best, especially for Chinese. I suspect it will be Gemini, plus the Chinese open-source models.

The practical effect is a tool that behaves like an editorial workflow with a research citation stack behind it. The project is not saying every sentence must be made weird or ragged. It is saying that prose quality can be diagnosed by looking at deeper narrative regularities first.

That is a sharper claim than most anti-slop tools make. It is also more useful. If the bug is structural, then the fix should be structural too.

Where Sepia Fits in the Anti-Slop Landscape

Compared with vocabulary filters and tone rewriters, Sepia belongs in a different category. It is closer to an architectural editor than a paraphraser. That is why it matters to developers and writers who care about the shape of the output, not just the surface polish.

Tool typeWhat it fixesWhat it misses
Surface humanizerVocabulary giveaways and repetitive phrasingThe underlying narrative and discourse pattern
Prose cleanerHedges, filler, em dashes, obvious AIismsOver-closed arcs and template-like paragraph flow
SepiaStructure, question flow, and final styleIt may be less instantly flashy than simple rewrite tools, by design

The broader implication is simple. If AI writing keeps improving at the sentence level, the next frontier is not better synonyms. It is better control over how ideas unfold across a piece.