The Document Generation Backend for AI Coding Agents
Connect Google Antigravity, Claude Code, Cursor, and custom LLM pipelines directly to high-fidelity Word templates and high-throughput batch generation APIs.
TRYDOKU Document Generation Skill
Official installable skill for Claude Code, Cursor, Codex, and Google Antigravity. Clone the public repo and copy the trydoku-generation folder into your agent's skills directory. Set TRYDOKU_API_TOKEN in the environment that runs the agent.
git clone https://github.com/Trydoku/agent-skills.git
cp -R agent-skills/skills/trydoku-generation /path/to/your-project/.agents/skills/
.claude/skills/
.cursor/skills/
.agents/skills/
.agents/skills/
Copy the entire folder so SKILL.md sits inside trydoku-generation/. Cursor also accepts .agents/skills/. Install details are in the repository README.
AI Developer Series
Using TRYDOKU with Google Antigravity: Automate Document Generation with AI
Connect Google's agentic IDE with TRYDOKU's template-based document engine. Learn how to configure custom agent skills and execute automated batch workflows.
Using TRYDOKU with Claude Code: Build an AI-Driven Document Generator
Integrate Anthropic's Claude Code CLI and Claude.ai Projects with TRYDOKU using OpenAPI schemas to assemble contracts and invoices automatically.
Programmatically Generate Contracts & NDAs with the TRYDOKU API
Learn how to scale legal agreement generation and NDA creation with zero data retention, webhook notifications, and automated Word templates.
Built for LLMs, Crawlers & Agentic IDEs
TRYDOKU provides standardized machine-readable context files adhering to the llms.txt specification, enabling AI systems to discover our API capabilities without hallucinations.
AI Document Generation: Best Practices
Follow these 5 architectural principles to build reliable, cost-effective agentic document rendering pipelines.
Anchor Agents with the OpenAPI Schema
Always feed /llms-full.txt or the OpenAPI JSON schema directly into your agent's system prompt or workspace context. This anchors the model to exact endpoint URLs (POST /api/v1/generate) and payload properties (template_base64, data), preventing URL and parameter hallucinations.
Strict Template Syntax Rules
Use standardized placeholder syntax: {{ var }} for single values, {> loop }} ... {< loop }} for table row repeats, and {% if var %} ... {% endif %} for conditionals. Avoid inventing unsupported custom delimiters.
Pre-Validate with Client-Side Tools
Before executing automated batch runs, inspect templates using the free Word Template Variable Parser. It extracts all placeholders client-side in browser RAM and exports a matching Excel template (.xlsx) with zero server uploads.
Batching Economics & Idempotency
TRYDOKU credits are billed per accepted row in your data array at batch creation time. Submitting 100 rows in a single batch request is significantly faster and more reliable than dispatching 100 individual single-row requests. Polling batch status is always free.
Resilient Rate Limiting & Backoff
Ensure your agentic scripts handle HTTP 429 rate limit responses gracefully. Implement exponential backoff (e.g. initial delay of 2 seconds, multiplied by 1.5 up to 8 seconds) rather than aggressively spamming generation endpoints.