report-format-extractor

report-format-extractor is a skill for Claude Code, Codex from agentscope-ai/QwenPaw-Data. It costs 25 tokens per session (3,425 once invoked), scanned A, original, Apache-2.0.

A report-format analysis workflow that reads an approved source report and records its layout, styles, colors, tables, charts, images, and interactions in a structured file.

In plain words
What is it for?
Use it after numerical checks to inspect HTML, DOCX, or Markdown reports and create a format specification for page layout, typography, sections, tables, charts, and responsive behavior.
Why use it?
It preserves the original report's visual rules without guessing from a generic template. This helps later report generation use the source's actual structure and styling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after numerical checks to inspect HTML, DOCX, or Markdown reports and create a format specification for page layout, typography, sections, tables, charts, and responsive behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentscope-ai/qwenpaw-data/report-format-extractor
Install

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.

Any agent
npx skills add agentscope-ai/QwenPaw-Data --skill report-format-extractor
Clone the repo
git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for report-format-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/report-format-extractor/github.svg)](https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/report-format-extractor)
Your own site
<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.

agentmods 80×15 button for report-format-extractor

Your own site · 80×15
<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>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 9267f7f8b525, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

packages/qwenpaw-data-skills/skills/atomic/report-format-extractor/SKILL.md · 209 lines

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 直接完成视觉理解和规范落盘,不调用报告格式提取工具,也不得用 简单的“取前几个颜色/第一个字体”代替完整风格分析。

输入

  1. 读取 report_manifest.json,按其中的 source_path 定位原始报告。
  2. HTML 报告同时检查 DOM、内联样式、样式表和可见交互结构;DOCX/Markdown 报告检查 标题层级、段落、表格、图片和分页线索。
  3. 读取各 Section 的 source.md 辅助理解“哪些结构是业务内容,哪些结构是视觉容器”。
  4. 只分析原报告;不得从当前通用 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 次

Read the full file on GitHub · 209 lines

Changes

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.

  1. 9d ago First seen · 209 lines · 25 tokens per session scan A 9267f7f8b525

Subscribe to this mod's changes

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.

Related

report-format-extractor compared with skills from other repositories

report-format-extractor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
report-format-extractoragentscope-ai/QwenPaw-DataSkill2086d agoApache-2.0A25Claude Code, Codex
csv-workbenchopenai/openai-agents-pythonSkill31ktodayMITA17Claude Code, Codex
docetlucbepic/docetlSkill4.3k13d agoMITA59Claude Code, Codex
epub-ebooklibagentforce314/clawcodexSkill9272d agoMITA26Claude Code, Codex
bank-statement-parsingjohnsonhk88/AI-Bank-Statement-Document-Automation-By-LLM-And-Personal-Finanical-Analysis-PredictionSkill6383d agoApache-2.0A23Claude Code, Codex
mck-ppt-designlikaku/Mck-ppt-design-skillSkill35627d agoApache-2.0A207Claude Code, Codex
fsl-requirements-documentymm-oss/fslSkill416d agoApache-2.0A145Claude Code, Codex