GraphCompose AI Flow

Install a GraphCompose harness into your coding agent. Drop in a
document reference. Ask Claude Code, Codex or Gemini CLI to recreate it.
The agent generates, renders, compares and iterates until the template is
ready for your approval.
Create a GraphCompose CV template from resume.png
The output is not a drawing that happens to match one screenshot. It is
a maintainable Java template built from semantic GraphCompose primitives
— sections, rows, weights, anchors — with the content in a JSON data
file, the assets resolved and recorded, and every revision kept.
https://github.com/user-attachments/assets/881eebc2-779f-4518-bc61-4dcbef6022c3
AI doesn't draw PDFs. It compiles them. — also on YouTube in full HD.
Install
Claude Code
/plugin marketplace add DemchaAV/[email protected]
/plugin install graphcompose-flow@graphcompose
That pins the release you install. Drop the @… to follow the default
branch instead. To move a pinned install to a newer release, remove the
marketplace and add it again at the new tag — /plugin marketplace remove graphcompose uninstalls the plugin and its plugin data, not your
workspace. Every release is tagged v<version> and
graphcompose-flow--v<version>.
Then, once, inside the installed plugin — Claude Code puts it under
~/.claude/plugins/cache/graphcompose/graphcompose-flow/<version>/:
cd ~/.claude/plugins/cache/graphcompose/graphcompose-flow/<version>
npm run setup
Two of the tools are TypeScript compiled into dist/, which is not
committed, so a fresh install has no build output; until setup has run,
those two exit with code 69 and say so. Every /plugin update lands a
new <version> directory, so run it again after updating — or let the
first preflight of a run do it, which it will. Full instructions and
troubleshooting: docs/plugin-installation.md.
Codex
git clone --branch v0.24.0 https://github.com/DemchaAV/graphcompose-ai-flow
cd graphcompose-ai-flow
npm run setup
node adapters/codex/install.mjs
That copies the runtime to ~/.codex/graphcompose-flow/<version>/ and
installs four skills pointing into it, so the clone is not needed
afterwards — move it, rename it or delete it and the skills keep
working. See adapters/codex/README.md.
One zip (Agensi)
Each GitHub Release carries graphcompose-ai-flow-<version>.zip: one
skill bundle a skill marketplace installs into Claude Code or Codex, which
then sets itself up on first use — Java, Maven and ImageMagick only after
you say yes. See adapters/agensi/README.md.
Gemini CLI
git clone --branch v0.24.0 https://github.com/DemchaAV/graphcompose-ai-flow
cd graphcompose-ai-flow
npm run setup
node adapters/gemini/install.mjs
Gemini has extensions rather than plugins, so that writes one to
~/.gemini/extensions/graphcompose-flow/ — four slash commands, the
workflow skill, the telemetry hooks and the runtime inside it — and the
clone is not needed afterwards either. Restart Gemini CLI, then
gemini extensions list. See
adapters/gemini/README.md.
You need Node 20+, Java 21+, Maven and ImageMagick, plus a Java project
that pins GraphCompose — the version in your build file decides which
skill pack the agent authors against.
Never done any of this before? Start with
docs/getting-started-from-zero.md:
which agent to pick, every tool with its download and its check, the
first template step by step, and what each error means.
Sixty seconds, end to end
Open your Java project — the one whose pom.xml or build.gradle pins
io.github.demchaav:graph-compose — in Claude Code, and:
1. node scripts/preflight.mjs --project-dir . # version, pack, tools; builds what is unbuilt
2. node scripts/init-workspace.mjs --project-dir . --project my-invoice
3. drop the reference in the chat and say: "Create a GraphCompose invoice template from this"
The workspace step matters more than it looks: without it the work lands
inside the plugin install, which is replaced on the next update. From
there the skill runs the loop — analyse, author, render, compare, fix one
cause, repeat — and stops at READY_FOR_APPROVAL with the paths to
output.pdf and output.png. Say "approve" when it is right, and the
bundle lands under graphcompose-flow/templates/.
Keep the document open while it works