zcode-app-cli 3.3.5-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +642 -0
  3. package/bin/zcode.js +848 -0
  4. package/config.example.json +110 -0
  5. package/package.json +81 -0
  6. package/vendor/.node-bundle-meta.json +6 -0
  7. package/vendor/extraction.json +11 -0
  8. package/vendor/node_modules/@zcode/tui/dist/index.js +161875 -0
  9. package/vendor/node_modules/@zcode/tui/package.json +14 -0
  10. package/vendor/packages/android-emulator-plugin/.mcp.json +19 -0
  11. package/vendor/packages/android-emulator-plugin/.zcode-plugin/plugin.json +63 -0
  12. package/vendor/packages/android-emulator-plugin/README.md +134 -0
  13. package/vendor/packages/android-emulator-plugin/commands/android-dev.md +11 -0
  14. package/vendor/packages/android-emulator-plugin/dist/lib/path.d.ts +4 -0
  15. package/vendor/packages/android-emulator-plugin/dist/lib/path.js +17 -0
  16. package/vendor/packages/android-emulator-plugin/dist/lib/result.d.ts +5 -0
  17. package/vendor/packages/android-emulator-plugin/dist/lib/result.js +22 -0
  18. package/vendor/packages/android-emulator-plugin/dist/lib/run.d.ts +18 -0
  19. package/vendor/packages/android-emulator-plugin/dist/lib/run.js +99 -0
  20. package/vendor/packages/android-emulator-plugin/dist/mcp/server.d.ts +3 -0
  21. package/vendor/packages/android-emulator-plugin/dist/mcp/server.js +47607 -0
  22. package/vendor/packages/android-emulator-plugin/dist/providers/app.d.ts +39 -0
  23. package/vendor/packages/android-emulator-plugin/dist/providers/app.js +50 -0
  24. package/vendor/packages/android-emulator-plugin/dist/providers/avd.d.ts +37 -0
  25. package/vendor/packages/android-emulator-plugin/dist/providers/avd.js +185 -0
  26. package/vendor/packages/android-emulator-plugin/dist/providers/build.d.ts +68 -0
  27. package/vendor/packages/android-emulator-plugin/dist/providers/build.js +131 -0
  28. package/vendor/packages/android-emulator-plugin/dist/providers/config.d.ts +7 -0
  29. package/vendor/packages/android-emulator-plugin/dist/providers/config.js +29 -0
  30. package/vendor/packages/android-emulator-plugin/dist/providers/device.d.ts +20 -0
  31. package/vendor/packages/android-emulator-plugin/dist/providers/device.js +91 -0
  32. package/vendor/packages/android-emulator-plugin/dist/providers/logs.d.ts +15 -0
  33. package/vendor/packages/android-emulator-plugin/dist/providers/logs.js +31 -0
  34. package/vendor/packages/android-emulator-plugin/dist/providers/preflight.d.ts +15 -0
  35. package/vendor/packages/android-emulator-plugin/dist/providers/preflight.js +123 -0
  36. package/vendor/packages/android-emulator-plugin/dist/providers/project-template.d.ts +13 -0
  37. package/vendor/packages/android-emulator-plugin/dist/providers/project-template.js +211 -0
  38. package/vendor/packages/android-emulator-plugin/dist/providers/project.d.ts +33 -0
  39. package/vendor/packages/android-emulator-plugin/dist/providers/project.js +195 -0
  40. package/vendor/packages/android-emulator-plugin/dist/providers/screenshot.d.ts +14 -0
  41. package/vendor/packages/android-emulator-plugin/dist/providers/screenshot.js +73 -0
  42. package/vendor/packages/android-emulator-plugin/dist/providers/sdk.d.ts +14 -0
  43. package/vendor/packages/android-emulator-plugin/dist/providers/sdk.js +185 -0
  44. package/vendor/packages/android-emulator-plugin/dist/providers/ui.d.ts +92 -0
  45. package/vendor/packages/android-emulator-plugin/dist/providers/ui.js +146 -0
  46. package/vendor/packages/android-emulator-plugin/hooks/hooks.json +3 -0
  47. package/vendor/packages/android-emulator-plugin/package.json +35 -0
  48. package/vendor/packages/android-emulator-plugin/skills/android-dev/INSTALL_ENVIRONMENT.md +357 -0
  49. package/vendor/packages/android-emulator-plugin/skills/android-dev/SKILL.md +73 -0
  50. package/vendor/packages/android-emulator-plugin/templates/compose-app/README.md +5 -0
  51. package/vendor/packages/document-skills-plugin/.zcode-plugin/plugin.json +8 -0
  52. package/vendor/packages/document-skills-plugin/package.json +8 -0
  53. package/vendor/packages/document-skills-plugin/skills/docx/LICENSE.txt +13 -0
  54. package/vendor/packages/document-skills-plugin/skills/docx/SKILL.md +201 -0
  55. package/vendor/packages/document-skills-plugin/skills/docx/references/chart-templates.md +386 -0
  56. package/vendor/packages/document-skills-plugin/skills/docx/references/common-rules.md +419 -0
  57. package/vendor/packages/document-skills-plugin/skills/docx/references/decorations.md +537 -0
  58. package/vendor/packages/document-skills-plugin/skills/docx/references/design-system.md +1797 -0
  59. package/vendor/packages/document-skills-plugin/skills/docx/references/docx-js-advanced.md +257 -0
  60. package/vendor/packages/document-skills-plugin/skills/docx/references/docx-js-core.md +332 -0
  61. package/vendor/packages/document-skills-plugin/skills/docx/references/faq.md +323 -0
  62. package/vendor/packages/document-skills-plugin/skills/docx/references/math-formulas.md +276 -0
  63. package/vendor/packages/document-skills-plugin/skills/docx/references/ooxml.md +222 -0
  64. package/vendor/packages/document-skills-plugin/skills/docx/references/toc.md +264 -0
  65. package/vendor/packages/document-skills-plugin/skills/docx/routes/comment.md +88 -0
  66. package/vendor/packages/document-skills-plugin/skills/docx/routes/create.md +207 -0
  67. package/vendor/packages/document-skills-plugin/skills/docx/routes/edit.md +115 -0
  68. package/vendor/packages/document-skills-plugin/skills/docx/routes/format.md +120 -0
  69. package/vendor/packages/document-skills-plugin/skills/docx/routes/read.md +114 -0
  70. package/vendor/packages/document-skills-plugin/skills/docx/scenes/academic.md +783 -0
  71. package/vendor/packages/document-skills-plugin/skills/docx/scenes/contract.md +463 -0
  72. package/vendor/packages/document-skills-plugin/skills/docx/scenes/copywriting.md +139 -0
  73. package/vendor/packages/document-skills-plugin/skills/docx/scenes/exam.md +698 -0
  74. package/vendor/packages/document-skills-plugin/skills/docx/scenes/official-doc.md +411 -0
  75. package/vendor/packages/document-skills-plugin/skills/docx/scenes/report.md +340 -0
  76. package/vendor/packages/document-skills-plugin/skills/docx/scenes/resume.md +534 -0
  77. package/vendor/packages/document-skills-plugin/skills/docx/scripts/__init__.py +1 -0
  78. package/vendor/packages/document-skills-plugin/skills/docx/scripts/add_toc_placeholders.py +749 -0
  79. package/vendor/packages/document-skills-plugin/skills/docx/scripts/document.py +1333 -0
  80. package/vendor/packages/document-skills-plugin/skills/docx/scripts/postcheck.py +807 -0
  81. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/comments.xml +3 -0
  82. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  83. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  84. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsIds.xml +3 -0
  85. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/people.xml +3 -0
  86. package/vendor/packages/document-skills-plugin/skills/docx/scripts/utilities.py +374 -0
  87. package/vendor/packages/document-skills-plugin/skills/docx/setup.sh +177 -0
  88. package/vendor/packages/document-skills-plugin/skills/pdf/LICENSE.txt +13 -0
  89. package/vendor/packages/document-skills-plugin/skills/pdf/SKILL.md +919 -0
  90. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/academic.md +1058 -0
  91. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/creative.md +770 -0
  92. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/poster.md +702 -0
  93. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process-advanced.md +284 -0
  94. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process.md +319 -0
  95. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/report.md +1659 -0
  96. package/vendor/packages/document-skills-plugin/skills/pdf/configs/components.md +153 -0
  97. package/vendor/packages/document-skills-plugin/skills/pdf/configs/fonts.md +93 -0
  98. package/vendor/packages/document-skills-plugin/skills/pdf/configs/visual_framework.md +263 -0
  99. package/vendor/packages/document-skills-plugin/skills/pdf/references/resume-academic.tex +130 -0
  100. package/vendor/packages/document-skills-plugin/skills/pdf/references/resume-altacv.tex +190 -0
  101. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/cover_validate.js +367 -0
  102. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/design_engine.py +2816 -0
  103. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2pdf-next.js +754 -0
  104. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2poster.js +256 -0
  105. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf.py +2959 -0
  106. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf_qa.py +901 -0
  107. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/poster_validate.py +1337 -0
  108. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/setup.sh +269 -0
  109. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/toc_validate.py +2075 -0
  110. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/charts.md +320 -0
  111. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover-backgrounds.md +384 -0
  112. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover.md +1442 -0
  113. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/fill-engine.md +527 -0
  114. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/geometry.md +142 -0
  115. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/overflow.md +630 -0
  116. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/pagination.md +367 -0
  117. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/palette.md +217 -0
  118. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/typography.md +20 -0
  119. package/vendor/packages/ios-simulator-plugin/.mcp.json +15 -0
  120. package/vendor/packages/ios-simulator-plugin/.zcode-plugin/plugin.json +34 -0
  121. package/vendor/packages/ios-simulator-plugin/README.md +111 -0
  122. package/vendor/packages/ios-simulator-plugin/commands/ios-dev.md +11 -0
  123. package/vendor/packages/ios-simulator-plugin/dist/lib/path.d.ts +4 -0
  124. package/vendor/packages/ios-simulator-plugin/dist/lib/path.js +18 -0
  125. package/vendor/packages/ios-simulator-plugin/dist/lib/result.d.ts +5 -0
  126. package/vendor/packages/ios-simulator-plugin/dist/lib/result.js +20 -0
  127. package/vendor/packages/ios-simulator-plugin/dist/lib/run.d.ts +17 -0
  128. package/vendor/packages/ios-simulator-plugin/dist/lib/run.js +83 -0
  129. package/vendor/packages/ios-simulator-plugin/dist/mcp/server.d.ts +3 -0
  130. package/vendor/packages/ios-simulator-plugin/dist/mcp/server.js +46833 -0
  131. package/vendor/packages/ios-simulator-plugin/dist/providers/build.d.ts +112 -0
  132. package/vendor/packages/ios-simulator-plugin/dist/providers/build.js +99 -0
  133. package/vendor/packages/ios-simulator-plugin/dist/providers/logs.d.ts +21 -0
  134. package/vendor/packages/ios-simulator-plugin/dist/providers/logs.js +26 -0
  135. package/vendor/packages/ios-simulator-plugin/dist/providers/preflight.d.ts +12 -0
  136. package/vendor/packages/ios-simulator-plugin/dist/providers/preflight.js +62 -0
  137. package/vendor/packages/ios-simulator-plugin/dist/providers/project.d.ts +35 -0
  138. package/vendor/packages/ios-simulator-plugin/dist/providers/project.js +288 -0
  139. package/vendor/packages/ios-simulator-plugin/dist/providers/screenshot.d.ts +22 -0
  140. package/vendor/packages/ios-simulator-plugin/dist/providers/screenshot.js +30 -0
  141. package/vendor/packages/ios-simulator-plugin/dist/providers/sim.d.ts +60 -0
  142. package/vendor/packages/ios-simulator-plugin/dist/providers/sim.js +116 -0
  143. package/vendor/packages/ios-simulator-plugin/dist/providers/ui.d.ts +57 -0
  144. package/vendor/packages/ios-simulator-plugin/dist/providers/ui.js +67 -0
  145. package/vendor/packages/ios-simulator-plugin/hooks/hooks.json +3 -0
  146. package/vendor/packages/ios-simulator-plugin/package.json +35 -0
  147. package/vendor/packages/ios-simulator-plugin/skills/ios-dev/SKILL.md +45 -0
  148. package/vendor/packages/ios-simulator-plugin/templates/swiftui-app/README.md +5 -0
  149. package/vendor/packages/restore-legacy-sessions-plugin/.zcode-plugin/plugin.json +9 -0
  150. package/vendor/packages/restore-legacy-sessions-plugin/README.md +35 -0
  151. package/vendor/packages/restore-legacy-sessions-plugin/commands/restore-legacy-sessions.md +11 -0
  152. package/vendor/packages/restore-legacy-sessions-plugin/package.json +8 -0
  153. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/SKILL.md +92 -0
  154. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/scripts/restore-conversation.mjs +648 -0
  155. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/scripts/scan-legacy-sessions.mjs +422 -0
  156. package/vendor/packages/skill-creator-plugin/.zcode-plugin/plugin.json +8 -0
  157. package/vendor/packages/skill-creator-plugin/package.json +8 -0
  158. package/vendor/packages/skill-creator-plugin/skills/skill-creator/SKILL.md +159 -0
  159. package/vendor/packages/zcode-guide-plugin/.zcode-plugin/plugin.json +8 -0
  160. package/vendor/packages/zcode-guide-plugin/README.md +22 -0
  161. package/vendor/packages/zcode-guide-plugin/package.json +8 -0
  162. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-commands/SKILL.md +66 -0
  163. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-hooks/SKILL.md +66 -0
  164. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-mcp/SKILL.md +97 -0
  165. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-plugins/SKILL.md +59 -0
  166. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-skills/SKILL.md +61 -0
  167. package/vendor/packages/zcode-guide-plugin/skills/zcode-configuration-guide/SKILL.md +99 -0
  168. package/vendor/zcode.cjs +2926 -0
  169. package/zcode-runtime.lock.json +8 -0
