# sepia

> A de-AI writing skill that repairs narrative architecture in fiction and applies venue-matched rules to professional prose

- Category: Agents & Automation / Agent Skills & Plugins
- Language: Markdown
- Licence: MIT
- Repository: https://github.com/Nanako0129/sepia
- Canonical page: https://ai-tldr.dev/tools/sepia/
- Updated: 2026-09-22

## In short

sepia is a portable Agent Skill for writing and revising text so it stops reading as machine-generated. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in Markdown and licensed MIT. To get started: install with the Skills CLI.

## Overview

sepia is a portable Agent Skill for writing and revising text so it stops reading as machine-generated. One canonical `SKILL.md` loads in any agent that follows the Agent Skills standard, the Skills CLI installs it across the agents that CLI supports, and Claude Code, Codex, Grok Build, Antigravity and QwenPaw get native plugin packaging. It offers four operations: write new prose, review (diagnose only), refactor (minimal in-place edits) and recreate (a full rewrite from the source facts and intent).

Its starting point is a claim about where AI text gives itself away. The README cites StoryScope (arXiv:2604.03136), which reported that a classifier using narrative-structure features alone detected AI fiction at 93.2% macro-F1, and that detection barely dropped after human editors rewrote the surface style. So for fiction sepia runs three passes in order: narrative architecture (stop explaining the theme, loosen the causal chain, back-load revelations, mix emotion modes, name real things), then discourse flow, then the classic surface layer of clichés, syntax templates and vocabulary. A 30-feature diagnosis rubric and per-model fingerprints apply when the writing model is known.

Professional writing gets a different treatment: one shared checklist plus a thin rule file per venue — release notes and announcements, PR and issue replies, postmortems, tickets, technical articles and long-form journalism. The governing principle is to calibrate to the human distribution rather than invert the AI one, so the skill picks three to five moves per piece and leaves slack. Optional voice profiles (a built-in Hemingway voice, a Taiwan long-form journalism voice, and a persona template with its own validator) can be stacked on top, and Chinese text loads a dedicated calibration file. The evidence behind each rule is digested in the repository's `research/` folder. sepia is MIT-licensed.

## What it does

- Four operations — write, review, refactor and recreate — plus a Hemingway entry, as `/sepia-*` commands in Claude Code, Grok Build and Antigravity and `$sepia-*` in Codex
- Three-pass fiction protocol: narrative architecture first, then discourse flow, then surface style
- Venue rule files for release notes, PR and issue replies, postmortems, tickets, technical articles and long-form journalism
- A 30-feature diagnosis rubric and per-model fingerprints for Claude, GPT, Gemini, DeepSeek and Kimi
- Opt-in voice profiles and a persona template checked by `scripts/check_persona.py`
- Installs through the Skills CLI or as a native plugin for Claude Code, Codex, Grok Build, Antigravity and QwenPaw

## Getting started

sepia is plain Markdown under the Agent Skills standard — nothing to host. Install it at user scope once, then call an operation on a draft.

1. Install with the Skills CLI

   The `-g` flag installs at user scope (the default is project scope); pick your agents when prompted.

```bash
npx skills add Nanako0129/sepia -g
npx skills update sepia -g
```

2. Or install the Claude Code plugin

   Add the repository as a plugin marketplace and install the full package at user scope. The operation wrappers depend on the canonical skill, so install the complete package rather than a single wrapper.

```bash
claude plugin marketplace add Nanako0129/sepia
claude plugin install sepia@sepia --scope user
```

3. Codex, Grok Build or Antigravity

   Each platform uses its own plugin command.

```bash
codex plugin marketplace add Nanako0129/sepia
codex plugin add sepia@sepia

grok plugin install Nanako0129/sepia --trust

agy plugin install https://github.com/Nanako0129/sepia
```

4. Run an operation

   Use `/sepia-review` to diagnose a draft without editing it, `/sepia-refactor` for minimal edits, `/sepia-recreate` for a full rewrite and `/sepia-write` for new prose (`$sepia-…` in Codex). The general `/sepia` router is also available.

```text
/sepia-review
/sepia-refactor
/sepia-recreate
/sepia-write
```

5. Check a persona profile

   If you write your own persona from `references/voices/PERSONA-TEMPLATE.md`, validate its structure with the bundled script, then opt in to it by its phrase.

```bash
python3 scripts/check_persona.py <file>
```

## When to use it

- Review an AI-drafted short story for structural tells — explained themes, tidy single-track plots, growth-and-acceptance endings — before touching word choice
- Rewrite release notes, PR replies, postmortems or tickets to the conventions of that venue
- Calibrate Traditional or Simplified Chinese drafts with a dedicated language file
- Stack a brand or personal voice on top of de-AI rules through a persona profile

## Version history

- 2026-09-22 v0.12.2: Patch release: the Gemini prose-layer table now covers only Gemini 3 and 3.1, so reviews of Gemini 3.5 or 3.8 Flash text treat that table as a prior rather than operative guidance.
