Agent Skill for creating a full novel
npx skills add https://github.com/mave99a/novel-skill --skill novel-creatorقم بتثبيت هذه المهارة باستخدام واجهة سطر الأوامر (CLI) وابدأ في استخدام سير عمل SKILL.md في مساحة عملك.
Transform story ideas into complete novels with EPUB output through an interactive RPG-style workflow.
[Story Concept] → [Interactive RPG] → [Writing Plan] → [Chapters] → [EPUB]
Phase 1 Phase 2 Phase 3 Phase 4 Phase 5
Gather core story elements through interactive questions:
Run 10-15 decision points where the user makes meaningful choices:
AskUserQuestionGenerate a comprehensive task_plan.md including:
Write each chapter (~4000-5500 words) with:
[##]_[章节标题].mdAuto-generate professional ebook with:
# Add the marketplace
/plugin marketplace add mave99a/novel-skill
# Install the plugin
/plugin install novel-creator
# Install required Python package
pip install ebooklib
# Clone and add as local plugin
git clone https://github.com/mave99a/novel-skill.git
/plugin add ./novel-skill
| User Request | Action |
|---|---|
写一部小说 / Write a novel |
Full workflow (Phase 1-5) |
根据大纲写小说 + outline |
Start from Phase 3 |
把章节转成epub |
Phase 5 only |
继续写下一章 |
Resume Phase 4 |
User: 写一部小说
Claude: [Asks about genre, setting, protagonist...]
User: [Makes choices]
Claude: [Runs interactive RPG scenes, user makes plot decisions]
Claude: [Creates writing plan, writes chapters, generates EPUB]
Output: novel_title.epub
python3 scripts/create_epub.py [options]
Options:
--title TITLE Book title (auto-detects from task_plan.md)
--author AUTHOR Author name (default: "Claude AI")
--path PATH Chapter directory (default: current)
--output OUTPUT Output filename (default: [title].epub)
--subtitle SUBTITLE Book subtitle/tagline
novel-skill/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest for Claude Code
│ └── marketplace.json # Marketplace catalog
├── skills/
│ └── novel-creator/
│ ├── SKILL.md # Skill definition
│ ├── scripts/
│ │ └── create_epub.py
│ └── references/
│ ├── personas.md
│ └── poetry_pairs.md
├── samples/ # Example novel outputs
├── README.md # This file
├── LICENSE # MIT License
├── CHANGELOG.md # Version history
└── requirements.txt # Python dependencies
When a novel is created, the following files are generated:
your-project/
├── task_plan.md # Writing plan with outlines
├── 01_章节标题.md # Chapter 1
├── 02_章节标题.md # Chapter 2
├── ...
├── 10_章节标题.md # Chapter 10
└── 书名.epub # Final EPUB ebook
The skill supports customizable writing styles:
Edit skill.md to add new genre options in Phase 1.
The default structure includes:
Modify skill.md Phase 4 section to customize.
Edit scripts/create_epub.py function get_css_style() to customize:
01_当女孩遇见男孩.md
02_月光下的三明治.md
03_流言蜚语飞满天.md
...
# Ensure ebooklib is installed
pip install ebooklib
# Check chapter file naming (must match patterns):
# - XX_title.md (e.g., 01_chapter.md)
# - 第X章_title.md
# - chapter_X.md
Ensure your markdown files follow the naming convention and are in the correct directory.
The EPUB uses fallback fonts. Ensure your ebook reader supports Chinese fonts:
Contributions are welcome! Areas for improvement:
MIT License - Feel free to use and modify for your projects.