@@ -0,0 +1,340 @@
1
+ # Scene: Report / Proposal
2
+
3
+ ## Goal
4
+
5
+ Generate a complete, formal, well-structured report ready for Word delivery. Must simultaneously meet:
6
+ - Complete structure, clear logic, formal language, definitive conclusions
7
+ - Objective data presentation, proper Word formatting
8
+ - Ready for presentation, filing, review, submission, or internal communication
9
+
10
+ **Forbidden:** Producing outlines-only / summaries / template annotations / half-finished drafts; outputting chat-style explanations or filler phrases like "here is the report content".
11
+
12
+ → Font profile: **A (Formal)** — see `references/common-rules.md`
13
+ → Default layout: standard margins — see `references/common-rules.md`
14
+ → Placeholder convention — see `references/common-rules.md`
15
+ → Universal prohibitions & quality checks — see `references/common-rules.md`
16
+
17
+ ---
18
+
19
+ ## Report Type Routing
20
+
21
+ Auto-select structure and expression style based on user intent. If not explicit, infer from topic.
22
+
23
+ ```js
24
+ function selectReportType(keywords, topic) {
25
+ if (/analysis|competitor|industry|operations|data/.test(keywords)) return "analysis";
26
+ if (/experiment|lab|algorithm|engineering/.test(keywords)) return "experiment";
27
+ if (/test|QA|performance|security|compatibility/.test(keywords)) return "testing";
28
+ if (/survey|questionnaire|interview|market research/.test(keywords)) return "research";
29
+ if (/review|retrospective|post-mortem|summary/.test(keywords)) return "review";
30
+ if (/proposal|feasibility|implementation|optimization/.test(keywords)) return "proposal";
31
+ return "analysis"; // default
32
+ }
33
+ ```
34
+
35
+ ### 6 Report Types
36
+
37
+ | Type | Use Case | Structure Focus | Expression Focus |
38
+ |------|----------|----------------|-----------------|
39
+ | analysis | Industry/competitor/operations/data analysis | Background → Dimensions → Findings → Diagnosis → Recommendations | Conclusion-first, clear dimensions, chart-supported, actionable advice |
40
+ | experiment | Scientific/academic/algorithm/engineering experiments | Objective → Environment → Method → Results → Error → Conclusion | Precise process, clear conditions, objective results, conclusion ties to hypothesis |
41
+ | testing | Functional/performance/security/compatibility testing | Overview → Scope → Plan → Results → Defects → Risks → Conclusion | Data-driven, traceable, reproducible, supports go/no-go decisions |
42
+ | research | User/market/survey/interview research | Background → Subjects & Method → Sample → Findings → Synthesis → Recommendations | Clear sample boundaries, layered findings, recommendations match findings |
43
+ | review | Project/incident retrospective, phase summary | Goals → Review → Results → Issues → Lessons → Actions | Clear facts, restrained attribution, specific action items |
44
+ | proposal | Project/optimization proposal, feasibility study | Status → Goals → Solution → Roadmap → Resources → Risks → Benefits | Strong argumentation, executable plan, clear boundaries |
45
+
46
+ ---
47
+
48
+ ## Standard Template Structures
49
+
50
+ ### Template A: Analysis Report
51
+ 1. Executive Summary
52
+ 2. Background & Objectives
53
+ 3. Scope, Data Sources & Methodology
54
+ 4. Core Findings
55
+ 5. Problem Diagnosis & Root Cause
56
+ 6. Conclusions & Recommendations
57
+ 7. Appendices (if needed)
58
+
59
+ ### Template B: Experiment Report
60
+ 1. Abstract
61
+ 2. Objective & Hypothesis
62
+ 3. Environment & Materials
63
+ 4. Procedure & Method
64
+ 5. Data & Results
65
+ 6. Error Analysis & Discussion
66
+ 7. Conclusions
67
+ 8. Appendices (if needed)
68
+
69
+ ### Template C: Testing Report
70
+ 1. Test Overview
71
+ 2. Test Scope & Environment
72
+ 3. Test Plan & Case Design
73
+ 4. Test Results Summary
74
+ 5. Defect Analysis & Distribution
75
+ 6. Risk Assessment & Outstanding Issues
76
+ 7. Test Conclusions
77
+ 8. Appendices (if needed)
78
+
79
+ ### Template D: Research Report
80
+ 1. Research Summary
81
+ 2. Background & Objectives
82
+ 3. Subjects & Methodology
83
+ 4. Sample & Data Description
84
+ 5. Core Findings
85
+ 6. Problem Synthesis
86
+ 7. Recommendations & Action Direction
87
+ 8. Appendices (if needed)
88
+
89
+ ### Template E: Review / Summary Report
90
+ 1. Overview
91
+ 2. Goals & Scope
92
+ 3. Process Review
93
+ 4. Results Summary
94
+ 5. Issues & Root Cause Analysis
95
+ 6. Lessons Learned
96
+ 7. Follow-up Action Plan
97
+ 8. Appendices (if needed)
98
+
99
+ ### Template F: Proposal / Feasibility Report
100
+ 1. Executive Summary
101
+ 2. Current State & Problem Analysis
102
+ 3. Goals & Expected Outcomes
103
+ 4. Solution Design
104
+ 5. Implementation Roadmap & Milestones
105
+ 6. Resource Requirements & Budget
106
+ 7. Risk Analysis & Mitigation
107
+ 8. Expected Benefits & Evaluation
108
+ 9. Appendices (if needed)
109
+
110
+ **If the user provides a company/school/course template or fixed chapter requirements, always follow those first.**
111
+
112
+ ---
113
+
114
+ ## Input Recognition & Completion
115
+
116
+ ### User May Provide
117
+ Report topic, type, use case, audience, industry, length requirements, data sources, structure requirements, output purpose (presentation/filing/audit/review/external submission/coursework), template files, company/department/project/author/date, etc.
118
+
119
+ ### Processing Rules
120
+ 1. If the user provides a template, existing document, company standard, or format example, **always follow it first**
121
+ 2. If information is incomplete, fill in conservatively — completions must be **restrained, natural, credible, professional**
122
+ 3. **Never fabricate** unrealistic data, conclusions, test results, business metrics, project statuses, policy backgrounds, or customer feedback
123
+ 4. If critical information is missing and cannot be safely inferred, use standardized placeholders
124
+ 5. If no real data is available, prefer low-hallucination approaches: "status description → analysis framework → problem synthesis → recommendations"
125
+
126
+ ---
127
+
128
+ ## Content Quality Constraints
129
+
130
+ ### Logic & Structure
131
+ 1. Report must revolve around a clear topic, objective, audience, and through-line
132
+ 2. Must not just pile up background/concepts/vague statements — must demonstrate analysis, synthesis, judgment, comparison, or review value
133
+ 3. Terminology must be consistent throughout — concepts must not drift
134
+ 4. Abstract, body, conclusions, and recommendations must be consistent — no self-contradiction
135
+ 5. Must form a complete loop: "background → objective → method/basis → process/status → findings/results → problems/judgment → recommendations/conclusions"
136
+ 6. Each major chapter must have a clear core conclusion or topic sentence — no information dump
137
+
138
+ ### Language Style
139
+ 1. Formal, objective, restrained, professional
140
+ 2. No colloquial expressions, chat tone, hyperbole, emotional language, or propaganda style
141
+ 3. For management/decision-maker audience: conclusion-first, highlight key points, actionable recommendations
142
+ 4. For technical/testing reports: clear basis, reproducible process, verifiable results, stated risks
143
+
144
+ ### Data Expression
145
+ 1. Never use vague expressions as main conclusions: "significantly improved", "obviously optimized", "performed well", "has certain issues"
146
+ 2. If data exists, express quantitatively (e.g., "average response time under 200 ms" not "fast response")
147
+ 3. First occurrence of a term: write full name with abbreviation, e.g., "Application Programming Interface (API)"
148
+ 4. Without real data backing, never fabricate precise figures
149
+ 5. Statements about facts, data, status, and results must be internally consistent
150
+
151
+ ### Truthfulness & Conservative Generation
152
+ 1. Never fabricate test results, experiment data, growth rates, customer counts, interview conclusions, sample distributions, or launch decisions
153
+ 2. Never present speculation as proven fact
154
+ 3. Never fabricate meeting minutes, regulatory bases, customer feedback, or system logs
155
+ 4. When information is insufficient, use placeholders — never pretend information is complete
156
+ 5. Conclusions must be restrained — do not overstate effects, risks, or value
157
+ 6. Recommendations must be grounded in preceding analysis — no conclusions from thin air
158
+
159
+ ---
160
+
161
+ ## Chapter Content Requirements
162
+
163
+ ### (1) Cover
164
+ 1. Formal reports should have a cover page
165
+ 2. Cover includes: title, subtitle (if any), organization/department, author, date, classification (if requested)
166
+ 3. Cover must be a separate section
167
+ 4. Cover does not display page numbers
168
+ 5. Use `selectCoverRecipe()` for recipe + palette (see design-system.md)
169
+ 6. Common recipes: general report R1, whitepaper R2, consulting R3, proposal R4
170
+
171
+ ### (2) Executive Summary
172
+ 1. Formal reports **must have** a summary opening — never jump directly into details
173
+ 2. Summary should briefly state: background, objective, key methodology, key findings, main recommendations
174
+ 3. Suitable for quick reading by management — generally 200–400 words
175
+ 4. Must not read like a TOC description or pile of background filler
176
+
177
+ ### (3) Table of Contents
178
+ 1. Medium-to-long formal reports should include a TOC
179
+ 2. TOC must be generated from real heading styles (Heading + TOC field) — never write a fake TOC
180
+ 3. TOC page is typically a separate page
181
+ 4. TOC depth: usually 2–3 levels
182
+
183
+ ### (4) Background & Objectives
184
+ 1. Must explain why this report exists
185
+ 2. Must state what problem/scenario/audience the report serves
186
+ 3. If scope boundaries exist, state what the report does NOT cover
187
+ 4. Must not be vague/grand background — must relate directly to this report's task
188
+
189
+ ### (5) Methodology / Scope / Basis
190
+ 1. Must state what materials, criteria, methods, and time range the report is based on
191
+ 2. Analysis: data sources, analysis dimensions, criteria definitions
192
+ 3. Experiment: environment, materials, samples, procedure principles
193
+ 4. Testing: scope, version, environment, methods, coverage/rounds
194
+ 5. Research: sample source, sample size, research method, time range
195
+ 6. Reader must understand how conclusions were derived
196
+
197
+ ### (6) Core Content / Process / Status / Results
198
+ 1. Organized by logical or dimensional order — no chaotic piling
199
+ 2. Each section should lead with its conclusion, then expand with evidence
200
+ 3. Results must be specific — never just "performed well" or "has certain issues"
201
+ 4. Data, metrics, phenomena, and comparisons must be clearly stated
202
+ 5. If charts are needed but cannot be generated, use chart placeholders (see below)
203
+
204
+ ### (7) Analysis / Discussion / Problem Diagnosis
205
+ 1. Must not merely repeat earlier results
206
+ 2. Must explain what results mean, what patterns they reveal, what problems they expose
207
+ 3. May include: comparative analysis, root cause analysis, mechanism analysis, anomaly explanation, limitations, risk boundaries
208
+ 4. Analysis must be consistent with preceding data and facts
209
+
210
+ ### (8) Conclusions / Recommendations / Next Steps
211
+ 1. Conclusions must respond to report objectives
212
+ 2. Recommendations must be executable — not just principle slogans
213
+ 3. Recommendations should state: who executes, what to do, when, expected improvement
214
+ 4. Testing/review: clear verdict (pass / conditional pass / fail)
215
+ 5. Retrospective/summary: specific follow-up action items
216
+
217
+ ### (9) Appendices
218
+ 1. Supplementary material valuable to the report but not suitable for the main body
219
+ 2. Includes: raw data excerpts, detailed parameters, supplementary tables, sample screenshots
220
+ 3. Appendices should be on separate pages with proper headings
221
+
222
+ ---
223
+
224
+ ## Chart Placeholder Convention
225
+
226
+ When charts are needed but cannot be directly generated:
227
+
228
+ ```
229
+ [Chart Placeholder: Bar chart; Topic: Q1-Q4 2025 revenue comparison; X-axis: Quarter; Y-axis: Revenue (10K CNY); Style: clean business]
230
+ ```
231
+
232
+ **Rules:**
233
+ - Specify: chart type, topic, axis meanings, key dimensions, optional palette suggestion
234
+ - Placeholder must be a standalone paragraph — never inline
235
+ - Never use vague placeholders like "insert chart here"
236
+
237
+ **Prefer direct generation:** Charts that can be produced via matplotlib should be generated as embedded PNGs. Placeholders are a fallback only.
238
+
239
+ ---
240
+
241
+ ## Content-to-Word Mapping
242
+
243
+ ### Heading Levels
244
+ 1. Strict hierarchy — no level-skipping
245
+ 2. Headings must be informative — never "Background", "Content", "Other" (use "Project Background & Report Objectives" instead)
246
+ 3. Do not mix multiple numbering systems
247
+ 4. Normal paragraphs must not masquerade as headings
248
+
249
+ ### Paragraphs
250
+ 1. Do not use consecutive blank lines for visual spacing
251
+ 2. Each paragraph should be a complete semantic unit — not too long or too fragmented
252
+
253
+ ### Lists
254
+ 1. Use lists only when genuinely needed — an entire report must not be bullet points
255
+ 2. Nesting depth ≤ 3 levels
256
+ 3. Consistent punctuation within a list (all complete sentences or all fragments)
257
+ 4. Combine "key points" with "analysis paragraphs" — never just list without explaining
258
+
259
+ ### Tables
260
+ 1. Use tables only for structured data (statistics, comparisons, parameter lists)
261
+ 2. Every table must have a header row — headers must not be blank
262
+ 3. Avoid heavily merged-cell complex nested tables
263
+ 4. Tables must have introductory and explanatory text before/after
264
+ 5. Cell content should be concise — avoid long paragraphs inside cells
265
+
266
+ ### Emphasis
267
+ 1. Bold only for key conclusions, critical metrics, first occurrence of key terms
268
+ 2. Never bold entire paragraphs
269
+ 3. Avoid italic, strikethrough, and other unstable styles
270
+
271
+ ---
272
+
273
+ ## Palette Selection
274
+
275
+ | Report Type | Suggested Palette |
276
+ |-------------|-------------------|
277
+ | General | Neutral calm (primary: #101820) |
278
+ | Consulting | Warm terracotta |
279
+ | Tech | Cool dawn mist |
280
+ | Environment / Education | Warm sunshine |
281
+ | Medical | Cool mint |
282
+
283
+ See `references/design-system.md` for full palette definitions.
284
+
285
+ ---
286
+
287
+ ## Document Structure
288
+
289
+ 1. **Cover** — via `selectCoverRecipe()` (see design-system.md)
290
+ - Separate section, page margin typically 0
291
+ - Common: general R1, whitepaper R2, consulting R3, proposal R4
292
+
293
+ 2. **Table of Contents** — H1–H3, separate section
294
+
295
+ 3. **Executive Summary** — 1 page max
296
+
297
+ 4. **Body** — Chapters per selected template (A–F)
298
+
299
+ 5. **Conclusions & Recommendations**
300
+
301
+ 6. **Appendices** — Raw data, detailed tables
302
+
303
+ ---
304
+
305
+ ## Professional Elements
306
+
307
+ - **Page numbers**: bottom center, size 18, color "808080"
308
+ - **Header**: report title (abbreviated), size 18, color "808080"
309
+ - **Figure/table numbering**: sequential (Figure 1 / Table 1)
310
+ - **Cover**: no page number, no header/footer
311
+ - **TOC**: optional Roman numerals or no page numbers
312
+ - **Body**: Arabic numerals, continuous
313
+
314
+ ---
315
+
316
+ ## Scene-Specific Quality Checks
317
+
318
+ In addition to universal checks (see `references/common-rules.md`):
319
+
320
+ ### Format
321
+ - [ ] Executive summary ≤ 1 page
322
+ - [ ] Figures/tables have captions ("Figure X: description" / "Table X: description")
323
+ - [ ] Cover recipe matches report type
324
+ - [ ] Data charts use palette accent color
325
+
326
+ ### Content
327
+ - [ ] Has executive summary — not starting directly with details
328
+ - [ ] Heading names are specific and meaningful
329
+ - [ ] Complete loop: background → basis → content → analysis → conclusions/recommendations
330
+ - [ ] No fabricated or exaggerated details
331
+ - [ ] Abstract and conclusions are consistent
332
+ - [ ] Terminology consistent throughout
333
+ - [ ] Data expressions are quantified, not vague
334
+ - [ ] Recommendations are actionable with owners and timeline
335
+
336
+ ### Structure
337
+ - [ ] Heading hierarchy has no level-skipping
338
+ - [ ] List nesting ≤ 3 levels
339
+ - [ ] Tables have headers with intro/explanation text
340
+ - [ ] Bold used sparingly for emphasis only