Skip to main content
Classification: Technical Standard & Transferable Knowledge Base Target Audience: Lead Architects, DevOps/SRE Engineers, and Autonomous AI Coding Assistants Standard: Terminal & Cloud Technical Book Standard (DSOM Rule 11 & Rule 22) Author & Lead Consultant: Harisfazillah Jamel (LinuxMalaysia) Compiled By: Antigravity Cognitive Digital Twin

1. Executive Overview & Transferability Mandate

Modern software, DevOps, and infrastructure projects frequently suffer from fragmented documentation. Architectural intent is split across READMEs, tribal chat logs, wiki pages, runbooks, and inline source code comments. When teams need to present their systems for audits, client handovers, team onboarding, or management reviews, they lack a single, authoritative, publication-grade volume. This guide provides a 100% transferable blueprint that enables any engineering repository—whether built on Ansible, Terraform, Kubernetes, Python, Go, or Cloud Native architectures—to synthesize its entire codebase and documentation into a cohesive, print-optimized technical book (PDF, interactive HTML, and EPUB 3).

What This Blueprint Provides:

  1. The Prompt Transformation Matrix: All conversational prompts typically asked by human leads, rewritten into high-fidelity, optimized master prompts that any AI agent can execute without ambiguity.
  2. The 6-Phase Engineering Pipeline: Discovery, visual modeling, Diataxis ingestion, narrative storytelling, print formatting, and multi-format compilation.
  3. The 17 Core Compilation Invariants: Solutions to every major compilation hurdle (syntax crashes, dark container ink waste, missing covers, unrendered Mermaid blocks, unparsed callout alerts, and browser process timeouts).
  4. Drop-in Reusable Skill Specification: An autonomous skill definition that can be copied directly into .agents/skills/ of any target repository.

2. The Prompt Transformation Matrix: From Conversational Ask to Production AI Master Prompts

When humans communicate with AI assistants during technical book compilation, their initial requests are often short and intuitive. However, generic AI assistants often misinterpret these asks—generating dark code blocks, omitting cover pages, hardcoding narrative text into compiler scripts, or failing to render diagrams. Below is the complete Before & After Matrix, translating conversational requests into robust, constraint-enforced AI master prompts.

Prompt 1: Project Discovery & Architectural Modeling

Conversational Human Ask:

“I need you to produce a book for this project. Start with understanding the project by understanding the ansible playbook and documents that can be related to the ansible playbook. Make sure we have diagram of flow of works and flow of how ansible work.”

Production-Grade AI Master Prompt:


Prompt 2: Resolving Diagram Failures (Mermaid to Native SVG)

Conversational Human Ask:

“The diagram is not showing in the book.”

Production-Grade AI Master Prompt:


Prompt 3: Diátaxis Documentation Enrichment & Ingestion

Conversational Human Ask:

“Add into our books, content from md documents that is related to each of our ansible playbooks. Enrich our book.”

Production-Grade AI Master Prompt:


Prompt 4: The Narrative Epic (Heart, Soul, and Sovereign Blood)

Conversational Human Ask:

“I need a chapter that’s like a story, all about this project and infra from start to end, how it can be built, deployed, and operated. Highlight the use of ansible + semaphoreui + gitea as GitOps, and AIOps with human in the loop. Add about deep state of mind (DSOM) of My AI as the AI memory and brain. This chapter is not technical; it is about the heart, soul, and blood of this project.”

Production-Grade AI Master Prompt:


Prompt 5: Clean Architecture Separation (Standalone Markdown Document)

Conversational Human Ask:

“I need the story to be in its own md file.”

Production-Grade AI Master Prompt:


Prompt 6: Print-Optimized Formatting Restoration (Zero Toner Waste & Cover Injection)

Conversational Human Ask:

“What happened to my book? We lost the formatting. No cover, black background? That needs to be checked again.”

Production-Grade AI Master Prompt:


3. The 17 Non-Negotiable Technical Book Compilation Invariants

Any automated compilation pipeline must adhere to these 17 strict invariants:

4. Reusable Project Book Assembler Template (tools/build_project_book.py)

Below is the clean, modular Python assembler that can be copied directly into any repository:

5. Standalone Reusable Skill Specification (project-technical-book-compiler)

To adopt this capability in another repository, copy the specification below into .agents/skills/project-technical-book-compiler/SKILL.md:

2. Compile Standalone Interactive HTML (Pandoc 3.x)

3. Bake Native Vector SVGs & Inline Theme CSS

4. Compile Publication-Grade PDF (Headless Chromium / Edge)

5. Compile EPUB 3 Ebook