zmime.com
Agentic IDE · Kiro

Prompt for Kiro

Kiro works from your project context. The prompt that pays off most is the one you write once as a steering file.

  • Agentic IDE
  • Specs
  • Steering
  • Hooks
  • Autopilot
01 — Overview

What Kiro rewards

Kiro is an agentic development environment: it reads your workspace, edits files, runs commands and verifies its work. That changes what a good prompt looks like. Instead of describing code, you describe the outcome, the constraints and how success is checked, then let the agent plan.

Two Kiro features do the heavy lifting. Specs turn a feature into requirements, design and tasks you approve before implementation, which suits anything non-trivial. Steering files under .kiro/steering hold standing context — stack, commands, conventions, guardrails — so you stop repeating it in every prompt. Hooks let you attach automatic actions to events such as saving a file or finishing a task.

  • 01Spec sessions for structured requirements to design to tasks workflows.
  • 02Steering files that inject project rules into every request.
  • 03Hooks for automation on save, on task completion and other events.
  • 04Autopilot and supervised modes, so you choose how much review you want.
02 — Anatomy

What a Kiro task prompt should contain

  • Outcome The user-visible result, not the implementation you have in mind.
  • Pointers Files to read first and an example that shows the convention.
  • Constraints No new dependencies, keep the API, match existing patterns.
  • Acceptance criteria Checkable statements including edge cases.
  • Verification Build, lint and test commands the agent should run before reporting done.
  • Scope fence Files and areas to leave untouched.
  • Escalation When to stop and ask instead of guessing.
03 — The prompts

5 prompts written for Kiro

Paste, then replace the [bracketed] parts. Keep the wording identical for anything you want repeated across a set.

Nothing matches that word. Clear the field to see every prompt.

Prompt 01

Steering file for project rules

Write once into .kiro/steering, and every session inherits it.

  • steering
  • setup
Template · plain text
Create a steering file at .kiro/steering/project.md capturing how this repository works, based on what you find in the codebase.

INCLUDE
- Purpose: one paragraph on what this project does.
- Stack and versions, taken from the manifests you find.
- Directory map: what belongs where, and where new code should go.
- Commands: install, dev, build, test (whole suite and single test), lint, format.
- Conventions: naming, error handling, logging, state management, data access.
- Testing rules: what must have tests, what style, where they live.
- Guardrails: never edit [generated files / applied migrations], never commit secrets, ask before adding dependencies or changing schemas.
- Definition of done: build passes, tests pass, lint clean.

RULES
- Verify every command against the actual config files rather than assuming.
- Imperative voice, no filler sections, under 150 lines.
- Flag anything you could not confirm as "TODO: confirm".
Prompt 02

Feature task with acceptance criteria

A single well-scoped change you want implemented and verified.

  • feature
  • task
Template · plain text
GOAL: [user-visible outcome in one sentence].

READ FIRST: [file paths that matter]
FOLLOW THE PATTERN IN: [reference file]

BEHAVIOUR
- [Requirement 1 as observable behaviour]
- [Requirement 2]
- Edge cases: [empty state], [error from dependency], [permission denied]

CONSTRAINTS
- No new dependencies without asking.
- Do not change the public interface of [module].
- Match existing error handling and logging.
- Keep the diff minimal; no opportunistic refactors.

ACCEPTANCE CRITERIA
1. [Checkable]
2. [Checkable]
3. Existing tests still pass.

VERIFY BEFORE REPORTING DONE
- `[build command]`
- `[test command]`
- `[lint command]`

OUT OF SCOPE: [files or areas to leave alone]

Plan first: list the files you will touch and why, then implement.
Prompt 03

Spec session kickoff

Bigger features where you want requirements and design approved first.

  • spec
  • planning
Template · plain text
I want a spec for [feature].

PROBLEM: [who has it, what it costs them today]
CURRENT BEHAVIOUR: [how the system works now, and which files own it]
DESIRED BEHAVIOUR: [what should be true afterwards]
NON-GOALS: [explicitly out of scope]
CONSTRAINTS: [performance budget, backwards compatibility, data migration limits, deadline]
USERS AFFECTED: [segments, and any permissions differences]

For requirements, cover the unhappy paths as well: [empty data], [concurrent edits], [offline], [rate limits].

For design, I want to see: the data model changes, the interfaces involved, where the logic lives, the migration path, and the rollback plan.

Ask me anything ambiguous before writing the design. Keep tasks small enough that each one can be verified on its own.
Prompt 04

Codebase onboarding question

Understanding unfamiliar code before changing it.

  • onboarding
  • investigation
Template · plain text
Explain how [feature/flow] works in this repository. Read the code before answering — do not generalise from the framework's usual patterns.

I NEED
1. Entry points: where a request or interaction starts, with file and line references.
2. The path it takes through the code, in order, naming each file.
3. Where state or data is persisted, and the shape of it.
4. Error handling: what happens when [dependency] fails.
5. Tests that cover this flow, and obvious gaps.
6. Anything surprising, risky or clearly legacy.

FORMAT
Numbered walkthrough with file:line references. Say explicitly when something is unclear from the code rather than guessing.
Prompt 05

Hook for post-task verification

Automating the checks you would otherwise forget.

  • hooks
  • automation
Template · plain text
Create a Kiro hook that runs after a task is marked complete.

TRIGGER: task completion.
ACTION: run `[test command]` and then `[lint command]`.
BEHAVIOUR ON FAILURE: report the failing output so it can be fixed before I review.

Also suggest two more hooks that would help this project specifically, based on what you see in the repository — for example a format-on-save hook for [file types], or a check that [generated artefact] was regenerated when [source] changed. Explain the trigger, the action and why it is worth automating for each.
04 — Craft notes

What separates a good prompt from a wasted run

Do this 05

  • Put durable rules in steering files instead of repeating them.
  • Ask for a plan before implementation on multi-file work.
  • Give the exact verification commands for the project.
  • Use spec sessions for features, vibe sessions for quick questions.
  • Point at a reference file that shows your conventions.

Not this 05

  • Vague requests like "make this better".
  • Bundling a refactor and a feature in one task.
  • Skipping the out-of-scope list on large repositories.
  • Approving a diff you have not read in autopilot mode.
  • Leaving build and test commands undocumented.
05 — Questions

Asked often, answered plainly

When should I use a spec instead of just asking?

Use a spec when the work spans several files, has real edge cases, or needs sign-off on behaviour before code exists. Quick fixes, questions and single-file edits are faster as a normal session.

What belongs in a steering file?

Anything you would tell a new teammate on day one and then never repeat: stack, commands, directory layout, conventions, testing rules and hard guardrails. Keep it short enough that it stays accurate.

How do I keep an agent from changing more than I asked?

State an out-of-scope list, ask for a minimal diff, and add a rule that unrelated problems get reported rather than fixed. Supervised mode gives you hunk-level review if you want tighter control.

06 — Sources

Read the primary documentation

Vendors change flags, limits and defaults often. Where this site disagrees with official docs, the docs win.