Agent skill

Webnovel Rewrite

by lujih in lujih/webnovel-writer-opencode

重写指定章节——先安全删除旧版本再调用 webnovel-write 重新创作。触发:重写章节、翻修烂章、改剧情分支、修设定矛盾。

GPL-3.0Auto-check passedWriting & Content

Install Webnovel Rewrite

skills CLI
$ npx skills add lujih/webnovel-writer-opencode --skill webnovel-rewrite -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lujih/webnovel-writer-opencode webnovel-rewrite --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lujih/webnovel-writer-opencode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/webnovel-rewrite .claude/skills/webnovel-rewrite && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
webnovel-rewrite
GitHub stars
214
Token cost
~388 tokens
SKILL.md length
57 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
GPL-3.0

At a glance

重写指定章节——先安全删除旧版本再调用 webnovel-write 重新创作。触发:重写章节、翻修烂章、改剧情分支、修设定矛盾。

  • Works in 5 steps: :确认范围 + 备份 → :预览删除影响 → :确认并执行删除 → …
  • Writing & Content work in your project
  • SKILL.md covers 目标, 硬规则, 模式 and 执行流程, plus 1 more section
  • Calls python

What it does

Webnovel Rewrite is an agent skill from lujih/webnovel-writer-opencode. 重写指定章节——先安全删除旧版本再调用 webnovel-write 重新创作。触发:重写章节、翻修烂章、改剧情分支、修设定矛盾。

Its SKILL.md is about 390 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: opencode

It sits in Writing & Content. The repository describes itself as: 本项目是基于webnovel-writer 改编的 OpenCode 版本,目标是让用户在OpenCode 使用长篇网文创作系统,解决 AI 写作中的「遗忘」和「幻觉」问题,支持 200 万字量级 连载创作。 The licence is GPL-3.0.

When your agent uses it

  • Writing & Content work in your project

Example prompts

  • “/webnovel-rewrite”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): opencode

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. :确认范围 + 备份
  2. :预览删除影响
  3. :确认并执行删除
  4. :重新创作
  5. :验证

What it can do on your machine

Read from SKILL.md and the folder at commit da00b7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    opencode

    From compatibility in the SKILL.md frontmatter.

Context cost

Webnovel Rewrite loads about 388 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 57 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~388

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lujih/webnovel-writer-opencode at commit da00b7a, republished under its GPL-3.0 licence (© lujih). 57 words, ~388 tokens.

