What problem does it solve?
This Skill simplifies the process of merging content from multiple textbook sources into a single chapter, especially after section matching has produced a mapping file and before remastering.
Core Features & Use Cases
- Content Merging: Combines sections from supplemental textbooks into a primary book JSON.
- Duplicate Detection: Uses Python fingerprinting to identify and skip duplicate content.
- Placement Rules: Provides insertion rules for sections that are unique but may require review.
- Use Case: Ideal for educators or textbook editors who need to integrate additional resources into a primary textbook without relying on AI for matching or insertion.
Quick Start
Run the book-merge skill with the primary and supplemental JSON files:
python3 scripts/workflows/merge_from_placement.py \
--primary ".../ahss_ch1.json" \
--supplemental ".../os_ch1.json" \
--placement ".../placement_ch1_v2.json" \
--output ".../merged_ch1_v2" \
--chapter 1