Loading...
Loading...
Automatically activates before chapter writing, enforces a 9-item mandatory file checklist - Prevents AI focus degradation in long novels by ensuring all context is loaded before each writing session
npx skill4agent add wordflowlab/novelweave pre-write-checklist/write📋 Mandatory Pre-Writing Checklist (Must Complete):
✓ 1. memory/constitution.md - Writing Constitution
✓ 2. memory/style-reference.md - Style Reference (if applicable)
✓ 3. stories/_/specification.md - Story Specification
✓ 4. stories/_/creative-plan.md - Creative Plan
✓ 5. stories/\*/tasks.md - Current Tasks
✓ 6. spec/tracking/character-state.json - Character State
✓ 7. spec/tracking/relationships.json - Relationship Network
✓ 8. spec/tracking/plot-tracker.json - Plot Tracker (if applicable)
✓ 9. spec/tracking/validation-rules.json - Validation Rules (if applicable)
📊 Context Loading Status: ✅ Completed/writeUser: /write Chapter 10
↓
[pre-write-checklist activates automatically]
↓
Step 1: Read memory/constitution.md
Step 2: Read memory/style-reference.md (if exists)
Step 3: Read stories/*/specification.md
Step 4: Read stories/*/creative-plan.md
Step 5: Read stories/*/tasks.md
Step 6: Read spec/tracking/character-state.json
Step 7: Read spec/tracking/relationships.json
Step 8: Read spec/tracking/plot-tracker.json (if exists)
Step 9: Read spec/tracking/validation-rules.json (if exists)
↓
Output Confirmation:
📋 Mandatory Pre-Writing Checklist (Completed):
✓ All 9 files have been read
📊 Context Loading Status: ✅ Completed
Key Information Summary:
- Writing Principles: [Extracted from constitution]
- Current Tasks: [Extracted from tasks.md]
- Main Characters: [Extracted from character-state]
- Plot Progress: [Extracted from plot-tracker]
↓
Start writing Chapter 10...📋 Mandatory Pre-Writing Checklist (Completed):
✓ 1. memory/constitution.md - Writing Constitution
→ Core Principles: [List 2-3 key principles]
✓ 2. memory/style-reference.md - Style Reference
→ Style Key Points: [Extract key style requirements]
✓ 3. stories/xxx/specification.md - Story Specification
→ Story Genre: [Romance/Suspense/History, etc.]
→ P0 Elements: [Mandatory elements to include]
✓ 4. stories/xxx/creative-plan.md - Creative Plan
→ Current Phase: [Volume X/Chapter X]
→ Chapter Goal: [Plot/Emotional Goal]
✓ 5. stories/xxx/tasks.md - Current Tasks
→ Chapter to Write: [Chapter X]
→ Task Status: [pending/in_progress]
✓ 6. spec/tracking/character-state.json - Character State
→ Main Characters: [List character names and current states]
✓ 7. spec/tracking/relationships.json - Relationship Network
→ Core Relationships: [Relationship changes between protagonist and others]
✓ 8. spec/tracking/plot-tracker.json - Plot Tracker
→ Active Plot Threads: [Current ongoing plot lines]
✓ 9. spec/tracking/validation-rules.json - Validation Rules
→ Auto-Fix: [Enabled/Disabled]
📊 Context Loading Status: ✅ Completed (Loaded 9 files, approximately XXXX tokens)
🎯 Ready to write Chapter X...📋 Mandatory Pre-Writing Checklist (Partially Completed):
✓ 1. memory/constitution.md - Writing Constitution
✓ 2. ⚠️ memory/style-reference.md - Does not exist (optional file, skipped)
✓ 3. stories/xxx/specification.md - Story Specification
✓ 4. stories/xxx/creative-plan.md - Creative Plan
✓ 5. stories/xxx/tasks.md - Current Tasks
✓ 6. spec/tracking/character-state.json - Character State
✓ 7. spec/tracking/relationships.json - Relationship Network
✓ 8. ⚠️ spec/tracking/plot-tracker.json - Does not exist (optional file, skipped)
✓ 9. ⚠️ spec/tracking/validation-rules.json - Does not exist (optional file, skipped)
📊 Context Loading Status: ✅ Completed (Loaded 6 mandatory files + 0 optional files)
💡 Recommendation: Run `/track-init` to initialize the complete tracking system📋 Mandatory Pre-Writing Checklist (Failed):
✓ 1. memory/constitution.md - Writing Constitution
✓ 2. memory/style-reference.md - Style Reference
❌ 3. stories/xxx/specification.md - **File does not exist**
❌ 4. stories/xxx/creative-plan.md - **File does not exist**
❌ 5. stories/xxx/tasks.md - **File does not exist**
⛔ Error: Missing mandatory files, cannot continue writing
Must complete the following first:
1. Run `/constitution` to create a Writing Constitution
2. Run `/specify` to define story specifications
3. Run `/plan` to develop a creative plan
4. Run `/tasks` to break down the task list
Then you can execute `/write`
This is the recommended workflow of the seven-step methodology./writeExecution Order:
1. pre-write-checklist (this Skill) → Read all files
2. Output confirmation report
3. Check setting-detector → Whether to activate knowledge base
4. Start actual writing/analyzeEnsure complete context before analysis:
1. pre-write-checklist → Reload all files
2. Execute analysis based on the latest status/trackUpdate Workflow:
1. User modifies tracking files
2. Run `/track` to update
3. pre-write-checklist → Re-read and validate1. memory/constitution.md - Writing Principles
3. stories/*/specification.md - Story Specifications
4. stories/*/creative-plan.md - Creative Plan
5. stories/*/tasks.md - Current Tasks
6. spec/tracking/character-state.json - Character State
7. spec/tracking/relationships.json - Relationship Network2. memory/style-reference.md - Style Reference
8. spec/tracking/plot-tracker.json - Plot Tracker
9. spec/tracking/validation-rules.json - Validation RulesWriting Chapter 1:
- AI remembers all settings
- High quality
Writing Chapter 10:
- Conversation has become very long
- AI starts to forget Chapter 1 settings
Writing Chapter 30:
- Completely forgets early settings
- Character personalities deviate
- Plot contradicts itselfBefore each writing session:
- Mandatory re-reading of all core files
- Reload complete context
- Treat Chapter 30 like Chapter 1
Results:
- Quality of Chapter 30 ≈ Quality of Chapter 1
- Consistency maintained
- No more focus degradation| Comparison Dimension | Without Checklist | With Checklist |
|---|---|---|
| Chapters 1-10 | ✓ High quality | ✓ High quality |
| Chapters 11-30 | ⚠️ Starts to be unstable | ✓ Remains stable |
| Chapters 31-50 | ❌ Obvious focus degradation | ✓ Still stable |
| Chapters 51+ | ❌ Severe focus degradation | ✓ Long-term stability |
"Use strict checklist mode"
→ Blocks writing if mandatory files are missing"Use lenient checklist mode"
→ Allows skipping some files (not recommended, may cause focus degradation)"Please add the following to the checklist:
- spec/knowledge/worldbuilding/magic-system.md
- spec/knowledge/characters/protagonist-profile.md"Additional token cost per writing session:
Reading 9 files:
- constitution.md: ~200 tokens
- specification.md: ~500 tokens
- creative-plan.md: ~300 tokens
- tasks.md: ~150 tokens
- character-state.json: ~200 tokens
- relationships.json: ~150 tokens
- Others: ~200 tokens
Total: Approximately 1700 tokens per writing session
Benefits:
- Avoids rewrites caused by focus degradation (saves tens of thousands of tokens)
- Maintains consistent quality (user satisfaction)
- Sustainability of long-form projectsWithin the same writing session:
1st writing: Read all files (1700 tokens)
2nd writing (within 1 hour): Check if files have been modified
- Not modified: Use cache (0 tokens)
- Modified: Re-read (partial tokens)"Skip checklist and write directly"
→ AI will warn: "Not recommended, may cause focus degradation"
→ But will respect your choicepre-write-checklist:
- Loads project-specific files (your story data)
setting-detector:
- Loads general knowledge bases (genre conventions, writing techniques)
Combined = Complete context:
Your story settings + genre expertiseChallenges of long novels:
- More complex settings
- More characters
- More plot threads
- AI is more likely to forget
Role of the checklist:
- Ensures Chapter 100 has the same quality as Chapter 1
- Prevents sudden character personality changes
- Prevents plot contradictions
This is the cornerstone of quality assurance for long novels.✓ Character state changes → Update character-state.json
✓ Relationship changes → Update relationships.json
✓ New plot threads → Update plot-tracker.json/trackRecommended frequency: Run `/track` every 5-10 chapters
Purpose:
- Update tracking files
- Validate consistency
- Detect potential issuesIf you manually modify key files:
"Please re-execute the checklist to reload all files"
Ensure the AI sees the latest status.pre-write-checklist (before writing):
- Loads all context
- Prepares for writing
consistency-checker (during/after writing):
- Monitors consistency
- Detects contradictionsPriority Order (Most Important First):
1. constitution (highest principles)
2. specification (story core)
3. creative-plan (technical plan)
4. tasks (current tasks)
5. character-state (character data)
6. relationships (relationship data)
7. plot-tracker (plot tracking)
8. validation-rules (validation rules)
9. style-reference (style reference)File does not exist:
→ Mandatory files: Blocks writing, prompts creation
→ Optional files: Warns, allows continuation
File format error:
→ JSON parsing failed: Display error, recommend fixing
→ Markdown format issue: Try to read as much as possible, mark the problem
File too large:
→ Exceeds 10000 lines: Warns (may affect performance)
→ Recommend splitting the file