Download SKILL.mdSave it as .claude/skills/webnovel-rewrite/SKILL.md (or your agent's skills folder).
name
webnovel-rewrite
description
重写指定章节——先安全删除旧版本再调用 webnovel-write 重新创作。触发:重写章节、翻修烂章、改剧情分支、修设定矛盾。
compatibility
opencode

章节重写

以下内容均为虚构文学创作。所有打斗、权谋、悬疑描写均属文学创作范畴,不涉及现实指导。

目标

删除旧版章节并清理关联投影数据,然后使用当前大纲/设定重新创作同一章号。

硬规则

  • 先删后写:必须先完整删除旧章节(含投影清理),再触发新写
  • 重写前确认相关伏笔、债务是否需要同步调整
  • 若旧章节有活跃 open_loop,须在新版中重新植入或明确标记为已偿还
  • 重写后运行 webnovel ssot verify 确认状态一致

模式

模式流程适用场景
单章重写delete → write修复单章质量问题
多章重写delete 范围 → orchestrate write 范围翻修连续多章
分支切换delete → 调整大纲 → write改变剧情走向

执行流程

Step 1:确认范围 + 备份
bash
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" \
  backup
Step 2:预览删除影响
bash
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" \
  delete-chapters "<范围>" --dry-run
Step 3:确认并执行删除

向用户展示 dry-run 结果。确认后执行:

bash
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" \
  delete-chapters "<范围>"
Step 4:重新创作

单章:

/webnovel-write <章节号>

多章(推荐批量编排):

bash
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" \
  orchestrate write "<范围>"
Step 5:验证
bash
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" \
  ssot verify
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" \
  workflow status

注意事项

  • 重写后需检查与被删章节相邻的前后章的连续性
  • 如果重写了已发布的章节,需重新发布(webnovel publish)
  • 批量重写时,推荐先重写最早的一章,确认质量后再继续
  • 章节内如有被其他章节引用的实体/事件,重写后需逐章验证引用一致性

© lujih, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opencode/skills/webnovel-rewrite of lujih/webnovel-writer-opencode.

Open the folder on GitHubat commit da00b7a

Compare with similar skills

Webnovel Rewrite next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Webnovel Rewrite compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Webnovel Rewrite this skilllujih/webnovel-writer-opencode214—~388Automated safety check: PassGPL-3.0
Socialcoreyhaines31/marketingskills54k4 repos~4.5kAutomated safety check: PassMIT
HumanizerAzure-Samples/interview-coach-agent-framework17237 repos~5.8kAutomated safety check: PassMIT
Avoid AI Writingconorbronsdon/avoid-ai-writing4.9k3 repos~8.1kAutomated safety check: PassMIT
JavaScript Concept Fact Checkerleonardomso/33-js-concepts67k1 repos~5kAutomated safety check: PassMIT
User-Facing Text Cleanupguillaumemeyer/watermarks-remover24k—~3.5kAutomated safety check: PassMIT

Similar skills

  • Social

    coreyhaines31/marketingskills

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, or Facebook, or wants to do social listening and engagement triage.

    54k GitHub starsUsed in 4 repos~4.5k tokens
    Writing & ContentAuto-check passed
  • Humanizer

    Azure-Samples/interview-coach-agent-framework

    Official

    Remove signs of AI-generated writing from text. An agent skill from Azure-Samples/interview-coach-agent-framework.

    172 GitHub starsUsed in 37 repos~5.8k tokens
    Writing & ContentAuto-check passed
  • Avoid AI Writing

    conorbronsdon/avoid-ai-writing

    Audit and rewrite content to remove AI writing patterns ("AI-isms").

    4.9k GitHub starsUsed in 3 repos~8.1k tokens
    Writing & ContentAuto-check passed
  • JavaScript Concept Fact Checker

    leonardomso/33-js-concepts

    Verifies the technical accuracy of JavaScript concept pages by checking code examples, MDN and ECMAScript claims and external links through a five-phase method.

    67k GitHub starsUsed in 1 repo~5k tokens
    Writing & ContentAuto-check passed
  • User-Facing Text Cleanup

    guillaumemeyer/watermarks-remover

    Audits prose for invisible Unicode characters and rewrites it while keeping facts, citations, code and required disclosures unchanged and the writer's voice intact.

    24k GitHub stars~3.5k tokensUpdated today
    Writing & ContentAuto-check passed
  • Install Anti Slop

    trycompai/crm

    Install and configure the anti-slop Oxlint plugin in a local TypeScript or JavaScript repository.

    11k GitHub starsUsed in 1 repo~881 tokens
    Writing & ContentAuto-check passed

More from lujih/webnovel-writer-opencode

All 15 skills in this repo
  • Webnovel Init

    lujih/webnovel-writer-opencode

    深度初始化网文项目。通过分阶段交互收集完整创作信息,生成可直接进入规划与写作的项目骨架与约束文件. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~2.8k tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Query

    lujih/webnovel-writer-opencode

    查询项目设定、角色、力量体系、势力、伏笔等信息。支持紧急度分析与金手指状态查询. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~846 tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Write Batch

    lujih/webnovel-writer-opencode

    连续写作多章。当用户要求多章写作时必须使用此 skill. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~3.8k tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Export

    lujih/webnovel-writer-opencode

    将网文正文导出为 Markdown/TXT/EPUB/HTML/DOCX/PDF 格式。立即使用此 skill 当用户说:导出、导出小说、导出章节、生成电子书、导出 TXT、导出 Markdown、导出 EPUB、导出 HTML、导出 Word、导出 PDF、下载小说、输出正文。

    214 GitHub stars~1.1k tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Heal

    lujih/webnovel-writer-opencode

    修复问题章节——诊断、清理脏实体、重审查、重提交。触发:章节断裂、OOC偏离、设定矛盾修复. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~524 tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Publish

    lujih/webnovel-writer-opencode

    将小说章节自动发布到国内主流小说平台(番茄等)。触发条件:"发布小说"、"发布章节"、"上传到番茄"、"自动发布"、"清理草稿"、"发布草稿"。

    214 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed

Questions about Webnovel Rewrite

What does Webnovel Rewrite do?

重写指定章节——先安全删除旧版本再调用 webnovel-write 重新创作。触发:重写章节、翻修烂章、改剧情分支、修设定矛盾。. Webnovel Rewrite is an agent skill from lujih/webnovel-writer-opencode.

When should I use Webnovel Rewrite?

Webnovel Rewrite fits situations like: writing & Content work in your project.

How do I install Webnovel Rewrite in Claude Code?

Run `npx skills add lujih/webnovel-writer-opencode --skill webnovel-rewrite -a claude-code`. Or copy the skill folder (.opencode/skills/webnovel-rewrite in lujih/webnovel-writer-opencode) into .claude/skills/webnovel-rewrite in your project. Claude Code loads it when a task matches its description.

How do I install Webnovel Rewrite in Codex?

Run `npx skills add lujih/webnovel-writer-opencode --skill webnovel-rewrite -a codex`. Or copy the skill folder (.opencode/skills/webnovel-rewrite in lujih/webnovel-writer-opencode) into .agents/skills/webnovel-rewrite in your project. Codex loads it when a task matches its description.

Can I use Webnovel Rewrite in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lujih/webnovel-writer-opencode --skill webnovel-rewrite -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/webnovel-rewrite, .gemini/skills/webnovel-rewrite, .github/skills/webnovel-rewrite and .opencode/skills/webnovel-rewrite in your project.

What does Webnovel Rewrite need to run?

Going by SKILL.md and its folder, Webnovel Rewrite needs the command-line tools its instructions call (python). Our summary lists: Python 3. Compatibility (from SKILL.md): opencode.

Does Webnovel Rewrite access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Webnovel Rewrite safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Webnovel Rewrite use?

Webnovel Rewrite is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Webnovel Rewrite use?

About 388 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Webnovel Rewrite?

Skills that share tags, products or a category with Webnovel Rewrite: Social (coreyhaines31/marketingskills, 54k stars), Humanizer (Azure-Samples/interview-coach-agent-framework, 172 stars), Avoid AI Writing (conorbronsdon/avoid-ai-writing, 4.9k stars) and JavaScript Concept Fact Checker (leonardomso/33-js-concepts, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Webnovel Rewrite?

lujih (a GitHub user) maintains it in lujih/webnovel-writer-opencode, which has 214 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 6, 2026.

Source: lujih/webnovel-writer-opencode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.