rewrite

rewrite is a skill for Claude Code from MJbae/awesome-novel-studio. It costs 150 tokens per session (7,395 once invoked), scanned A, original, Apache-2.0.

A workflow for substantially rewriting fictional episodes after character sheets, plot guides, or other story rules change. It analyzes the episode, rewrites scenes and character behavior, and verifies the result.

In plain words
What is it for?
Analyzing differences between story documents and episodes, redesigning scenes, changing dialogue and actions, rearranging plot beats, and checking the rewritten episode against the project’s rules.
Why use it?
It helps keep existing episodes consistent with updated story plans and makes character and plot changes systematic.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the awesome-novel-studio plugin — 10 skills, 18 agents shipped together

Good fit Analyzing differences between story documents and episodes, redesigning scenes, changing dialogue and actions, rearranging plot beats, and checking the rewritten episode against the project’s rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MJbae/awesome-novel-studio
Claude Code
/plugin install awesome-novel-studio

Made for: Claude Code.

Or install awesome-novel-studio, the plugin that ships this one along with the rest of its 10 skills, 18 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rewrite

README.md
[![agentmods](https://agentmods.dev/badge/skills/mjbae/awesome-novel-studio/rewrite/github.svg)](https://agentmods.dev/skills/mjbae/awesome-novel-studio/rewrite)
Your own site
<a href="https://agentmods.dev/skills/mjbae/awesome-novel-studio/rewrite"><img src="https://agentmods.dev/badge/skills/mjbae/awesome-novel-studio/rewrite/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rewrite

Your own site · 80×15
<a href="https://agentmods.dev/skills/mjbae/awesome-novel-studio/rewrite"><img src="https://agentmods.dev/badge/skills/mjbae/awesome-novel-studio/rewrite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,395 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00150 $0.07395
Opus 5 $0.00075 $0.03698
Sonnet 5 $0.00030 $0.01479
Haiku 4.5 $0.00015 $0.00739

Measured 9d ago against content hash e7c82d22433d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rewrite scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rewrite/SKILL.md · 543 lines

How it starts

The opening of the file, as written. The whole thing — 543 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rewrite — 에피소드 재작성 팀 오케스트레이터

설정문서(캐릭터시트·플롯가이드·부트스트랩) 변경에 따라 기존 에피소드를 분석→재작성→검증하는 3-Phase 팀.

프로젝트 독립적: polish 스킬과 동일한 novel-config.md를 읽어 설정문서·가드레일·커스텀 축을 자동 적용한다. 다른 소설 프로젝트에서도 novel-config.md만 작성하면 동일하게 사용 가능.

기존 polish(윤문)와의 차이: 윤문은 문장·표현 레벨의 교정이고, rewrite는 장면 구성·캐릭터 행동·플롯 비트 레벨의 재작성이다. 장면을 새로 쓰거나, 캐릭터의 대사·행동을 근본적으로 바꾸거나, 플롯 비트를 재배치하는 작업이다.


팀 구조: 생성-검증(Producer-Reviewer) 패턴

Phase 1 (분석 — Agent 2개 병렬 호출)
         ┌→ [revision-analyst]    ── 설정문서↔에피소드 괴리 분석 ─┐
[에피소드] ┤                                                       ├→ [괴리 보고서 + 재작성 설계서]
         └→ [character-sculptor]  ── 캐릭터 입체성 진단           ─┘

Phase 2 (재작성 — 순차)
[괴리 보고서 + 재작성 설계서] → [episode-rewriter] → [재작성된 에피소드]

Phase 3 (검증 — 순차)
[재작성된 에피소드] → [quality-verifier] → PASS / REWRITE → (REWRITE시 Phase 2 재실행)
에이전트 역할 Phase
revision-analyst 설정문서↔에피소드 괴리 분석. 플롯 비트·수치·시간·자금 흐름·커스텀 축 정합성 1 (병렬)
character-sculptor 캐릭터 입체성 진단. 경악 방식·비언어·내면·관계망·고유 긴장점 반영도 1 (병렬)
episode-rewriter 2개 보고서를 통합하여 에피소드를 재작성. CLAUDE.md 집필 규칙 준수 2 (순차)
quality-verifier 재작성 결과를 설정문서·CLAUDE.md 규칙과 대조 검증 (REWRITE 모드) 3 (순차)

실행 방법

/rewrite                    ← 기본 프로젝트의 다음 미완료 에피소드부터
/rewrite EP042              ← EP042부터 시작
/rewrite start              ← EP001부터 전체 시작
/rewrite EP027-EP076        ← 특정 범위
/rewrite {프로젝트명}        ← 특정 프로젝트 지정 (예: /rewrite 36억평)
/rewrite {프로젝트명} EP042  ← 특정 프로젝트 + 특정 에피소드

자기 반복 루프 (Self-Loop Protocol)

루프 구조

LOOP:
  1. rewrite-plan.md에서 다음 미완료 에피소드 결정
  2. 해당 에피소드에 대해 Phase 1→2→3 실행
  3. rewrite-plan.md 업데이트
  4. rewrite-log.md 업데이트 (주요 변경 기록)
  5. 전체 완료 확인
     - 미완료 있음 → LOOP 반복
     - 전체 완료 → "REWRITE_COMPLETE" 출력하고 아래 후처리 실행:
       1. **fix_plan.md 부분 리셋**: rewrite된 에피소드들의 polish 상태를 리셋한다.
          `{WORK_DIR}/fix_plan.md`가 존재하면, rewrite-plan.md에서 `[x]`로 완료된 EP 목록을 추출하여
          fix_plan.md의 해당 EP를 `[ ] — rewrite 후 재윤문 필요`로 변경한다.
          fix_plan.md가 존재하지 않으면 rewrite된 EP 목록으로 새로 생성한다.
          ```
          예시:
          rewrite-plan.md에서 EP027~EP076이 완료됨
          → fix_plan.md에서 EP027~EP076을 [ ]로 리셋
          → 나머지 EP는 기존 상태 유지
          ```
       2. **완료 안내**:
          ```
          rewrite 완료. `/polish`를 실행하면 rewrite된 에피소드의 문장 품질을 교정합니다.
          fix_plan.md에서 EP{시작}~EP{끝}이 재윤문 대상으로 리셋되었습니다.
          rewrite → polish 순서를 권장합니다.
          ```

Read the full file on GitHub · 543 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 543 lines · 150 tokens per session scan A e7c82d22433d

Subscribe to this mod's changes

rewrite is a skill published in the GitHub repository MJbae/awesome-novel-studio (147 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 150 tokens to every session and 7,395 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens