invoice
Standard Invoice: Sender/Recipient + Line Items + Tax + Totals + Payment Instructions
1How It Works & Mechanism
The 5-section structure of the single-page A4 invoice is fixed: header (invoice number/date/due date) → From/Bill to → line items table → right-aligned tax + totals → payment instructions.
- Header: 发票号 / 日期 / 截止日
Print usability is handled exclusively via @media print: the print branch removes shadows, removes borders, and adjusts padding; a single-column collapse fallback is also provided for viewports below 720px.
@media print {
Amounts are not limited to just a Total: the example provides an auditable hierarchy of Subtotal → Sales tax · NY (9%) → Net before tax.
<div class="total-row tax"><span>Sales tax · NY (9%)</span><span>$3,246.48</span></div>
The template itself is the prompt: the SKILL.md body is read by the loader, assembled with the shared preface and user content, and passed to the local agent CLI for execution.
prompt = assemblePrompt({ body: skill.body, content, format });
The skill directory consists purely of plain-text assets: the loader reads SKILL.md from disk, and no executable code inside the directory is loaded.
const raw = safeRead(path.join(dir, "SKILL.md"));
The shared preface is injected before the template, establishing the highest priority that 'the template only defines layout/style/palette/font/component library, while quantity is determined by user content'.
【内容驱动数量 — 最高优先级, 覆盖模板里的任何数字】
The shared preface is injected before the template, establishing the highest priority that 'the template only defines layout/style/palette/font/component library, while quantity is determined by user content'.
- **禁止使用 Write / Edit / MultiEdit / Bash / Create / 任何文件系统工具**。不要把 HTML 写到任何 \`.html\` 文件里。前端直接捕获你的 stdout 文本, 文件落盘由前端负责。
The skill directory consists purely of plain-text assets: the loader reads SKILL.md from disk, and no executable code inside the directory is loaded.
const exampleHtml = safeRead(path.join(dir, "example.html"));
2Core Capabilities
4Recommended Governance & Evidence
- SKILL.md: Pure prompt instructions and rule text, with no script execution or external impact
5Second-Pass Verification
- [ok] 规范↔示例:五段全覆盖 — header(INV-2025-0142 / Issued 14 October 2025 / Due 13 November 2025)、Bill to、明细表(Description 表头)、Subtotal/Sales tax/Net before tax、Payment terms 全部命中。
- [ok] 打印样式核对 — 示例 `@media print` 分支确做去阴影/去边框/改 padding(`.sheet { box-shadow: none; border: none; margin: 0; padding: 32px 36px; }`),与正文「@media print 样式」一致。
- [ok] 「颜色对比保留」核对 — 打印分支只改背景/阴影/边距,未改文字色变量(--ink/--muted 保持),对比度不降。
- [ok] 移动端兜底(正文未要求) — 示例另有 `@media (max-width: 720px)` 把 parties/pay/signoff/totals 塌成单列,属超出规范的加固,非违背。
- [ok] 税务/条款为示例文案 — 示例的 NY 9% 销售税、1.5% 月服务费、30 天账期均为演示内容,正文未规定任何税务口径,须由用户输入决定——不算夸大也不构成合规保证。
- [ok] 目录资产面普查 — glob 全量:SKILL.md、example.html;无 scripts/、无 references/、无数据文件、无包管理器清单。
- [ok] 可执行代码普查 — example.html 内 <script> 计数 = 0,fetch/XMLHttpRequest/WebSocket 命中 0;SKILL.md 全篇无脚本或可执行代码。
- [ok] 外链端点普查 — 目录内(含 example.html)零 http(s) 命中,产物离线自持。
6Verdict & Scenarios
a389000ce1b07884…