
When an AI agent gets a bad assignment, it writes bad code for both platforms at once. Natália Poháňková and Petr Polívka showed how they prepare a PRD on a banking mobile app: one document that feeds the plan and the implementation for both iOS and Android. This article is based on their talk at AI pivko in September 2026, an internal meetup where Ackee developers share how they actually work with AI agents.
📋 TL;DR
- A PRD (product requirements document) is a short document on what is being built, why, and how we'll know it's done. At Ackee it is a fixed part of the agentic workflow.
- A banking mobile app has an enormous number of sources: the bank's brief, Figma, Confluence, tickets, some of it behind a VPN. Whoever goes through the sources and writes the PRD saves everyone else from learning the feature from scratch.
- The PRD is one contract for iOS and Android, an input for planning, and lasting documentation of why and how something was implemented.
- The start-work entry point loads the ticket and chooses one of three paths: A (no PRD yet, so we grill), B (a PRD exists, go straight to the plan) and C (a small change or bug where a PRD would be a waste of time).
- Subagents do the work and return artifacts. The orchestrator keeps only decisions and summaries, so the context stays clean.
- The PRD template has a fixed header and sections from the problem to out of scope. Out of scope turned out to be surprisingly useful.
- The flow has seven human gates so far. That's deliberate while the process is being tuned. The team wants to get rid of them gradually.
- Glossary and ADRs are created during the grilling, not afterward, and live in a shared repo as the source of truth for both platforms.
📄 Why write a PRD at all
According to Ackee, the analysis phase is the most important part of agentic development (more on that in the article on AI agent output quality). Its output is the PRD: a document with the complete context of the task for people and for Claude Code, the sources it was based on, and open questions for the backend or product.

Petr Polívka and Natália Poháňková work on a bank's mobile app for iOS and Android. They saw four main benefits of a PRD:
- Alignment before code. The shared "what and why" is created before anything is built. Fixes happen during the grilling, not on the merge request.
- One source for both platforms. iOS and Android build against the same contract and don't drift apart.
- An input for AI planning. A small structured document breaks down easily into plan phases.
- A lasting "why" and a definition of done. Success criteria say when it's done. Together with ADRs and the glossary, the PRD outlives the session and people leaving.
A PRD can also be prepared in advance, without implementation. Someone other than the implementer can do the analysis, even months earlier. Meanwhile the open questions get resolved with the backend or with the client in a workshop, and implementation can then start only after the backend is deployed.
On the banking project the team has a business brief from the client, a design in Figma, backend documentation in Confluence and a lot of tickets. Part of it is behind a VPN. When one person goes through all of it and captures the result in a PRD, the other doesn't have to learn the feature from scratch. They pull the PRD and go straight to implementation.
🧭 Two axes: workflow and traceable context
Ackee measures progress in AI adoption with its own levels (AI adoption levels, PAL for short). The PRD process covers two of them at once:
- PAL3a: workflow. Reusable team workflows with human gates, delegation to subagents with clean handover of results, and a human holding the gates from start to merge.
- PAL3b: context. Lasting artifacts in the repo with a single entry point: ADRs, a glossary and contracts as the source of truth. The "why" can be traced through the PRD, the ticket, ADRs and commit history.

🛤️ From ticket to merge request: start-work and subagents
The whole process has six steps. The input is a Redmine ticket (a change request, bug, incident or feature). Start-work handles it: it does intake and classification and guards the human gates. Next comes a path depending on the task type, possibly with PRD creation, then a plan split by phases and platforms, do-work (implementation, verification, final review, commit) and finally the push and merge request, which happens only on an explicit instruction from a human.

Start-work tries to delegate as much work as possible to separate subagents. Each returns an artifact that survives compaction and context clearing and saves tokens:
| Subagent | What it does |
|---|---|
| ticket-intake | pulls the ticket, the parent ticket and sources, and prepares a classification summary |
| design-intake | reads frames from Figma and returns a design summary |
| grill-with-docs · to-prd | aligning on and writing the PRD (path A) |
| plan-review · prd-review | independent critique in a clean context before approval |
| do-work | the whole implementation: implement, verify, review, commit |
The orchestrator is a "thin router". It keeps only decisions and summaries, the heavy work runs in the separate contexts of the subagents, and the main session stays clean. Ticket intake also has two modes. Light pulls only Redmine, parent tickets and attachments, which is enough to estimate the size of the task. Full also goes into the bank's sources and Confluence.
🔀 Task classification: paths A, B and C
Based on the loaded sources, the classifier sorts tasks into three paths:
- Path A: no PRD. A new, larger feature for both platforms, a change across several layers, a new flow, a new domain, or a new or changed backend contract. Grilling and PRD creation follow.
- Path B: a PRD exists. The PRD is already attached to the ticket or its parent, typically because the other platform wrote it. The agent doesn't pull more details from Confluence (that would be expensive and counterproductive preparation) and goes straight to the plan.
- Path C: a small change. A bug, an incident or a demonstrably small change in one module, with no new flow or contract. Natália typically uses it when she knows where the bug is and just doesn't want to write it by hand.

