commercial-report-delivery
Skill0 starsChanged 35 days agoMITView on GitHub
商业调研/分析报告的结构化输出与多格式交付。当需要把调研结果写成正式报告并产出 MD/PDF/DOCX/HTML 四格式时使用。内含老杨视觉规范(暗炭#2B2B2B+红#C0392B)、pandoc 转换链路、Chrome 无头渲染 PDF 的踩坑修复、宽表适配 CSS。
In this repository38 other files it gives its agents.
- aranya-nonstandardSkill
- bailian-zxSkill
- brand-research-scoutSkill
- city-new-mall-scanSkill
- commercial-hubSkill
- commercial-site-researchSkill
- laoyang-article-excelSkill
- laoyang-article-imagesSkill
- laoyang-channels-video-agentSkill
- laoyang-quality-checkSkill
- laoyang-short-videoSkill
- laoyang-topic-researchSkill
- mall-competition-scanSkill
- md2wechatSkill
- platform-content-adapterSkill
- restaurant-evaluatorSkill
- shui-on-xintiandiSkill
- store-site-analysisSkill
- tianmuli-teamSkill
- urf-curetailSkill
- wanhua-luxelakesSkill
- warm-article-dailySkill
- wechat-account-analyzerSkill
- wechat-article-extractorSkill
- wechat-brand-extractSkill
- wechat-managerSkill
- wechat-mp-data-collectSkill
- wechat-mp-publishSkill
- wechatreaderSkill
- zouyi-chaserSkill
- zsxq-bd-harvestSkill
- 余峰-perspectiveSkill
- 潘玉明-perspectiveSkill
- 王智明-perspectiveSkill
- 王玮-perspectiveSkill
- 管有冬-perspectiveSkill
- 老杨拆商业-perspectiveSkill
- 蔡云-perspectiveSkill
The file
Files
商业调研报告交付
把调研结果变成可交付的正式报告(MD → HTML/DOCX/PDF 四格式),遵循老杨视觉规范。
何时使用
- 用户要求「调研XX项目并出报告」「生成分析报告」「写一份XX方案」
- 已收集完资料,需要落成文件交付
- 需要 MD + PDF + DOCX + HTML 多格式(用户硬性偏好:只输出 MD/Word/PDF,不默认输出 HTML 文件——但 HTML 作为 PDF 转换中间产物是允许的)
输出目录约定
报告统一放在项目下的专题目录,如:
{项目}/调研主题_调研/
01_主题报告.md / .pdf / .docx / .html
02_深化报告.md / ...
report_style.css # 主样式
report_style_wide.css # 宽表报告专用(6列以上表格)第一步:准备打印样式
复用已有 report_style.css(老杨视觉规范,A4 竖版)。核心变量:
@page { size: A4; margin: 18mm 16mm 20mm 16mm; }
:root { --ink:#2B2B2B; --red:#C0392B; --zebra:#FBF3EF; --line:#E2D9D4; }
h1 { color:var(--red); font-size:22pt; border-bottom:3px solid var(--red); }
h2 { color:var(--red); font-size:15pt; border-left:5px solid var(--red); padding-left:10px; }
th { background:var(--red); color:#fff; }
tr:nth-child(even) td { background:var(--zebra); }
strong { color:var(--red); }字体:"PingFang HK","PingFang SC","Microsoft YaHei",sans-serif,正文 11pt。
表格 ≥6 列时必须生成宽表变体,否则 A4 竖版会挤爆:
sed 's/font-size:9.5pt;/font-size:8.5pt; word-break:break-word;/; s/padding:6px 8px;/padding:5px 6px;/g' report_style.css > report_style_wide.css第二步:写 Markdown 正文
结构模板(老杨体,结论前置):
# 标题
> 任务/视角/日期元信息
## 〇、执行摘要(TL;DR) ← 一句话结论 + 关键数据表 + 3条判断
## 一、主体分析分章
## ...
## 末章 综合结论
*数据来源与免责说明*写作要求:
- 每章开头一句话结论,别铺垫
- 必须有明确数字,禁止「较大提升」这类模糊表述
- 测算类数字标注「模拟/假设值,需校准」
- 章末给可落地动作,不只分析
第三步:转换(两条命令)
HTML 与 DOCX 可并行:
cd "{报告目录}" && \
/opt/homebrew/bin/pandoc "报告名.md" -c report_style_wide.css -o "报告名.html" --standalone --metadata title="标题" && \
/opt/homebrew/bin/pandoc "报告名.md" -o "报告名.docx"第四步:Chrome 无头渲染 PDF(⚠️ 有坑)
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--headless=new --no-sandbox --disable-gpu --no-pdf-header-footer \
--print-to-pdf="报告名.pdf" \
"file:///URL编码的绝对路径/报告名.html"踩坑记录(必看)
exit=13+ "Multiple targets are not supported in headless mode" 原因:--print-to-pdf 输出路径 HTML路径(空格分隔)被解析成两个目标。 修复:用等号形式--print-to-pdf="报告名.pdf",且 HTML 用file://绝对 URL。- 中文路径:必须 URL 百分号编码(如
星汇国际广场_调研→%E6%98%9F%E6%B1%87%E5%9B%BD%E9%99%85%E5%B9%BF%E5%9C%BA_%E8%B0%83%E7%A0%94)。 用 Bash 的${var//pattern/replace}或直接查表转换。 --headless(旧)可能失效,一律用--headless=new。- 成功标志:stderr 出现
N bytes written to file;失败时tail看 stderr 末尾几行。 - 沙箱环境需
--no-sandbox。
第五步:交付
用 present_files 一次性传四格式(PDF 放首位),并在回复里给结论摘要。 PDF 典型体积 ~54KB(文字报告),若明显偏小需检查是否渲染失败。
质量检查清单
- 执行摘要有一句话结论 + 关键数据表
- 所有测算数字标注「模拟/假设值,需校准」
- ≥6列表格用了 wide 样式
- 文末有数据来源与免责说明
- 四格式均已生成,PDF 体积正常
- 已写入项目 memory(
.workbuddy/memory/YYYY-MM-DD.md)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

