Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

paged-report

БесплатноБез исполняемых скриптовНе проверен

Generate client HTML reports with A4 print via WebBridge. Triggers: client report, 发给客户, 报价, 进度汇报, 确认函.

mfang0126от mfang0126374 установки в других каталогах

Об этом скилле

Paged Report

Generate professional client-facing HTML reports with A4-oriented print styles and self-contained HTML. Browser/PDF pagination and physical page count require verification. Works for any client/project — not tied to a specific brand. The current catalog documents 14 entries (10 typed renderer components plus structural hero, TOC, section, and footer); the 5 family labels are accepted metadata values, not family-specific rendering policies.

Trigger

Any of: "client report", "send report to client", "发给客户", "报价方案", "进度汇报", "确认函", "数据报告", "导入报告", "make a report for", "生成报告", "paged report"

How it works

  1. Identify template family + client/project name
  2. Put report content in the structured JSON contract below
  3. Render HTML from the paged-report repository root with python3 -m generator.paged_report input.json --output report.html
  4. Kimi WebBridge (recommended for interactive/PDF preview): navigate(http://127.0.0.1:...) + save_as_pdf(paper_format: "a4"); verify the resulting PDF
  5. Optional: artifact-delivery to publish a reviewed preview

One reusable tab: session: "report-gen" — navigate → save_as_pdf → repeat.

Structured JSON generator

The repository includes a standard-library renderer and the canonical input schema at schemas/report.schema.json. Use it for repeatable reports instead of hand-editing a copied HTML file.

Minimal shape:

{
  "family": "confirmation",
  "toc": true,
  "meta": {
    "language": "zh-CN",
    "title": "运费规则确认",
    "client": "客户名称",
    "category": "运营确认",
    "subtitle": "一句话说明",
    "date": "2026-09-07",
    "version": "v1.0"
  },
  "pages": [
    {
      "label": "规则与确认",
      "sections": [
        {
          "id": "rules",
          "title": "规则变更对比",
          "components": [
            {
              "type": "compare_table",
              "columns": ["项目", "变更前", "变更后"],
              "rows": "免运门槛", "$200", "$150"
            }
          ]
        }
      ]
    }
  ]
}

Supported component types are table, compare_table, callout, tag, kpi, progress, status_row, checklist, grid, and divider; hero, TOC, sections, pages, and footer are generated structurally. Text is escaped by default. Do not put raw HTML, secrets, or unverified customer facts in the JSON.

data_appendix and package-level delivery manifests are proposed follow-up contracts, not supported input features in v1.2.1. Do not claim that the renderer provides searchable relational appendices, CSV export, or package registration until a later implementation passes its contract tests; see the review-pending design under docs/reports/.

Accepted family labels (5 metadata values; family-specific rendering policies are not enforced)

Family Use when Planning range (not enforced)
proposal Quote, pricing, service proposal, 报价, 方案 3-7
data-audit Data quality, catalog audit, CSV analysis, 数据审计 5-10
progress Status update, milestone, 项目进展, 周报 2-5
confirmation Rule change, shipping, delivery, 确认函, 变更通知 1-2
handoff Technical delivery, import prep, 验收, 交付 2-8

Invoice excluded (accounting standards apply separately).

CSS: load linked file

skill_view(name='paged-report', file_path='templates/base.css')

Inline entire CSS into <style> tag. Self-contained HTML, no external deps.

HTML skeleton

<!DOCTYPE html>
<html lang="zh-CN">  <!-- or lang="en" for English -->
<head>
<meta charset="UTF-8">
<title>{report title}</title>
<style>{full base.css content}</style>
</head>
<body>
<div class="page">
  <!-- COVER: hero + optional toc -->
  <div class="report-page cover">
    <div class="hero">
      <p class="eyebrow">{client} · {category}</p>
      <h1>{title}</h1>
      <p class="subtitle">{description}</p>
      <div class="meta">
        <span>{date}</span><span>{version}</span><span>{project}</span>
      </div>
    </div>
    <!-- optional TOC if 3+ sections -->
    <nav class="toc">
      <h2>目录</h2>
      <ol><li><a href="#s1">{section}</a></li></ol>
    </nav>
  </div>

  <!-- CONTENT PAGES: one logical authoring boundary per .report-page -->
  <div class="report-page flex-col">
    <div class="content-area">
      <section id="s1">
        <h2>{section title}</h2>
        {components: tables, callouts, cards, kpis, etc.}
      </section>
    </div>
    <div class="footer-area">
      <div class="footer"><p>{client} · {report type} · {date}</p></div>
    </div>
  </div>
</div>
</body>
</html>

Rules:

  • Each .report-page is a logical authoring boundary with min-height: 880px on screen; it is not a guarantee of one physical A4 page
  • flex-col + .content-area + .footer-area can push a footer after content when that logical page has spare space; overflow can reflow it
  • Multiple .report-page divs provide authoring boundaries for multi-page reports
  • cover class on the first page requests a
Полный SKILL.md на ClawHub

Установить paged-report в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл paged-report?

Generate client HTML reports with A4 print via WebBridge. Triggers: client report, 发给客户, 报价, 进度汇报, 确认函.

Как установить скилл paged-report?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл paged-report запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить paged-report с