Writing Long-Form Chinese Web Novels with Long-Context LLMs: A Practical Engineering Workflow
Long-context LLMs can struggle with long-form creative writing not simply because the models lack capability, but because the workflow often manages instructions, style, context, cost, and linguistic artifacts poorly. This article presents an engineering workflow for generating a full-length Chinese web novel: encapsulating the creative process in an AI-readable Skill, calibrating output with the author's own corpus, loading the entire manuscript into the context window for continuity, and reducing cost with prompt caching. It reports an observed 800,000-character run in which the cache-hit rate exceeded 98% and total cost was under CNY 4. The article also analyzes the linguistic roots of "AI flavor," identifies English-influenced translationese as a major cause, and describes controls such as a banned-expression list, style anchoring, and a per-chapter polish pass.
1. Background: Why Do Many Users Find These Models “Hard to Use”?
When developers try to use a new generation of long-context models for complex content creation, a common first reaction is that the models are “hard to use”: output feels formulaic, plots break, and the prose feels disconnected from reality. In practice, however, the problem is often not the model itself but how it is used. Using the generation of a long-form web novel as an example, this article breaks down a reusable engineering solution covering Skill design, personal style injection, context-cache cost optimization, and governance of “AI flavor.”
2. Overall Solution Design
The core idea is to split “asking the model to write a novel in one shot” into a pipeline:
- Skill encapsulation: Codify the creative workflow as an instruction set (a Skill) that AI coding tools can read, rather than manually writing large prompts every time.
- Personal corpus calibration: Import the author’s previous articles so the model can first “learn” the author’s expressive characteristics.
- Full-text long-context loading: Keep the entire book within the context window at all times to ensure plot continuity.
- Cost optimization: Use prompt-cache hits to reduce the cost of long-document, multi-round creation to a very low level.
The following sections examine each stage.
3. Step 1: Turn the Creative Workflow into a Skill
Simply telling a model to “help me write a novel” is bound to produce poor results. The correct approach is to review existing creative Skills in the community, analyze their logic, and then redesign the structure specifically for the web-novel genre. A qualified novel-writing Skill usually contains the following modules:
- Worldbuilding and setting cards: power system, geography, factions, and core conflicts.
- Character card management: each character’s personality, verbal tics, motivations, and character arc, maintained independently and injected as needed during writing.
- Chapter outline and pacing control: web-fiction-specific pacing rules, such as “a minor climax every three chapters and a major climax every ten chapters,” written directly into the instructions.
- Consistency checks: after each chapter is generated, have the model compare it against the setting cards and check for contradictions, including character drift, timeline errors, and props appearing from nowhere.
- Map and scene management: when a new location is added, register its coordinates and features to avoid conflicting scene descriptions.
A simplified Skill structure looks like this:
novel-skill/├── workflow.md # Overall creation workflow instructions├── worldbuilding.md # Worldbuilding rules├── characters/ # Character cards (one file per character)├── maps/ # Map and scene registry└── style-guide.md # Style constraints and banned-expression list
The key engineering point is this: a Skill is documentation for the AI to read, not a manual for humans. Instructions should therefore be explicit, executable, and tied to clear criteria. A checkable hard constraint such as “every chapter must end with a hook” is far more effective than vague guidance such as “make it more exciting.”
4. Step 2: Inject Personal Style
The model’s default output is the “average of all Chinese on the internet,” which is one source of the disconnected feel. The solution is to collect the author’s historical articles from over the years, archived through note-management tools, and feed them to the model as a style corpus. This lets the model align with the author’s expressive habits: sentence-length distribution, word preferences, sense of humor, and argumentation rhythm.
Practical recommendations:
- The corpus does not need to remain in context in full. The model can first summarize the writing features into a style guide, and each chapter can then inject only that refined guide.
- The style guide should be written as executable rules, for example: “Avoid three or more four-character idioms in a row” and “Draw metaphors from everyday life.”
5. Step 3: Use Long Context to Solve Broken Plotlines
A classic pain point in long-form novel generation is plot incoherence: the model cannot remember foreshadowing planted dozens of chapters earlier. The long-context capabilities of the new generation of models directly address this problem. An entire 800,000-Chinese-character work can fit inside the context window, so each continuation can “see the whole book.” This significantly improves foreshadowing recovery, character relationships, and timeline consistency.
Engineering considerations still apply:
- Full-text injection does not mean structured management can be abandoned. Setting cards remain retrieval anchors that help the model locate key information faster.
- Information near the beginning of a long context may be diluted. Important constraints should be repeated at the end of each request.
6. Step 4: Use Caching to Cut Costs
Long context sounds expensive, but it does not have to be. LLM APIs commonly provide prompt caching: when multiple requests share the same long prefix, such as unchanged book settings plus already written text, that portion is billed at the cache-hit price, which is usually much lower than the normal input price.
Measured data from an 800,000-Chinese-character long-form project:
- Total consumption: approximately 75 million tokens.
- Uncached tokens: only about 1.1 million, for a cache-hit rate above 98%.
- Final cost: under CNY 4.
The optimization principle is simple: keep the request prefix stable. Put invariant content first, such as worldbuilding, character cards, and completed prose, and place the instructions that change per chapter at the end. This maximizes cache hits. It is the same idea as static assets behind a CDN and incremental handling of dynamic content in traditional web development.
7. The Deeper Problem: The Linguistic Roots of “AI Flavor”
Even with a complete workflow, the output may still carry an lingering “AI flavor.” An important practical finding is that this is likely not primarily a prompt problem but a translationese problem. Typical signs include:
- Literal English sentence patterns: “not… but…” is a frequent rhetorical construction in English, but it is much less frequent in Chinese corpora. When the model overuses the equivalent construction in Chinese creative writing, readers are immediately pulled out of the story.
- Mystifying prose: large numbers of suspenseful short sentences and aphoristic endings are also projections of English bestselling-book style.
- A disconnected feel: the vocabulary is correct, but the language feels misaligned, like a writer who knows grammar but lacks native intuition.
The problem appears across multiple models, which suggests that it comes from the proportion of English in training corpora and from expression transfer, rather than from a defect in any one model.
Governance methods:
- Maintain a banned-expression list in the Skill, explicitly list translationese sentence patterns, and have the model self-check and replace them after generation.
- Strengthen the weight of the personal style corpus, using authentic Chinese language intuition to offset English-influenced syntax.
- Perform a “de-AI” polish pass on every chapter, focusing on connectives, parallelism, and aphoristic expressions.
8. Conclusions and Recommendations
This practice leads to a clear conclusion: whether long-context models work well for long-form content creation depends on three things: whether the workflow is Skill-ized, whether the writing style is anchored in a real corpus, and whether cost is optimized through caching. The whole book costs less than the price of breakfast, and plot coherence is far better than with older approaches. Developers who are interested can refer to novel-related Skill structures in the open-source community, but they should make sure the AI reads them and adapts them to their own needs before use. They should also continuously iterate the banned-expression list to suppress translationese. General-purpose models plus an engineering workflow can become capable creative infrastructure.
