branded-doc
Generate professional branded HTML documents from structured content. Use when the user asks to create a proposal, contract feedback, client response, pricing sheet, or any professional document that needs branding. Triggers on: "draft a response", "create proposal", "branded doc", "feedback document", "client document", "/branded-doc".
- License 许可
- Apache-2.0
- 所属仓库
- EtanHey/golems
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- branded-doc
- description
- Generate professional branded HTML documents from structured content. Use when the user asks to create a proposal, contract feedback, client response, pricing sheet, or any professional document that needs branding. Triggers on: "draft a response", "create proposal", "branded doc", "feedback document", "client document", "/branded-doc".
02 资源文件 2
- 参考文档example.json2.4 KB
- 脚本scripts/branded-doc.ts17.7 KB
03 SKILL.md 正文
Branded Document Generator
Generate A4-ready branded HTML documents with color-coded sections, pricing tables, and RTL support.
How It Works
- Build a JSON file with the document content
- Run
bun skills/branded-doc/scripts/branded-doc.ts input.json output.html - Open the HTML in a browser and print to PDF
Quick Start
# Generate from JSON file
bun skills/branded-doc/scripts/branded-doc.ts docs.local/doc-input.json ~/Documents/output.html
# Pipe from stdin
cat docs.local/doc-input.json | bun skills/branded-doc/scripts/branded-doc.ts - ~/Documents/output.html
JSON Schema
{
"title": "Document Title",
"date": "1 March 2026",
"recipient": "Name — Company",
"intro": ["Opening line.", "Context line."],
"sections": [
{
"num": 1,
"title": "Section Title",
"tag": "change",
"body": "Section content in natural language."
}
],
"pricing": {
"title": "Pricing",
"headers": ["Plan", "Rate", "Total"],
"rows": [["Retainer", "$100/hr", "$2,000"]],
"note": "Optional footnote."
},
"availability": "Immediately.",
"closing": "Closing line.",
"output": "~/Documents/output.html"
}
Section Tags
| Tag | Label | Color | Use |
|---|---|---|---|
remove |
Remove | Red | Delete this clause |
change |
Change | Amber | Modify this clause |
add |
Add | Green | Add new clause |
narrow |
Narrow | Amber | Reduce scope |
note |
Note | Blue | Informational |
Branding Configuration
Personal branding loads from ~/.config/branded-doc.json:
{
"name": "Your Name",
"nameHebrew": "השם שלך",
"title": "Your Title",
"email": "you@example.com",
"phone": "+1 555-000-0000",
"website": "example.com",
"logoBase64": "(optional) base64-encoded PNG/SVG image for header logo"
}
Per-document override via "branding" field in input JSON.
Writing Rules
When generating document content:
- Write naturally, not like AI output
- Body text: no em dashes, use commas/periods
- Titles: em dashes OK for section titles
- Vary sentence length and structure
- No "in addition" at the start of every point
- Read like a professional would write in email
04 同仓库更多 Skills
yash
Push dependency bugs upstream. Triggers: dependency bug, workaround, monkey-patch, fork/fix. NOT app bugs.
whats-new
Diff Claude/Codex/Cursor/Wispr/agy changelogs vs local setup. Triggers: whats new, changelog, version bump.
weave
Orchestrator convergence: mine JSONLs, cite findings, route actions. Triggers: weave, run weave.
unslop
Cut AI tells while keeping every receipt, number, path, and hedge intact. Triggers: unslop, cut the slop, wall of text, too verbose, rambly, make this readable. NOT for delivery cadence (see i-have-adhd), channel choice, or artifact length governance.
tmp-block
Guard denying durable writes to /tmp, /private/tmp, /var/folders, $TMPDIR; enforces <repo>/.worktrees/<name>. Triggers: tmp guard, TMP-BLOCK deny, WORKTREE-CONVENTION deny, bypass ledger. NOT for storage policy.
t3-visuals
Show/visualize/chart/diagram/compare/status board in T3 with compact interactive HTML. Not standalone dashboards.