insight-pdf
Insight PDF
企业级报告 PDF 生成 skill。用户项目目录仅生成最终 PDF,无 HTML、node_modules 等中间产物。
完整工作流
- 设计系统 — 应用 reference 中的配色、字体、网格、封面规范及可视化组件
- 生成 HTML(内存) — 使用
templates/insight-report.html,替换占位符;正文从 Markdown 转 HTML,使用 ECharts 图表、stat cards、callout boxes、progress bars、timelines 等组件 - 写入临时目录 — 将 HTML 写入系统临时目录(如
/tmp/insight-pdf-<uuid>/report.html) - 调用 convert 脚本 —
node <skill-dir>/scripts/convert.js <temp-html-path> <project-dir>/report.pdf - 清理 — 转换成功后删除临时目录
用户项目最终只得到 PDF 文件,无其他生成物。
网络与模板依赖
默认 templates/insight-report.html 通过 CDN 加载 Chart.js、ECharts、Google Fonts。转换阶段需能访问外网(或你已把模板改为本地/内网镜像脚本与字体)。纯离线环境若未改模板,可能出现图表空白、超时或版式回退。
安全提示:HTML 由 Agent/用户内容拼装;勿对不可信来源的原始 HTML 直接转换(等同在本地 Chromium 中执行页面脚本)。常规「自己撰写的报告 Markdown→HTML」场景风险可接受。
More from wghust/stark-skills
google-news-seo
Google News Diagnostic Engine — audit and optimize news articles for Google News SEO. Determines Layer 1 index eligibility and Layer 2 ranking competitiveness. Includes NewsArticle Schema review, AI content compliance checks, publisher trust detection, author authority scoring, freshness analysis, topic cluster compatibility, Top Stories detection, competitor gap analysis, and Google E-E-A-T scanning with structured report generation. Use when asked about Google News SEO, why a site is not indexed in Google News, why articles don't rank, NewsArticle Schema optimization, how AI content can get into Google News, or running an EEAT scan / audit. 检查和优化新闻文章的 Google News SEO,包括双层诊断引擎(Layer 1 索引准入 / Layer 2 排名竞争)、NewsArticle Schema 审查与修复、AI 生成内容合规性检查、发布者信任度检测、作者权威性评分、新鲜度分析、话题聚类兼容性、Top Stories 检测、竞争对手差距分析,以及 Google E-E-A-T 全维度扫描。
24openspec-design
Extends OpenSpec with design asset integration. Use when the user asks to "run openspec-design", "enhance openspec design", or "apply openspec-design". When invoked, updates the project's openspec/AGENTS.md to extend the proposal flow with Figma MCP, design asset directory, and design-map.md.
16nextjs-debug
Diagnose and fix Next.js project startup, compilation, and runtime errors by analyzing logs and project source code. Use when the user reports a Next.js startup error, compilation failure, hydration mismatch, module not found, Server/Client boundary violation, environment variable issue, or port conflict. Also triggers on "next dev fails", "next build error", "Turbopack error", "use client missing", "module not found", "Cannot find module", "hydration failed". 诊断并修复 Next.js 项目启动、编译和运行时错误。当用户粘贴启动日志、描述 Next.js 报错、询问"启动失败"、"编译报错"、"模块找不到"、"Server Component 报错"、"hydration 错误"、"环境变量不生效"时使用。
14c4-interactive-html
|
13mac-wash
|
12git-intelligence
|
9