The default is never path C. A ticket that has to define behavior belongs on path A, even if it's tracked as a bug. When in doubt, the agent asks.
🔥 Path A: grilling against the domain
When there is no PRD, three skills step in: grill-with-docs, to-prd and prd-to-ticket.
Grill-with-docs is based on Matt Pocock's grill-with-docs skill. The agent holds a thorough conversation with a human against all the sources:
- it goes deep, one question at a time, and offers a recommended answer to each,
- it attacks weak spots and over-engineering,
- it prepares open questions for the backend and product, which the human can take straight to a workshop with the client,
- it keeps writing terms into the glossary and decisions into ADRs as it goes.
One important rule applies: vocabulary comes only from what people say and from specifications, never from names in the code. The code is for verification, not a source of vocabulary.
To-prd writes a small PRD from the conversation, then stops and waits for human approval. Prd-to-ticket is a deliberately simple skill: it finds the parent ticket and puts the PRD into it. The result is an approved PRD on the parent ticket and a glossary with ADRs in shared documentation that iOS can access too.
How to get by without a monorepo
The whole flow would be simpler with a monorepo, which the project doesn't have yet. So the team decided that the source of truth (glossary and ADRs) would live in the Android app's repository. iOS reaches it through a shared Kotlin Multiplatform module that is linked into the project.
On Android everything works directly. iOS needs a crutch: at the end of the session (only after the final review), the /contribute-shared-docs skill prompts the human, does a quick pass over the git diff and sends the new terms and ADRs as a merge request to the Android repo. Natália recommends that merge requests for the glossary and ADRs be approved by a developer from the other platform. That way people check each other on what the agent produced and whether the names match reality.
📝 What a PRD looks like: a template that holds the scope
The PRD lives in the parent ticket (the change request), not in the repository. It is meant to be platform-independent, so it contains no class names or locations in the code. The team describes it as something between a technical and a business analysis. It plays three roles:
- A contract for humans: what we're building, why and how we'll know it's done. It's approved before the plan.
- An input for the planner: the planning skill splits the PRD into phases by stories and criteria.
- A guide for the other platform: a shared contract for iOS and Android, and a real PRD also carries an implementation reference.

The template has the sections TL;DR, Problem, Solution (a diagram takes precedence over prose), User Stories and Requirements, Success Criteria (measurable), Edge cases and error behavior, Decisions (recorded, not newly made), Open Questions and Out of Scope. The header is always the same: the sources used, links to the glossary, ADRs and resulting handoffs, and the scope (parent and child tickets, one contract, two platforms).
The content varies by task. A structured address according to ISO 20022 instead of free text for SWIFT and SEPA payments was a clear-cut case, so a PRD of roughly a hundred lines was enough. ESG indication and search reached further into the backend, so the PRD included a data contract as well. For deduplication of the signing screen the behavior was the hard part, so the PRD carried pseudocode and a guide to the logic. It wasn't Swift or Kotlin, but a proper specification of how the logic should behave.
Petr first thought it was pointless, but it turned out to be one of the most useful. Claude likes to expand the assignment ("this could be changed too, that could be aligned"). An explicit list of what the task doesn't cover keeps it within bounds.
The PRD is updated during and after implementation too, when a change comes in or something turns up that the analysis didn't anticipate. That's the only way it stays a valid source into the future.
🚦 Human gates: where the process stops for a human
Because the flow is new and the team is tuning it, there are still many points where the agent waits for a human:
- Path confirmation for A or B, before the expensive work starts.
- Grilling: the conversation with a human isn't delegated.
- PRD approval: a hard pause, preceded by prd-review.
- Plan approval: after plan-review.
- Verify and final review: deterministic "does it work?" gates, plus a check in the IDE.
- Push, merge request and writing to Redmine: only on instruction, and writing to Redmine is allowed in just two places.
- Contribute-shared-docs: at the end of an iOS session, started only by a human.

That many stops is deliberate: the team is still tuning both the flow and the setup, and a human holds every gate. Once the process proves itself, the plan is to remove them on purpose, moving toward a more autonomous process from ticket to merge. One gate will probably stay, though: writing to Redmine. The client sees the tickets there directly, so the team checks that the agent doesn't write anything that shouldn't be shared with the client.
🗂️ Traceable context: glossary, ADRs and contracts
The second axis of the process is context that can be traced:
CONTEXT-INDEX.md: a single entry point, imported intoCLAUDE.md.- ADR log: a shared folder of architecture decisions. Records aren't edited, only replaced by new ones.
- Glossary and context map: a ubiquitous language and boundaries of contexts (domain-driven design terms), shared with iOS.
- Contracts as the source of truth: a GraphQL submodule, the local database schema, the Figma connection and verification against the actually deployed backend.
- A constellation of "why": the PRD, the ticket, ADRs and commit history together.

Grilling and to-prd fill this layer as they go: the glossary and ADRs are created during grilling, not afterward.
💬 What changed in practice
Natália sees the biggest difference in how she works with information. It used to happen that a week in, Petr would come with an edge case she hadn't thought of. Now such things get resolved during grilling. The benefit shows over the long term too: a PRD someone wrote two weeks ago is still usable.
“For me personally, the change was most visible in that it was one document I had to read, and I didn't have to look for sources across everything, both behind the VPN and outside it.”
So Natália and Petr recommend rolling out the PRD flow on other projects too. The whole approach rests on ordinary skills that are simply put together, and thanks to a unified workflow in Claude Code the outputs are consistent across the team.
Frequently asked questions
🎯 Key takeaways
The PRD flow isn't extra bureaucracy but the intersection of two things: a workflow that guides the agent step by step with gates for humans, and context that is captured and can be traced. Start-work decides whether to grill, read an existing PRD, or go straight to a fix. The PRD then serves as a contract for the human, an input for the planner and a guide for the other platform.
For multi-platform projects this is essential: one platform does the analysis, the other takes the finished contract. Subagents keep the context clean, and the orchestrator only decides and delegates. And knowledge that would otherwise stay in one developer's head stays in the PRD.
If you're curious how the same team shares code with Android, not just the assignment, read the article on Kotlin Multiplatform in a banking app.
AI pivko mini-series: AI agent output quality: five layers and workflows · Autonomous bug fixing: from ticket to merge request
More notes like this from Ackee are in our newsletter. Subscribe and the next one lands straight in your inbox.




