一键导入
bookstrap-edit-path
Execute editing workflow orchestration - reviews and polishes completed sections
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute editing workflow orchestration - reviews and polishes completed sections
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Outline creation patterns for fiction and nonfiction book structures, including chapter breakdowns, scene planning, and narrative arc mapping.
Grounded prose composition workflow including pre-write queries, consistency checks, and post-write entity extraction for database-backed writing.
Run editing passes over completed sections for voice consistency, timeline verification, contradiction flagging, and citation coverage
Load research corpus into the database by processing files, directories, or URLs through semantic chunking, embedding generation, entity extraction, and relationship building
Analyze BRD and existing corpus to identify knowledge gaps, then generate prioritized research tasks for filling those gaps
Generate writing tasks from BRD structure and corpus, creating chapter/section tasks with dependencies, pre-write queries, and consistency checks
| name | bookstrap-edit-path |
| description | Execute editing workflow orchestration - reviews and polishes completed sections |
| invoke | skill |
| category | orchestration |
Execute the editing workflow end-to-end, reviewing and polishing completed sections.
This orchestrator command:
/bookstrap-edit-path
/bookstrap-edit-path --chapter 3
/bookstrap-edit-path --mode standard
/bookstrap-edit-path --apply-fixes
/bookstrap-edit-path --section section_123
SELECT * FROM section
WHERE status = 'draft'
ORDER BY sequence ASC;
Or for specific chapter:
SELECT * FROM section
WHERE status = 'draft'
AND chapter = $chapter
ORDER BY sequence ASC;
from scripts.editor_methods import EditorMethods
violations = editor.timeline_consistency_check(chapter)
# Returns:
# {
# 'character_state': [...],
# 'location_introduction': [...],
# 'event_sequence': [...],
# 'character_relationships': [...]
# }
brd_voice = extract_voice_requirements('BRD.md')
voice_issues = editor.voice_consistency_check(
section_ids,
brd_voice
)
citation_issues = editor.citation_verification(
chapter=chapter,
min_citations_per_1000_words=2
)
# Returns:
# {
# 'uncited_sections': [...],
# 'weak_coverage': [...],
# 'low_reliability_sources': [...],
# 'conflicting_info': [...]
# }
report = editor.generate_edit_report(
chapter=chapter,
output_file=f'logs/edit-report-chapter-{chapter}.md'
)
Report includes:
If --apply-fixes flag set, automatically apply objective fixes:
DO NOT auto-fix:
After review (and optional fixes):
UPDATE section:[id] SET
status = 'edited',
edited_at = time::now(),
edit_report = $report_path;
EDIT PATH COMPLETE
==================
Chapter: [number]
Sections reviewed: [count]
Total words: [count]
ISSUES FOUND
------------
Critical: [count]
- Timeline violations: [count]
- Uncited sections: [count]
Warnings: [count]
- Voice inconsistencies: [count]
- Weak citations: [count]
- Low reliability sources: [count]
Suggestions: [count]
- Pacing improvements: [count]
- Character development: [count]
EDIT REPORT
-----------
Saved to: logs/edit-report-chapter-[N].md
NEXT STEPS
----------
1. Review edit report for critical issues
2. Fix timeline violations manually
3. Add missing citations
4. Run /bookstrap-edit-path --chapter [N] again to verify fixes
5. When satisfied, run /bookstrap-export-chapter [N]
If consistency queries fail:
If BRD.md cannot be loaded:
If no draft sections found:
/bookstrap-write-path firstRespects settings from bookstrap.config.json:
{
"orchestration": {
"edit_path": {
"default_mode": "standard",
"auto_apply_fixes": false,
"require_brd": true,
"min_citation_density": 2.0,
"save_reports": true,
"report_directory": "logs/editorial"
}
}
}
Starting edit path orchestration (standard mode)...
Loading BRD requirements...
Found voice requirements: conversational tone, third-person past tense
Reviewing Chapter 3 (5 sections, 6,234 words)
Running consistency checks...
├─ Timeline consistency... 2 violations found
├─ Voice consistency... 1 section flagged
├─ Citation verification... 1 uncited section, 2 weak coverage
└─ Checks complete
Generating edit report...
Report saved to: logs/edit-report-chapter-3.md
EDIT PATH COMPLETE
==================
Chapter: 3
Sections reviewed: 5
Total words: 6,234
ISSUES FOUND
------------
Critical: 3
- Timeline violations: 2
* Section 3.3: Character Erik appears but died in previous chapter
* Section 3.4: Location used before introduction
- Uncited sections: 1
* Section 3.5: No source citations
Warnings: 3
- Voice inconsistencies: 1
* Section 3.2: Tone shifts from conversational to academic
- Weak citations: 2
* Section 3.1: Only 1.2 citations per 1000 words
* Section 3.3: Only 1.5 citations per 1000 words
Suggestions: 0
CRITICAL FIXES NEEDED
---------------------
1. Section 3.3: Remove Erik or adjust death sequence
Query: UPDATE character:erik SET death_sequence = 16;
2. Section 3.4: Add location introduction earlier
Suggestion: Introduce location in Section 2.4
3. Section 3.5: Add source citations
Recommendation: Run /bookstrap-query to find relevant sources
NEXT STEPS
----------
1. Fix critical timeline issues (see edit report)
2. Add citations to Section 3.5
3. Review voice inconsistency in Section 3.2
4. Re-run /bookstrap-edit-path --chapter 3 to verify fixes
5. When clean, export with /bookstrap-export-chapter 3
EDIT REPORT DETAILS
-------------------
Full report: logs/edit-report-chapter-3.md
/bookstrap-write-path - Complete sections to review/bookstrap-status - Check which sections are ready for editing/bookstrap-query to find sources for citations/bookstrap-edit-path to verify fixes/bookstrap-export-chapter - Export polished chapter/bookstrap-export-book - Export entire manuscript# Review all draft sections
/bookstrap-edit-path --mode quick
# Fix critical issues manually
# Full review
/bookstrap-edit-path --mode standard
# After fixing critical issues
/bookstrap-edit-path --mode standard
# Verify fixes
# Apply final polish
# Deep edit for publication
/bookstrap-edit-path --mode deep
# Review edit report carefully
# Apply all suggestions
# Re-run until clean
This orchestrator is implemented as a skill that:
editor_methods.py for all checksThe orchestrator does NOT make subjective edits - it provides actionable feedback.