一键导入
test-templates
Render all WebUI templates through the PDF pipeline and verify output correctness
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Render all WebUI templates through the PDF pipeline and verify output correctness
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Dual-perspective code review — Lead Dev (architecture/correctness) + Dev (implementation/tests). Runs entirely in the main agent for easy follow-up.
Update EggPdf documentation — README, docs/ wiki pages, site/, llms.txt, CLAUDE.md — to reflect current implementation
Implement a new feature following EggPdf's test-first, performance-aware development loop
Render HTML through EggPdf and analyze PDF output for visual correctness issues
Run EggPdf benchmarks and analyze performance for specific rendering scenarios
Fix a bug following the test-first approach -- reproduce with test, then fix, then verify
| name | test-templates |
| description | Render all WebUI templates through the PDF pipeline and verify output correctness |
| allowed-tools | Bash(dotnet *), Bash(curl *), Bash(cat *), Bash(grep *), Bash(wc *), Read, Grep, Glob, Agent |
Render every WebUI template through the EggPdf API and verify PDF output quality.
Ensure service is running
curl -s http://localhost:55727/health || (dotnet run --project src/EggPdf.Service -c Release -- --urls http://localhost:55727 & sleep 8)
Extract template HTML from src/EggPdf.Service/wwwroot/index.html
templates JavaScript objectFor each template, render via API and verify:
curl -s -X POST http://localhost:55727/api/render \
-H "Content-Type: application/json" \
-d '{"html":"TEMPLATE_HTML"}' -o /tmp/test_TEMPLATE.pdf
Verify each PDF:
re f or h f appear BEFORE their text Tj)? characters replacing special chars (bullet, em-dash etc.)/Encoding /WinAnsiEncodingc operator)Report results as a table:
| Template | Size | Text OK | Backgrounds | Borders | Paint Order | Issues |
|---|---|---|---|---|---|---|
| blank | ... | ... | ... | ... | ... | ... |
| invoice | ... | ... | ... | ... | ... | ... |
| ... | ... | ... | ... | ... | ... | ... |
Flag any template that has:
? instead of special characters