The whole flow in four lines. Each is a fresh session.
- Define: “Plan this idea with web search, name the existing tools, and write
docs/plan.md.” - Storyboard: “From the plan, build the screens as an interactive page behind a login, inspired by these links.”
- Orchestrate: “Spawn sub-agents to build the storyboard on this stack, and get Ankra to run it.”
- Deploy: “Bring up development, test it in a browser, and only then promote the same tag to production.”
Four sessions, four artefacts: a plan, a storyboard, a build, and a verified deployment
What you need
- The Ankra CLI and the agent skills installed for your assistant, as described in Build it with your AI coding assistant.
- An empty GitHub repository and a GitHub credential in your Ankra organisation that can reach it.
- A development cluster and a production cluster. Development is where the agent may create and delete anything. Production is where it may not, without you.
- The tools the agent verifies with: a browser it can drive (for example Claude in Chrome), and a way to tell the team when it is live (for example a Slack integration). Both are optional, and both make the last stage much stronger.
- Optionally, the Ankra MCP server, so the agent can read clusters, runs and logs directly instead of through the CLI.
Run each stage in a fresh session. A long conversation accumulates stale assumptions, and the artefact from the previous stage is a better memory than the transcript.
Stage 1: Define the idea
The first prompt asks for a detailed plan and forces the agent to look outward: what already exists, what people pay for, which tools would do half the job for free. Only then does it commit to building.- Three to five real competitors with links, pricing, and the one thing each does better than you will.
- A sentence per bounded context: what it owns and what it never touches.
- The dependency rule drawn as a diagram, with the database on the outside.
- The test pyramid as a contract: what runs on every commit and what runs nightly.
- Milestones measured in demos, not in weeks.
Stage 2: Storyboard
A fresh session takes only the plan. It produces a storyboard: every screen, every journey, every empty and error state, reusing the logos, palettes and components you already own.Serve it for review
The storyboard goes live on a subdomain of the cluster’s generatedankra.cc domain behind basic authentication, with a Let’s Encrypt certificate, so the review is a URL and not an attachment. The agent can do this from the prompt above. The shape it produces is a stack of seven manifests: a namespace, a ConfigMap holding the page, a Secret holding the password hash, a Traefik middleware, a Deployment of an unprivileged nginx, a Service and an Ingress.
users key, sealed with ankra cluster encrypt manifest before it is committed. The two manifests that make it private:
Stage 3: Orchestrate
The third session gets the storyboard and a hard constraint: the technology choices are already made. Its job is to spawn as many sub-agents as the work needs, keep them on the same stack, and let Ankra build the platform underneath.- One agent per bounded context from the plan.
- One agent owns the schema and its migrations.
- One agent owns the test harness and the fakes for every port.
- One agent owns the Ankra application and its pipeline.
- The orchestrator integrates and reviews. It never writes code itself.
The agent contract
A prompt is one conversation. A contract is every conversation. Put the standards, the tools and the gates where the agent reads them automatically, so the fourth session behaves like the first.- Skills over long prompts. Package “how we add a migration” as a skill. The orchestrator invokes it by name and sub-agents inherit the same procedure.
- One worktree per agent. Parallel sub-agents never share a checkout. Each gets its own worktree and branch, and the orchestrator merges through pull requests.
- Hooks are the hard gate. The harness runs the tests, so the agent cannot forget to.
- Permission modes match the blast radius. Planning is read-only. Building edits a worktree. Deploying to development may create and delete freely. Deploying to production needs a human.
Stage 4: Deploy and verify
Development first. Production only after the gate.Development
A cluster with its own
.dev domain. The agent may create and delete any resource. It must test the product in a real browser: sign up, sign in, every journey in the storyboard and every error state. Tests, build, Semgrep, Checkov and Trivy are green; migrations apply and reverse; logs and metrics are visible in Ankra.Production
A separate cluster with the
.com domain, not brought online until development is online and fully tested. Nothing is created here by hand: the same pipeline promotes the same immutable image tag. Secrets and variables are set per environment, DNS and TLS are automated.Make “done” mean evidence
“Done” is a claim. Evidence is the deliverable. Append this to any stage prompt:
The loop is build, verify, read the evidence, fix, verify again. The agent runs it, and you read the evidence before the code. Add reviewers for the reviewer: a second agent reviews the pull request with no memory of writing it, and Ankra AI reviews every pull request and watches every pipeline run.
Day 2: keeping it in production
- Supply chain. Every push builds rootless in your cluster, is scanned by Semgrep, Checkov and Trivy, and publishes an immutable
sha-tag. No tag is ever overwritten. - Secrets. Nothing in plaintext. SOPS-encrypted manifests in Git (SOPS), per-environment secrets in the platform, and least-privilege tokens for every integration.
- Observability. Metrics, logs and events from day one. The agent can query Prometheus and read pod logs, so “why is it slow” is a prompt and not a war room. See Cluster metrics.
- Promotion and rollback. The same image moves from development to production through the pipeline, and rolling back is redeploying the previous tag.
- Alerts that reach people. Route pipeline failures, blocked images and cluster events to your channel. See Notification routing.
- Backups. Protect every stack that holds data into a vault. See Backups and restore points.
Prompt like a tech lead
One stage, one session
One stage, one session
Planning, design, building and shipping each get a fresh context with only the previous artefact as input.
Name the constraints up front
Name the constraints up front
Stack, database, migration tool, and what you refuse to use. Every unstated preference is a decision the agent will make differently each time.
Demand evidence
Demand evidence
“Use web search”, “cite the competitor”, “show the test output”. The verb in your prompt decides whether you get a plan or a guess.
Write prompts that are reusable
Write prompts that are reusable
If a prompt works, it is a template. Keep the four stage prompts in the repository and improve them the way you improve CI configuration.
Give it the tools, not the answers
Give it the tools, not the answers
A browser, Slack, the Ankra CLI, the repository. An agent that can verify its own work needs far less supervision than one that can only talk.
Gate promotion on verification
Gate promotion on verification
Development must be seen working, in a browser, by the agent, before production exists. Put the gate in the prompt so it is never forgotten.
Next steps
Lovable to Ankra
Already built the app in a visual builder? Take it from its repository to production.
Production multi-cluster platform
The infrastructure around a fleet: central metrics, logs, sign-in, backups and alerts.
Ankra Pipelines
Every stage the pipeline runs, and how the gate decides what may publish.
Agent Skills
Install Ankra’s skills into Claude Code, Cursor, Codex, Copilot and more.