report-generation

report-generation is a skill for Claude Code, Codex from zj-unicom-ai/UniEmployee. It costs 95 tokens per session (6,461 once invoked), scanned A, original, MIT.

A workflow for generating data-analysis reports as interactive HTML with charts. It is intended for trend, statistics, monthly, weekly, and other reports, using database queries and ECharts, a web charting library.

In plain words
What is it for?
Use it to query data, analyze causes and trends, and produce visual reports with charts for summaries, comparisons, distributions, rankings, or periodic reviews.
Why use it?
It turns multi-dimensional data queries and analysis into a report that can be viewed in the conversation instead of saving an HTML file on disk. It distinguishes full reports from requests for one number or one SQL result.

Skill for Claude CodeCodex

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

Good fit Use it to query data, analyze causes and trends, and produce visual reports with charts for summaries, comparisons, distributions, rankings, or periodic reviews.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zj-unicom-ai/uniemployee/report-generation
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 zj-unicom-ai/UniEmployee --skill report-generation
Clone the repo
git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee

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-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/zj-unicom-ai/uniemployee/report-generation/github.svg)](https://agentmods.dev/skills/zj-unicom-ai/uniemployee/report-generation)
Your own site
<a href="https://agentmods.dev/skills/zj-unicom-ai/uniemployee/report-generation"><img src="https://agentmods.dev/badge/skills/zj-unicom-ai/uniemployee/report-generation/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-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/zj-unicom-ai/uniemployee/report-generation"><img src="https://agentmods.dev/badge/skills/zj-unicom-ai/uniemployee/report-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,461 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.00095 $0.06461
Opus 5 $0.00048 $0.03231
Sonnet 5 $0.00019 $0.01292
Haiku 4.5 $0.00010 $0.00646

Measured 2d ago against content hash 740130a3ce3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

report-generation 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 2d 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.

backend/skills/report-generation/SKILL.md · 545 lines

How it starts

The opening of the file, as written. The whole thing — 545 lines — stays where its author put it; the contents beside it link to each section on GitHub.

报告生成技能

⚠️ 输出方式红线(最高优先级,违反即失败)

报告 HTML 必须作为助手消息文本的一部分,直接输出到对话窗口——用 <!-- REPORT_HTML_START --><!-- REPORT_HTML_END --> 分隔符独占行包裹完整 HTML,让前端用 iframe srcdoc 渲染并提供下载/新窗口打开按钮,用户在对话里即可点击查看。

严禁调用以下任何文件系统工具把报告写到磁盘:

  • write_file / edit_file / delete —— 不要把 HTML 内容写到 workspace/data/ 或任何路径
  • execute —— 不要用 shell 命令(echo > file.htmlcat <<EOF > ...)落盘
  • ls / glob / read_file —— 不要去探查或读取本地已存在的 html 文件

也禁止在回复里告诉用户"报告已保存到 /xxx/yyy.html"或类似路径——你无权写文件,写不出来也不要假装写了。前端只会从对话文本里提取分隔符包裹的 HTML 段来渲染,写到磁盘的 HTML 用户看不到也打不开。

正确输出长这样(节选):

根据查询结果,为您生成《2024 月度销售趋势报告》:

<!-- REPORT_HTML_START -->
<!DOCTYPE html>
<html lang="zh-CN">
... 完整 HTML(含 ECharts CDN + CSS + 数据 + 初始化脚本)...
</html>
<!-- REPORT_HTML_END -->

报告已生成完毕,包含 KPI 卡片 4 个、图表 3 个...

何时使用

用户提出以下任意诉求时启用本技能:

  • 显式关键词:报告、分析报告、可视化报告、趋势报告、统计报告、月报、周报、季度复盘、专题分析
  • 隐式诉求:用户希望"总结、汇总、复盘、对比、看趋势、看分布、看排名、给老板看"等需要结构化呈现的场景

普通单点问数(用户只想知道一个具体数字、一条 SQL 结果)走 data-analysis 规程,不要误用本技能。

不可违反的约束

  1. HTML 必须用分隔符 <!-- REPORT_HTML_START --><!-- REPORT_HTML_END --> 独占行包裹后,作为消息文本直接输出——见顶部红线块,禁止 write_file/edit_file/execute 落盘,禁止谎称"已保存到某路径"
  2. 查询完数据后必须立即生成报告,禁止中途停顿、问用户"要不要继续"
  3. 本技能是流程指令文档,按步骤一次性走完,不要说"调用技能"然后停下
  4. 报告中的所有数字必须来自 SQL 真实输出,禁止估算、编造、四舍五入到"看起来合理"的整数
  5. 遵守 xiaoshu 的安全规则:只允许 SELECT,结果限制 100 行,查询失败最多重试 2 次
  6. HTML 单文件自包含:所有 CSS/JS 内联,除 ECharts CDN 外无外部依赖
  7. 不使用 emoji 作为图标(报告正文中允许 ↑↓→← 等方向符号)

工作流程(7 步,必须全部完成)

第 1 步:理解需求

从用户诉求中提取并默念(不必输出):

  • 报告主题:销售、用户、产品、运营、财务、客诉等
  • 关键指标:总量、增长率、排名、占比、转化率、复购率等
  • 分析维度:时间、地区、品类、渠道、客户分群等
  • 时间范围:最近一周/月/季度/年,或具体日期段
  • 决策视角:报告读者是老板、运营、销售负责人——决定结论的颗粒度

第 2 步:检索表结构

调用 sql_db_smart_search(user_query="用户报告诉求原话") 获取最相关的表结构。

  • datasource_id 可不传,会话会自动注入当前选中的数据源
  • 工具用 BM25 检索最相关的表,表数 ≤ 20 时返回全量
  • 根据 user_query 语义判断需要哪些表,通常 3-8 张

若涉及多表 JOIN,再调用:

  • sql_db_table_schema(table_names="表1,表2") 获取字段详情
  • sql_db_table_relationship(table_names="表1,表2") 获取外键关联

Read the full file on GitHub · 545 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. 2d ago First seen · 545 lines · 95 tokens per session scan A 740130a3ce3e

Subscribe to this mod's changes

report-generation is a skill published in the GitHub repository zj-unicom-ai/UniEmployee (86 stars, last pushed yesterday), licensed MIT. It adds 95 tokens to every session and 6,461 once invoked, about $0.0005 per session on Opus 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-09-09.

Related

Other skills, from other repositories

five-ring-ontology-engineering-lifecycle

A five-stage method for planning an enterprise ontology, a structured model of the concepts and relationships used across a business, from source material through ongoing use.

SuperChason/ontology-driven-ai-data-management-skills · 76 tokens

ontology-ai-application-pattern-selection

A method for choosing how an AI system should handle a business problem after deciding that an ontology—a structured map of concepts and relationships—is suitable. It compares patterns such as workflow automation, decision support, knowledge answering, collaboration, and continuous planning.

SuperChason/ontology-driven-ai-data-management-skills · 100 tokens

ontology-ai-scenario-fit-and-spike

A method for deciding whether an ontology is suitable for an enterprise AI scenario and testing that choice with a small end-to-end sample. An ontology is a structured model of concepts, rules, and relationships.

SuperChason/ontology-driven-ai-data-management-skills · 88 tokens

ontology-constraint-and-knowledge-injection

A method for deciding how an ontology’s knowledge should reach an AI model: directly in its instructions, through RAG, or through fine-tuning. RAG retrieves relevant information at answer time; fine-tuning changes the model using training examples.

SuperChason/ontology-driven-ai-data-management-skills · 100 tokens

ontology-golden-case-testing

A testing method for an ontology, which is a structured model of business concepts and rules. It starts with real business questions and expected answers, then adds boundary, missing-data, conflict, permission, and regression tests.

SuperChason/ontology-driven-ai-data-management-skills · 78 tokens

ontology-model-multilayer-quality-gate

A quality-review process for an ontology—a structured map of concepts and relationships—created by an AI model. It combines independent review, software checks, and business-expert checks before production use.

SuperChason/ontology-driven-ai-data-management-skills · 87 tokens