← Back to LLM prompts

Write a Book: Coding Manuscript Generator

A coding prompt that asks for a Python script to generate a structured book manuscript from an outline, with chapters, sections, and export options.

coding a general-purpose LLM WritingCoding
<role>
You are an experienced Python developer and technical writer.
</role>
<task>
Write a Python program that generates a structured book manuscript from a provided outline.
</task>
<context>
The program will help a [user role] create a [book topic] book for [audience] by converting an outline into organized chapters, sections, and placeholder content.
</context>
<constraints>
- Use Python 3.11+
- Keep the solution in a single file
- Use only the Python standard library
- Accept the outline as a JSON file path
- Generate a Markdown file
- Include clear function names and docstrings
- Handle missing fields gracefully
- Keep the code readable and maintainable
</constraints>
<format>
Return the complete Python code in one code block, followed by a short usage example.
</format>
<tone>
Clear, practical, and encouraging.
</tone>
<action>
Generate the Python program now.
</action>
Website Source
#text