Synthlabs generation

From mkurman/zorai · View interactive version

Synthlabs generation is an AI agent skill from the GitHub repository mkurman/zorai. Use when you need to drive SynthLabs generation through backend routes instead of the UI.

How to use this skill

Skill file

SynthLabs Generation

Overview

Use this skill for repeatable, backend-first SynthLabs workflows such as listing sessions, creating sessions, and calling generation routes from a healthy local instance. This skill documents existing SynthLabs HTTP routes and zorai workflow guidance only. Do not assume dedicated zorai SynthLabs tools exist.

When to Use

Use this skill when:

Do not use this skill when:

Backend-First Workflow Rules

Backend vs. UI Routing

Credential Boundary

Session Examples

List recent sessions from a healthy local backend:

curl -fsS "http://localhost:8787/api/sessions?limit=20"

Create a minimal session shell before generation work:

curl -fsS -X POST "http://localhost:8787/api/sessions" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "zorai generation run",
    "source": "zorai"
  }'

If you know the running instance expects mode metadata, extend the payload with fields the backend stores such as appMode, engineMode, externalModel, or config.

Generation Example

Use a direct generation route only with an encrypted key value produced by a compatible SynthLabs client or UI flow:

curl -fsS -X POST "http://localhost:8787/api/ai/generate" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "<encrypted iv:ciphertext value from SynthLabs-compatible flow>",
    "provider": "openai",
    "model": "gpt-4.1-mini",
    "baseUrl": "https://api.openai.com/v1",
    "systemPrompt": "You generate concise synthetic reasoning samples.",
    "userPrompt": "Produce 3 algebra tutoring examples in SYNTH-style JSON.",
    "outputFormat": "json"
  }'

Long-Running Work

Common Mistakes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.