Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add agentscope-ai/QwenPaw-Data --skill report-format-extractorgit clone --depth 1 https://github.com/agentscope-ai/QwenPaw-DataWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/report-format-extractor)<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/report-format-extractor"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/report-format-extractor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/report-format-extractor"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/report-format-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.03425 |
| Opus 5.5 | $0.00010 | $0.01370 |
| Sonnet 5.5 | $0.00005 | $0.00685 |
| Haiku 4.5 | $0.00003 | $0.00343 |
Grade A, and why
report-format-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Report Format Extractor
仅在全部 Section 已通过数值和逻辑验收后执行。
本 Skill 由 Agent 直接完成视觉理解和规范落盘,不调用报告格式提取工具,也不得用 简单的“取前几个颜色/第一个字体”代替完整风格分析。
输入
- 读取
report_manifest.json,按其中的source_path定位原始报告。 - HTML 报告同时检查 DOM、内联样式、样式表和可见交互结构;DOCX/Markdown 报告检查 标题层级、段落、表格、图片和分页线索。
- 读取各 Section 的
source.md辅助理解“哪些结构是业务内容,哪些结构是视觉容器”。 - 只分析原报告;不得从当前通用 BI 模板反推原报告风格。
必须提取的规范
将结果写入任务根目录的 format_spec.json,至少包含:
source:原报告定位信息。三个子字段都是硬约束,因为report_builder.py要靠它找到原报告并透传样式:path:相对任务根目录的路径,且必须真的能打开;type:字面量html。写成别的值(HTML 报告、pdf、留空)会让生成端 静默降级为「不注入原报告样式」,报告直接退回通用模板外观;evidence:证据列表,精确到 CSS 选择器或 DOM 结构,不要写「参考原文」。
source_css:原报告全部<style>块的原文拼接。这是生成端唯一的类名 事实来源,见下节「source_css」。dom_contract:结构模式清单,见下节「dom_contract」。page:页面背景、内容最大宽度、外边距、内边距和整体密度;header:标题、副标题、周期、摘要区的结构、对齐方式和背景;navigation:目录、页签、章节卡片或折叠面板的组织与选中态;typography:字体族、字号层级、字重、行高和正文颜色;palette:主色、辅助色、背景色、边框色、语义色及各自用途;sections:Section 容器、卡片、网格、间距、圆角、边框和阴影;tables:表头、单元格、斑马纹、数值对齐、长表滚动与明细展开方式;charts:原报告实际使用的图表类型、配色、图例、标签、tooltip 和尺寸;images:原报告中的静态图片、图标、截图或背景图的用途、尺寸、位置和可替代方式;interactions:图表/表格切换、页签、折叠、详情展开等安全交互;responsive:桌面和窄屏下的布局规则;generation_contract:bi-report-generation必须保留的结构、图表渲染策略、 图片嵌入策略和允许降级项。
每个关键视觉结论都要在 source.evidence 中记录来源,例如 CSS 选择器、DOM 结构、
标题文本或原报告片段;无法确认的值标记为 unknown,不得猜测。
source_css
把原报告所有 <style> 块按出现顺序拼成一个字符串写进 source_css。顺序就是层叠
优先级(常见是「基础布局」+「主题覆盖」两块,后者用 !important 压前者),
不要重排、不要合并、不要「精简掉看着没用的规则」。
允许的加工只有两种:删注释、删危险构造(@import、url() 指向远程资源、
expression()、behavior/-moz-binding)。删了要在 source.evidence 里记一笔。
为什么必须整段搬而不是摘录:原报告的 CSS 通常只有几 KB,而 HTML 有几 MB。以一份
真实原报告实测为例,HTML 4,784,135 字符,3 个 <style> 块拼起来只有 9,912 字符
(0.21%)。生成端读 source_css 一次就拿到全部真实类名;不写这个字段,它就得
自己去几 MB 的 HTML 里采样,而采样必然漏(见下节)。
dom_contract
CSS 只说明「某个类长什么样」,说明不了「谁套在谁里面、哪一层能点、哪个类是运行时
才出现的状态」。这些结构信息必须由 dom_contract 显式写出,它是一个数组,每项:
| 字段 | 说明 |
|---|---|
selector |
带标签名的选择器,照抄 CSS 里的写法,如 h2.sec、details.panel |
count |
该模式在原报告 DOM 中的出现次数(实测值,不是估计) |
markup |
最小可运行 markup 示例,体现必需的父子层级 |
semantics |
这个结构承载什么业务内容 |
state |
可选,true 表示该类由交互切换、静态 DOM 中可能为 0 次 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 209 lines · 25 tokens per session scan A 9267f7f8b525
report-format-extractor is a skill published in the GitHub repository agentscope-ai/QwenPaw-Data (208 stars, last pushed 6d ago), licensed Apache-2.0. It adds 25 tokens to every session and 3,425 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.
report-format-extractor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| report-format-extractoragentscope-ai/QwenPaw-Data | Skill | 208 | 6d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| csv-workbenchopenai/openai-agents-python | Skill | 31k | today | MIT | A | 17 | Claude Code, Codex |
| docetlucbepic/docetl | Skill | 4.3k | 13d ago | MIT | A | 59 | Claude Code, Codex |
| epub-ebooklibagentforce314/clawcodex | Skill | 927 | 2d ago | MIT | A | 26 | Claude Code, Codex |
| bank-statement-parsingjohnsonhk88/AI-Bank-Statement-Document-Automation-By-LLM-And-Personal-Finanical-Analysis-Prediction | Skill | 638 | 3d ago | Apache-2.0 | A | 23 | Claude Code, Codex |
| mck-ppt-designlikaku/Mck-ppt-design-skill | Skill | 356 | 27d ago | Apache-2.0 | A | 207 | Claude Code, Codex |
| fsl-requirements-documentymm-oss/fsl | Skill | 41 | 6d ago | Apache-2.0 | A | 145 | Claude Code, Codex |