Portwood: Skill for Claude Code

.claude/skills/html-template-authoring/SKILL.md

html-template-authoring is a skill for Claude Code from Portwood-Global-Solutions/Portwood. It costs 62 tokens per session (1,490 once invoked), scanned A, original, Apache-2.0.

A guide for writing Portwood HTML templates that are converted to PDF by Flying Saucer, a renderer with mostly older CSS support.

In plain words
What is it for?
Use it when creating or repairing HTML-to-PDF templates, choosing compatible layout and image rules, or diagnosing differences between the source HTML and the generated PDF.
Why use it?
Modern CSS such as flexbox, grids, gradients, and variables may be silently ignored, causing the PDF layout, images, fonts, or charts to look wrong.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Portwood-Global-Solutions/Portwood's own configuration. It tells Claude Code how to work on Portwood itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Portwood configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Portwood-Global-Solutions/Portwood. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Portwood-Global-Solutions/Portwood/main/.claude/skills/html-template-authoring/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Portwood-Global-Solutions/Portwood

Made for: Claude Code.

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 html-template-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/portwood-global-solutions/portwood/html-template-authoring/github.svg)](https://agentmods.dev/skills/portwood-global-solutions/portwood/html-template-authoring)
Your own site
<a href="https://agentmods.dev/skills/portwood-global-solutions/portwood/html-template-authoring"><img src="https://agentmods.dev/badge/skills/portwood-global-solutions/portwood/html-template-authoring/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 html-template-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/portwood-global-solutions/portwood/html-template-authoring"><img src="https://agentmods.dev/badge/skills/portwood-global-solutions/portwood/html-template-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,490 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00062 $0.01490
Opus 5 $0.00031 $0.00745
Sonnet 5 $0.00012 $0.00298
Haiku 4.5 $0.00006 $0.00149

Measured 12d ago against content hash 28aaf1ddfea5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

html-template-authoring 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 12d 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.

.claude/skills/html-template-authoring/SKILL.md · 152 lines

How it starts

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

Authoring HTML templates for Portwood

HTML is the recommended source format. It skips the DOCX→HTML parse and lands more reliably in the renderer. Steer new authors here, and chart authors here without exception.

The renderer is CSS 2.1

Blob.toPdf is Flying Saucer: CSS 2.1 plus a small CSS 3 subset. Unsupported properties are silently ignored — the page still renders, but layout collapses to default block flow. Nothing warns you.

Never use

  • display: flex, display: grid, gap
  • linear-gradient(...) and friends
  • calc(...)
  • CSS custom properties (var(--x))
  • most CSS 3 layout

Use instead

  • <table>-based layout for anything multi-column
  • solid background colors
  • absolute lengths (pt, in) and percentages
  • display: table-cell / table-row on <div> where you need cell behavior without a real table

The tbody trap

table > tbody > tr > td { ... }   /* silently matches NOTHING */

The parse tree has no implied <tbody>. Use td attribute selectors or class-only selectors:

td.total { ... }

Images

URLs must be relative. Absolute https://… URLs and data: URIs both render broken — this is a hard constraint of the renderer, not a bug to work around.

If the same image appears at two different sizes, the renderer caches one layout size per URL. Vary the URL to force a re-layout (the engine appends a size key for this reason).

Fonts and symbols

The base font families resolve to the base-14 PDF fonts (Helvetica / Times / Courier, WinAnsi). Anything outside Latin-1 renders as nothing — not a box, not a fallback, absent. Checkmarks, arrows, CJK, Greek, Cyrillic all disappear.

'Arial Unicode MS' is the one family that draws them, embedding as a subsetted CID font. The trade-off is real and worth knowing:

Symbols / CJK Bold
'Arial Unicode MS' ❌ — no bold face; font-weight: bold renders regular
every other family

Read the full file on GitHub · 152 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. 12d ago First seen · 152 lines · 62 tokens per session scan A 28aaf1ddfea5

Subscribe to this mod's changes

html-template-authoring is a skill published in the GitHub repository Portwood-Global-Solutions/Portwood (122 stars, last pushed yesterday), licensed Apache-2.0. It adds 62 tokens to every session and 1,490 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

anthropics-office-skills

A local collection of documentation skills for Anthropic office tools, with instructions for cloning and installing only the needed files.

AvalonLee/AstraCraft-Program · 0 tokens

document-generation

Generate Word (.docx), Excel (.xlsx) and PowerPoint (.pptx) documents and fill existing PDF forms, from real NetClaw data, with per-element provenance and no fabrication. Use when someone needs a deliverable rather than an answer — a change record to attach to a CR, an audit workbook for a compliance reviewer, a…

automateyournetwork/netclaw · 91 tokens

document-processing

Use when the deliverable is a document's bytes or its literal content — text/tables out of PDFs, AcroForm fill and flatten, page merge/split, PDF/DOCX from templates, OCR of image-only scans. NOT schema-typed fields pulled from text (that is structured-extraction), NOT signature routing (e-signature) or spreadsheet…

ericrisco/rsc-harness · 84 tokens

docx

Read, create, and convert Microsoft Word (.docx) documents — extract text and tables, build reports from markdown/JSON, and export to PDF.

zhixuli0406/DuDuClaw · 34 tokens

document-processing-expert

Read, generate and modify office documents and PDFs from code: PDF extraction and forms, Word documents, Excel workbooks and PowerPoint decks. Use when the user mentions PDF, DOCX, XLSX, PPTX, Word, Excel, PowerPoint or spreadsheets, wants data extracted from documents, needs a report or invoice generated as a file…

personamanagmentlayer/pcl · 102 tokens

all2md

Convert, read, generate, search, and compare documents with the all2md CLI and Python library. Use whenever a task involves reading or extracting text/tables from a document (PDF, Word, PowerPoint, Excel, HTML, email, EPUB, Jupyter, images, or 100+ source-code and text file types); converting between formats…

thomas-villani/all2md · 181 tokens