Install
openclaw skills install vn-worldbuildingGenerates and updates a detailed, structured world bible for Vietnamese text stories, building and maintaining lore with cross-references and open mysteries.
openclaw skills install vn-worldbuildingWorld Architect + Living Memory. Two operating modes:
vn‑worldbuilding belongs to the “viết dàn ý” task:
Task “viết dàn ý”:
(core idea + lorebook) → AI[vn‑outline + vn‑povs] → Outline
Outline → AI[vn‑worldbuilding] → lorebook updated ← (after each 5–10 chapters)
The Lorebook is the SOURCE for both tasks. Update Mode closes the feedback loop.
Dump Is the Point (Build Mode)
The lorebook SHOULD dump as much as possible. This is the exact opposite of vn‑lorefilter (in‑scene, anti‑dump). You are NOT writing prose. You are writing a WIKI. Each entry may be 2–5 paragraphs. The whole bible may reach 3000–10000 words. Do not hold back.
External Narrator Only
The lorebook has NO POV. No “He felt…”, no sensory anchor, no “sunlight streaming through…”. The voice is encyclopedic / historical record. Dry, systematic, objective. If you find yourself narrating → STOP, rewrite as a list.
Internal Consistency Is Law
Every entry must match every other entry. A top‑tier faction must have a leader of corresponding high rank. A scarce resource must command a high price. History must explain the present. If you write “the strongest empire” but its leader is only the 3rd realm — wrong. The system must self‑check.
Mystery Is Mandatory
A world bible WITHOUT hooks = a dead world. Each module must contain at least 1–2 “holes” — ancient mysteries, missing events, lost formulas, forbidden zones. The total number of open hooks must be at least 12–20 at any time. Hooks are not answers — hooks are anchors for the outline. After every Update Mode, count remaining open hooks — if <12, inject more before finishing.
Cross‑Reference Is Skeleton
Every entry has an ID and links to other entries. Format: [Module.Entry#] — e.g. [CP.3], [Geo.7]. The lorebook is NOT 7 separate modules — it is ONE system with nerves. Missing cross‑refs = broken structure.
vn‑fullwrite + vn‑lorefilter)vn‑outline)vn‑povs)These 7 modules are framework‑only, NO genre preset. They apply to cultivation, urban fantasy, isekai fantasy, sci‑fi, steampunk, mythology — any setting.
| # | Module | Key | Core Question |
|---|---|---|---|
| 1 | Cosmology & Power | CP | How does the world work? What is possible? |
| 2 | Geography & Environment | Geo | Where is everything? |
| 3 | Societies & Factions | SF | Who organizes the world? |
| 4 | History & Time | His | What has happened? |
| 5 | Species & Beings | SB | Who lives here? |
| 6 | Knowledge & Artifacts | KA | What items matter? |
| 7 | Culture & Taboo | Cul | How do people behave? |
Questions: What can be done in this world? How? What are the limits? What are the costs?
Includes:
Cross‑ref: Geo (where resources come from), KA (artifacts exploit which power), SB (which species can use it)
Questions: What is the map? What does each region contain? Where is it dangerous?
Includes:
Cross‑ref: SF (who controls which region), CP (resources fueling the power system), His (landmarks tied to events)
Questions: Who are the big players? What do they want? How strong?
Includes:
Cross‑ref: CP (power measured how), Geo (where they sit), His (when founded, why)
Questions: How is time measured? What major events have occurred? The present is the product of what past?
Includes:
Cross‑ref: Every other module (history explains the present)
Questions: Who lives here? How do they differ? Biological & cultural traits?
Includes:
Cross‑ref: CP (abilities tied to power system), Geo (where they live), Cul (their culture)
Questions: What in this world has value, power, or symbolic meaning?
Includes:
Cross‑ref: CP (which power source used), His (origins), SF (who currently holds them)
Questions: How do people live? What do they believe? What is forbidden?
Includes:
Cross‑ref: Every other module (culture is the lens through which everything is viewed)
Before generating, ask the user 3–5 questions (if unclear). One question at a time, short answer expected:
Output Phase 1: One clarified premise paragraph, placed as the lorebook’s header.
Generate 5–15 entries per module. Suggested scale:
Each entry format:
### [Module.Key.Entry#] Entry Title
Description (2–5 paragraphs, encyclopedic style, no prose, no POV).
**Cross‑ref:** [Module.Key.Entry#], [Module.Key.Entry#], …
**Hook:** (if any) — 1 open question tied to entry — status: [OPEN]
**Status:** established / debated / myth / unknown
After generation, run a pass:
Power Balance Checklist:
Resource Checklist:
Geography Checklist:
History Checklist:
Species Checklist:
If inconsistencies found → record in the ## 10. Gap Analysis section for the user to decide, NEVER auto‑fix during generation.
Review the entire bible, count hooks. If under 12–20, forcefully inject more. Hooks come in 4 types:
| Type | Definition | Example |
|---|---|---|
| Ancient Mystery | Event / object / area from ancient times still unknown | A martial sect 10,000 years ago vanished without trace |
| Active Conflict | Two sides haven’t fought yet but are about to, or are in cold war | Empire B is waiting for Empire A to weaken |
| Secret | Someone knows a truth the majority does not | The 3rd prince is not of royal blood |
| Forbidden Place | A location no one dares enter | Valley X — those who enter never return |
Each hook is attached to at least one entry. Default state on creation: [OPEN].
Hook Lifecycle:
[OPEN] — no answer yet, feeds the plot[ACTIVE] — outline has exploited but not fully resolved[RESOLVED: Chapter X] — answered in outline; archive after Update ModeFinally, create the ## 10. Gap Analysis section:
## 10. Gap Analysis
### Points the user needs to supplement
- [Question 1] — left blank for user input
- [Question 2] — …
### Points potentially needing expansion later
- [Module.Entry#] — reason for expansion
### Inconsistencies detected
- [Description of contradiction] — suggested fix
Trigger: After every 5–10 chapters of Outline completed, or when the user requests a lorebook update.
Mandatory input: Outline Delta — what actually happened in the new chapters (canon already written, not future plans). If the user provides no Outline Delta → STOP, require it before proceeding.
Promote into the lorebook when:
Do NOT promote when:
vn‑lorefilter to handle in‑scene)Anti‑Bloat:
## Archive — do not delete (for future reference)Review existing entries, update Status:
established → resolved if the plot point has concluded in the outlinemyth → debated or established if the outline confirmed/refutedunknown → established if the outline has revealed[RESOLVED: Chapter X], move to Archive[OPEN][OPEN] + [ACTIVE] hooks. If total < 12 → inject new hooks before finishing Phase 6.Maintain the ## S. Character State section in the lorebook. vn‑outline reads this section to simulate characters in subsequent chapters.
Format per character:
### [S.CharacterName] — Updated Chapter [X]
**Location:** [current location]
**State:** [one line summarizing the most important mental/physical state]
**Key Relationships:** [CharA: friendly/hostile/ambiguous], [CharB: …]
**Secrets Held:** [if any — brief]
**Current Goal:** [brief]
After promoting and updating, re‑run the Phase 3 Checklist on the added/modified parts. If inconsistencies found → record in Gap Analysis, NEVER auto‑fix.
Append to ## Changelog at the end of each Update Mode:
### Update Chapter [X–Y]
- New entries: [list]
- Status changes: [entry: old → new]
- Hooks closed: [hook name] → RESOLVED Chapter [X]
- New hooks: [hook name] → OPEN
- Hooks remaining open: [count]
- Character state: [character names updated]
A single markdown file, named lorebook‑[story‑name].md. Structure:
# World Bible: [Story Name]
## 0. Premise
[One clarified premise paragraph]
## 1. Cosmology & Power (CP)
### [CP.1] Entry Title
…
## 2. Geography & Environment (Geo)
…
## 3. Societies & Factions (SF)
…
## 4. History & Time (His)
…
## 5. Species & Beings (SB)
…
## 6. Knowledge & Artifacts (KA)
…
## 7. Culture & Taboo (Cul)
…
## 8. Cross‑Reference Matrix
[Summary table of cross‑refs — which entry links to which]
## 9. Hook & Mystery Registry
### [OPEN] Ancient Mystery
- [Hook 1] — attached to [Module.X]
### [OPEN] Active Conflict
- [Hook 2] — attached to [Module.X]
### [OPEN] Secret
- [Hook 3] — attached to [Module.X]
### [OPEN] Forbidden Place
- [Hook 4] — attached to [Module.X]
### [RESOLVED] Archive
[Resolved hooks — recorded for reference]
## 10. Gap Analysis
[Points user needs to supplement, expansion points, inconsistencies]
## S. Character State
[Updated by Update Mode — vn‑outline reads this section]
## Changelog
[Updated by Update Mode]
## Quick Index
[List of entries by module]
A novice writer (especially dev/AI background) often forgets:
BUILD MODE → Core idea → 7 modules → 3000‑10000 words → wiki style
UPDATE MODE → Outline delta → promote canon → close hooks → update character state
LOREBOOK → World bible is reference + living state, NOT prose
MODULE → 7 modules, universal framework, no genre preset
CROSS‑REF → [Module.X] format, each entry links 1‑3 others
HOOK LIFECYCLE → [OPEN] → [ACTIVE] → [RESOLVED]; maintain ≥12 open hooks
DUMP IS THE POINT → Build Mode: the denser the better
EXTERNAL → Encyclopedic style, no POV, no sensory
CONSISTENCY → Power / Resource / Geography / History / Species
GAP → Inconsistencies recorded in Gap Analysis, left for user
### [CP.3] Cultivation Realm System: Luyện Khí → Hóa Thần
The cultivation system comprises 5 main realms: Luyện Khí, Trúc Cơ, Kim Đan,
Nguyên Anh, Hóa Thần. Breaking through each realm requires:
- Corresponding cultivation method (lower‑realm methods cannot advance to higher realms)
- Breakthrough resources (pills, heavenly treasures, opportunities)
- One heavenly tribulation from Kim Đan upward
**Hard limits:**
- No Hóa Thần lives beyond 3,000 years
- A Hóa Thần fight affects a 100‑mile radius (populated areas must evacuate)
- No Hóa Thần joins a sect younger than 10,000 years — unwritten rule
**Cross‑ref:** [Geo.5] Spirit vein distribution, [KA.2] Peak‑level cultivation methods,
[SF.3] The three top powers each have at least one Hóa Thần, [His.4] The Great Hóa Thần
War 1,200 years ago — reason for the current low number of Hóa Thần.
**Hook:** Does the realm beyond Hóa Thần (“Luyện Hư”) truly exist? Ancestors from
10,000 years ago mentioned it but no one has seen anyone reach it. [His.7] — [OPEN]
**Status:** established