
Formatted Report
Produce a polished, print-ready PDF report from Markdown with DocBlocks — no hand-built HTML or browser print translator. Locks the audience, source facts, structure, and acceptance criteria first; writes the complete report as report.md; then converts, previews, and saves report.pdf in the project's artifacts drawer.
Steps
Entry step: outline. Each step names the specialist role it wants; the full working prompt is expandable.
- Outline the reportplannerentry
Lock the audience, source facts, section order, and acceptance criteria.
Show working prompt
Plan the report before writing it. 1. Identify the audience, the decision or takeaway the report must support, and every source file or user-provided fact the report may use. 2. Lock the section order: title block, executive summary, body sections, recommendations/conclusion, and appendix or references when needed. 3. For each body section, state its purpose and the facts, figures, or tables it must contain; never invent a missing metric. 4. Decide whether the user requested Letter or A4 pages. 5. Write a numbered acceptance checklist that includes source fidelity, complete section coverage, a stand-alone executive summary, captioned/referenced tables or figures, explicit recommendations, and a real saved PDF in the artifacts drawer. Write the outline and checklist to {{workPath}}/outline.md and call write_task_note with the audience, page size, and section count. Do not write HTML, CSS, or body prose. Store `{{workPath}}/outline.md` in the artifacts drawer with `write_artifact`, then verify it with `read_artifact`; do not write this working file to the workspace. Read an exact workspace DOCX, PPTX, PDF, or XLSX source with `read_doc_as_markdown`; use `read_file` for text or Markdown. Keep the original file path in citations. Never interpret binary bytes as text or substitute a similarly named file. - Write the Markdown reportcopywriter
Write the complete {{sourceOutputPath}} source to the locked outline.
Show working prompt
Write the complete report to {{sourceOutputPath}} as ordinary Markdown. Follow {{workPath}}/outline.md exactly: 1. Start with one H1 title and a short metadata block for author/date when known. 2. Write a concise executive summary that stands alone. 3. Write every body section in order with clear H2/H3 headings and real prose grounded only in the supplied sources. 4. Use Markdown tables for structured comparisons and Markdown images only for existing, workspace-readable assets; give every table or figure a caption and refer to it in the prose. 5. End with the explicit recommendations/conclusion and any references or appendix from the outline. 6. Check every acceptance criterion and repair the Markdown before advancing. Do not create report.html, CSS, OOXML, or PDF bytes yourself. Call write_task_note with the {{sourceOutputPath}} path, word count, and section count. Open `{{workPath}}/outline.md` from the artifacts drawer with `read_artifact` before working. - Publish the PDFcopywriter
Convert the approved source, inspect and preview it, and save the real binary deliverables with review evidence.
Show working prompt
Publish the approved Markdown as real binary files. 1. Call `list_roots` to identify the read-enabled workspace root and write-enabled artifacts root. If no write root exists, record the blocker. Read `{{workPath}}/outline.md` from the artifacts drawer with `read_artifact` and the approved `{{sourceOutputPath}}` from the workspace with `read_file`. 2. Call `convert_document` with source `{ "kind": "file", "rootId": <workspace root id>, "path": "{{sourceOutputPath}}" }` and `autoTemplates: true`. Use one PDF target with the Letter/A4 choice and title from the outline. Ordinary Markdown works with defaults; use discovery only to answer a specific style requirement. 3. Use each returned artifact URI with `inspect_document` and `preview_document`, passing source `{ "kind": "artifact", "uri": <returned URI> }`. Review content, tables, and any reported diagnostics; request at most four preview items at a time and paginate. Interpret `previewBasis` accurately. Office/PDF `reconstructed-import` previews show normalized content sections, not native pagination, fonts, clipping, or page breaks. Review all available sections with pagination and record this native-layout limit. Do not call these native page images or invent a native page count. An accurately disclosed preview limit alone does not fail content and saved-file checks. If content or source structure fails, write precise gaps to task notes and call `advance_task_step` with next `"write"`; do not edit the source during this publishing step. 4. Call `save_artifact` for `{{workPath}}/report.pdf` using the artifacts root and `ifExists: "error"`. For an existing output, inspect that saved file and use its `sourceSha256` as `expectedSha256` with `ifExists: "replace"`. Use only URIs returned by this session; reopen earlier saved binaries through file sources. Finally, write a task note with saved paths, hashes, available counts, diagnostics, preview basis, and review limits, then advance to evaluate. Never substitute HTML, renamed Markdown, or hand-written XML for the requested binary files. - Evaluatereviewer
Review saved-file integrity and content fidelity; document the limits of reconstructed or first-frame previews.
Show working prompt
Read `{{workPath}}/outline.md` from the artifacts drawer with `read_artifact` and the approved `{{sourceOutputPath}}` from the workspace with `read_file`. Read prior review/publishing evidence with `read_task_notes`. Call `list_roots` and reopen each saved binary in `{{workPath}}/report.pdf` with `inspect_document` and `preview_document`, using source `{ "kind": "file", "rootId": <artifacts root id>, "path": <saved path> }`. Artifact URIs from another session are not reusable. Confirm the binary opens, the supplied facts and requested content are preserved, section order and tables follow the approved source, and citations/next actions remain present. Interpret `previewBasis` accurately. Office/PDF `reconstructed-import` previews show normalized content sections, not native pagination, fonts, clipping, or page breaks. Review all available sections with pagination and record this native-layout limit. Do not call these native page images or invent a native page count. An accurately disclosed preview limit alone does not fail content and saved-file checks. Write PASS/FAIL per verifiable content and saved-file criterion, name exact gaps, and state any native-layout or playback property that remains unverified. If these checks pass, route to `finish`; for content/structure failures route to `write`; for conversion/save/copy failures with the source still approved route to `publish`. Never claim an unmet criterion passed. After three unproductive loops, record DONE_WITH_CONCERNS and the remaining gaps. On PASS, call `advance_task_step` with next: "finish". Use next: "write" only for an identified source-content failure, or next: "publish" for an identified conversion/save failure. - Finishcopywriter
Deliver the saved files with the recorded review evidence and limits.
Show working prompt
Read the review evidence with `read_task_notes`. Write a concise DONE summary naming the editable Markdown source `{{sourceOutputPath}}` and the saved deliverables `{{workPath}}/report.pdf`. Include available native counts and the preview basis, and carry forward any native-layout or playback properties that remain unverified. Do not open binary files with `read_artifact` or claim an unavailable check passed.
Triggers
Phrases that suggest this craftbook to a crew.
- formatted report
- make a pdf report
- create a pdf
- export this report to pdf
- quarterly report
- printable document
- report with cover page
Toolsets
- [object Object]
Source
View this craftbook on GitHub · MIT license