
Kiro Workflows: hand off an issue, get back a reviewed PR on staging
I wrote a Kiro Workflows recipe that takes a GitHub issue to a reviewed draft PR on staging. This post covers the YAML, a real 51-minute run with its cost and what the reviewers missed, and how to set it up, verify it and clean up.
Series: Kiro (1 article)
- 1Kiro Workflows: hand off an issue, get back a reviewed PR on staging This article
I gave Kiro a GitHub issue, and fifty-one minutes later I had a draft pull request with tests, two reviews behind it, green CI, and the change on staging. I wrote one prompt. After that, all I did was click Allow on the commands it wanted to run and type "ok deploy".
Every issue needs different code, but getting it to staging takes the same steps every time. That's what the Workflows feature in Kiro is for. You write your process down once in a recipe file, and Kiro runs it in the background. Each step gets its own session and its own model, and a step can stop and ask you before it does anything risky.
Why not just chat?
| In a chat | In a workflow |
|---|---|---|
The plan | Rebuilt from your prompt each time | Written in the recipe, the same every run |
Code review | The same agent, unless you ask for a sub-agent | A separate agent in its own session, every time |
Model per step | Switch it yourself | One line per step |
While it runs | Your chat is busy | Your chat is free |
Skip a workflow for a typo or a rename. It runs several agents, so it takes longer and costs more than asking in chat.
How a recipe works
name: issue-to-deployinputs: issue: string # the issue number deploy: prompt # how your project deploys
steps: - type: step id: intake agent: wf-planner modelId: qwen3-coder-next artifacts: brief: .kiro/workflow-output/issue-to-deploy/issue.md prompt: > Read GitHub issue {{issue}} with `gh issue view` ... # then: plan, the build-and-review loop, verify, ship, deploy
A step is a prompt with an agent and a model. In mine, the builder and the two reviewers use models from three different providers, so the code is never reviewed by the model that wrote it.
inputs are what you supply when you start a run, and artifacts names a file that later steps can read. Steps never see each other's conversations, so those files are how they share work.
The full recipe has nine steps:

The loop repeats until the gate step writes
APPROVED to a file, and pauses for you after three rounds:
- type: repeat id: build-and-review maxIterations: 3 onMaxIterations: pause stopCondition: fileCheck: path: .kiro/workflow-output/issue-to-deploy/gate.json jsonPath: verdict value: APPROVED
Each step ends by calling
send_message with a severity, which decides what the run does next:Severity | What happens |
|---|---|
success | The run moves on to the next step. |
warning | The step asks you something and waits. Deploy uses it for the go-ahead. |
error | The run stops. This is how ship keeps a failing CI build away from staging. |
What my run taught me
I ran it on a sandbox repo , a small notes API, with an issue asking for pagination. The build passed both reviews in one round, CI went green, and deploy waited for my go-ahead.

The whole run took 51 minutes and about 37.6 credits. Four things I'd tell you before yours:
- Set the effort level. Unless the recipe sets
effortLevel, every step uses your chat's. Mine was on max, and the code review alone took 37 minutes and 80% of the credits.
- Set up command approvals. The run waits every time Kiro needs a command approved. Mine asked 62 times. Choose Always allow for commands you trust.
- Still read the diff. The reviewer found one missing test, marked it minor, and the run carried on. I changed the verify step to list minor findings in the PR description. The summaries also miscounted the tests and the acceptance criteria.
- Clear old output.
gate.jsonstays on disk, so one left over from your last issue would end the loop before it starts. My plan step resets it.
Try it yourself
The recipe isn't tied to my sandbox or to any language, so you can use it on your own projects. The plan step finds out how your project runs its tests, and you tell it how to deploy when you start a run.
You need a Kiro IDE version that has Workflows, a GitHub remote, and the GitHub CLI (
gh ) signed in. If a model in the recipe isn't on your plan, delete that step's modelId line and it uses your chat's model.- Turn on Workflows: open Workspace Configuration, choose Workflows, and switch it on. It takes effect in your next new chat.
- Install the recipe:
mkdir -p ~/.kiro/workflowscurl -fsSL https://raw.githubusercontent.com/Poobalan1210/kiro-workflows/main/workflows/issue-to-deploy.workflow.yaml \ -o ~/.kiro/workflows/issue-to-deploy.workflow.yaml- In your project's root folder, keep the run's notes out of git:
echo ".kiro/workflow-output/" >> .git/info/exclude- Start from your default branch with a clean working tree. Open a new chat, because every step is handed everything you typed in it, and ask:
Run the issue-to-deploy workflow for issue 142. To deploy, runmake deploy-staging, then check that https://staging.example.com/health returns 200.
The issue's text goes straight into the prompts of agents that can run commands, so on a public repo, only use issues you trust. Give the deploy step staging access only. You can stop a run at any time, but that doesn't undo commits or pushes.
No project ready? Fork the sandbox repo , turn on Issues and Actions in your fork, and clone it. Point
gh at your fork, or the run may open its pull request on my repo. Then create an issue with the text from mine and ask Kiro to run the workflow for issue 1 with npm run staging as the deploy command.gh repo set-default <your-user>/kiro-workflows-sandboxVerify. Check the result yourself instead of trusting the last message:
gh pr view --web # the draft PR, with the description from verifygh pr checks # every CI check should say passcat .kiro/workflow-output/issue-to-deploy/gate.json # {"verdict": "APPROVED"}npm test && npm run staging # in the sandbox; use your own health check on a real projectClean up. Close the PR, delete the branch, and remove the run's notes. On a real project, roll staging back the way your team normally does.
gh pr close <number> --delete-branchgit switch main && git pullrm -rf .kiro/workflow-output/issue-to-deployTo make it your own, edit the YAML: swap a model, add your team's rules to the review prompts, or drop the deploy step. Ask Kiro to run
validate_workflow after each change, and commit the recipe to .kiro/workflows/ to share it with your team.Series: Kiro (1 article)
- 1Kiro Workflows: hand off an issue, get back a reviewed PR on staging This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article