- Home
- Skills
- Agents & Orchestration
- GraphCompose AI Flow: Reference to Java PDF Template
More screenshots
Works with the AI Agents you already use
GraphCompose AI Flow: Reference to Java PDF Template
GraphCompose AI Flow is a harness for Claude Code and Codex that turns a document reference into a maintainable Java template and proves it matches.
$15
GraphCompose AI Flow: Reference to Java PDF Template
Example session with this skill installed
Create a GraphCompose invoice template from invoice.png in my Java project at ./billing-service.
- Read your context and instructions
- Compiled the graphcompose ai flow
Template ready for approval: invoice (revision-004)
Example of the end of a create run. The skill ran preflight, imported the reference and went through four render-and-diff passes.
| Pass | What changed | Result |
|---|---|---|
| revision-001 | First authoring: header, bill-to, line items, totals, footer | rendered, 6 regions over threshold |
| revision-002 | Line-item table: column weights and row padding | 3 regions over threshold |
| revision-003 | Header: logo resolved from assets, title typeface matched | 1 region over threshold |
| revision-004 | Totals block aligned to the table's right edge | all regions within threshold |
Files in your project (graphcompose-flow/projects/invoice/revisions/revision-004/)
generated-template.java: the template, built from sections, rows and anchors, no raw coordinatesinvoice-data.json: the content, behind a typed spec, so a new invoice is a new JSON fileoutput.pdf/output.png: the rendervisual-review.md: per-region diff results and what each pass fixed
Status: READY_FOR_APPROVAL
Next steps
- Open
output.pdfand compare it with your reference. - Say "approve" to publish the template bundle under
graphcompose-flow/templates/, or ask for a change ("make the header navy", "use Lato"), which opens revision-005.
Connects securely to your tools. The creator never sees your data.
About this skill
Recreating a document with an AI agent usually ends in one of two places: a screenshot-shaped pile of absolute coordinates nobody can maintain, or "looks about right" with no way to prove it.
GraphCompose AI Flow is a harness for Claude Code and Codex that turns a document reference into a maintainable Java template and proves it matches. Give it a reference (a screenshot, PDF or design image of a CV, invoice, proposal, cover letter or report) and it produces a maintainable Java template built from semantic GraphCompose primitives: sections, rows, weights and anchors, with the content in a JSON data file behind a typed spec.
How it works
- Analyse the reference: page size, regions, typefaces, colours, assets.
- Author GraphCompose code against a pinned, closed API allow-list, so the agent cannot invent methods that do not exist.
- Render and diff: the template is compiled, rendered to PDF/PNG and measured against the reference, region by region.
- Fix one cause per pass and repeat, within a bounded loop, until the result is ready for your approval.
- Approve: the revision is published as a reusable template bundle in your project.
Every change is a new revision; an approved one is never overwritten. Parity is a gate result from the diff tool, not the agent's opinion.
What you get
- Four workflow skills: create, revise, review and approve a template
- Deterministic tools: renderer, pixel diff, region analysis, structural checks
- Knowledge packs for GraphCompose 1.6 to 2.4 (API surfaces generated from the compiled library)
- A first-run bootstrap that checks Java 21, Maven and ImageMagick, installs them with your consent, fetches GraphCompose from Maven Central and registers the skills with Claude Code or Codex
Good to know
- Output is Java: you need a Java project (Maven or Gradle) that uses GraphCompose, or a new one.
- Best results today are in Claude Code; Codex is fully supported.
- Open source under MIT: github.com/DemchaAV/graphcompose-ai-flow
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
Requires Java 21+, Maven, and ImageMagick. Operates only on GraphCompose API surface. Only handles document templates (CVs, invoices, etc.). Needs network for bootstrap/Maven.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 21 days ago
- Software
Node.js 20+Java 21+ (JDK)Apache MavenImageMagick 7
Git
Permissions
Shell: runs node, mvn and magick to render and compare documents. Read/write files: writes templates and revisions into graphcompose-flow/ inside your Java project. Network: npm and Maven Central on first run, to install runtime dependencies and fetch the GraphCompose library.