Generate SAP body content chapter by chapter. Generating everything in a single pass is strictly prohibited.
Core principles: generate chapter by chapter, write to file and forget
For detailed orchestration, see scripts/generate_by_chapter.py
Prompts (routed by content_type, not dependent on fixed chapter numbers)
- prompts/system.md — shared System Prompt (writing conventions, few-shot examples, prohibitions)
- prompts/estimand.md — content_type: estimand / endpoint_objectives
- prompts/primary_analysis.md — content_type: primary_analysis
- prompts/secondary_analysis.md — content_type: secondary_analysis
- prompts/sensitivity.md — content_type: sensitivity_analysis / general_considerations
- prompts/safety.md — content_type: safety_analysis
- prompts/multiplicity.md — content_type: multiplicity / hypothesis_testing
Scripts
- scripts/post_process.py — post-processing (endpoint name validation, AI marker collection)