ChapterWise Plugin
for Claude Code
Edit your manuscripts in Chapterwise Codex format directly from your terminal with special skills designed for creative writing.
What is Claude Code?
Claude Code is Anthropic's official command-line tool that brings Claude's AI capabilities directly to your terminal. It can read files, execute commands, and help you work on complex projects—including writing manuscripts.
Don't have Claude Code?
Install Claude Code first, then come back to set up the ChapterWise Plugin.
Install Claude CodeSpecial Skills for Your Manuscripts
The ChapterWise Plugin extends Claude Code with specialized skills for working with your manuscripts in Chapterwise Codex format.
Create Codex Files
Generate new codex files with proper YAML structure. Start chapters, scenes, or entire story outlines.
Edit with Format Awareness
Claude understands the Chapterwise Codex format and helps you edit while preserving proper structure.
Analyze Your Writing
Get AI-powered analysis on chapters for structure, pacing, character development, and narrative consistency.
Validate Codex Format
Check your codex files for formatting errors and ensure they meet the Chapterwise specification.
Install the ChapterWise Plugin
Add the ChapterWise Plugin to your Claude Code installation to unlock all the special skills for working with your manuscripts.
# Step 1: Add the ChapterWise marketplace
/plugin marketplace add ansonphong/chapterwise-claude-plugins
# Step 2: Install the Codex plugin
/plugin install chapterwise-codex
Tip: After installation, the ChapterWise skills will be available in your Claude Code sessions. Try typing /chapterwise-codex: to see all commands.
Available Commands
The plugin includes eleven slash commands for working with Chapterwise Codex files.
format
/chapterwise-codex:format
Convert content to Chapterwise Codex V1.2 format and run the auto-fixer. Transforms your content into the standardized specification and applies automatic corrections.
explode
/chapterwise-codex:explode
Extract children into separate files with include directives. Break down large codex files by moving child elements into individual files with references back to the parent.
implode
/chapterwise-codex:implode
Merge included files back into the parent document. Combines separately stored child files back into a single unified codex file.
index
/chapterwise-codex:index
Generate an index.codex.yaml file for your project structure. Creates an organized index that maps your overall manuscript hierarchy.
lite
/chapterwise-codex:lite
Create Codex Lite files using Markdown with YAML frontmatter. A simplified format that combines Markdown content with Chapterwise metadata headers.
format-regen-ids
/chapterwise-codex:format-regen-ids
Regenerate ALL IDs in a codex file, even valid ones. Useful when duplicating or forking content that needs completely fresh unique identifiers.
format-folder
/chapterwise-codex:format-folder
Auto-fix all codex files in a folder at once. Batch process an entire directory with optional recursive mode for subdirectories.
convert-to-codex
/chapterwise-codex:convert-to-codex
Convert Markdown files to full Codex format. Upgrade Codex Lite files or import plain markdown into the structured Chapterwise specification.
convert-to-markdown
/chapterwise-codex:convert-to-markdown
Convert Codex files to Markdown (Codex Lite). Export your content for use with standard markdown tools, blogs, or external sharing.
generate-tags
/chapterwise-codex:generate-tags
Auto-generate tags from body content using text analysis. Extracts meaningful keywords and phrases with smart stopword filtering and heading boost.
update-word-count
/chapterwise-codex:update-word-count
Update word count metadata in codex files. Recursively counts words in body fields and updates the word_count attribute for tracking writing progress.
Usage Examples
Once installed, here's how you can use the ChapterWise Plugin in your writing workflow.
# Ask Claude to create a new chapter
$ claude
> Create a new codex chapter called "The Journey Begins" with a
scene in a medieval tavern. Include character introductions.
# Ask Claude to help edit a chapter
$ claude
> In chapter-03.codex.yaml, expand the dialogue between
Sarah and Marcus to show more tension.
# Validate all codex files in your project
$ claude
> Validate all .codex.yaml files in this directory and
fix any formatting issues you find.
Ready to Start?
With the ChapterWise Plugin installed, you can write and edit your manuscripts right from the terminal.