Summary
This PR adds a new nanhu-pdf skill that enables Claude to generate PDF documents using the
https://github.com/hongjinqiu/nanhu-print-java framework — an XML-to-PDF generation library for Java.
What's Included
- SKILL.md — skill definition with trigger description, Maven dependency, quick start example, and workflow overview
- references/xml-template.md — comprehensive guide to XML template syntax, supported tags, CSS properties, and dynamic tags
- references/java-api.md — Java API reference covering NanhuprintInterpreter methods and Spring Boot integration patterns
- references/nanhuprint.xsd — the official XSD schema (authoritative source of truth for valid XML templates)
- references/examples.md — real-world examples including invoices, reports, and tables
How It Works
Users describe a PDF they want to generate. Claude then:
- Writes an XML template conforming to the nanhu-print-java schema
- Prepares the JSON business data
- Shows how to call NanhuprintInterpreter to produce the PDF
Trigger Examples
- "Generate a PDF invoice with nanhu-print-java"
- "Write an XML template for nanhu-print-java"
- "How do I call NanhuprintInterpreter?"
- "Create a report PDF using nanhu-print-java"