Kiro, an AI-powered development tool from AWS, was designed to work on tasks that involve different stages of development. Its spec-driven development workflow allows you to organize requirements, technical design, and implementation tasks before executing changes. The tool also offers features such as steering files, which record project guidelines, and agent hooks, which automate actions on specific events.
LEARN MORE: CodeBit and AWS partnership offers 3 free months of Kiro for Dev teams
READ ALSO: Kiro: what it is, how it works, and why it can transform Dev routines
In practice, this makes it possible to delegate activities with a defined goal, criteria to evaluate the result, and boundaries regarding what can be changed. The agent can take on part of the work, while the developer tracks decisions, reviews changes, and validates the code.
Below are five scenarios where these capabilities can be applied to daily development work.
1. Creating a new feature from an idea
Imagine a team maintaining an e-commerce platform. The product already allows registering customers and selling items, but it does not yet offer an area for buyers to review purchased products. The team wants to add this functionality without compromising the review system, product catalog, or the existing checkout flow.
A conventional approach might start by implementing a form and a new API route. With Kiro, the developer can start by describing the expected outcome and letting the agent organize the work before producing any code.
The first step is to explain the feature in natural language, including project context and the business rules that must be respected. For example:
I want to add product reviews to the store. Authenticated customers who have purchased an item can give a rating from one to five stars and write a comment. Each customer can only review the same product once. Reviews should appear on the product page, and the system must prevent reviews from unauthenticated users. Analyze the existing architecture and propose an implementation compatible with the project.
From this description, Kiro can structure a specification with three main components:
Requirements: define expected behaviors, such as allowing review submissions, restricting access to authenticated customers, and preventing duplicate reviews.
Technical design: describes how the feature can fit into the existing system, considering data models, interfaces, endpoints, and architectural decisions.
Tasks: break down the implementation into smaller steps, with dependencies that help sequence the work.
This workflow is the foundation of Kiro's Feature Specs. The tool also lets you choose between starting from requirements or beginning with an already-defined technical design, depending on the project's stage and constraints. Official documentation presents these approaches under Feature Specs.
2. Finding and fixing bugs without affecting other parts of the system
A change in a project can resolve a symptom while introducing another bug, especially when the behavior involves dependencies, business rules, or parts of the codebase that share data.
Consider a financial management application where an invoice total becomes incorrect when a user removes an item before completing the transaction. The error only appears under certain combinations of discounts and quantities, making it difficult to find the root cause just by reading through the code.
In this scenario, the agent can help investigate the behavior, identify potential causes, and organize a fix with clear criteria.
The developer must provide the available information about the error: the observed behavior, the expected outcome, the conditions under which the problem occurs, and, when possible, steps to reproduce it. It is also important to specify what must continue working after the fix.
A prompt could be:
Investigate why the invoice total becomes incorrect when an item is removed after a discount has been applied. Analyze the calculation flow and existing tests. Identify the conditions that reproduce the problem, propose a fix, and verify that the other calculations for subtotal, discount, and total continue to work. Avoid changes outside this flow without justification.
In Kiro, Bugfix Specs allow you to structure this type of work. Instead of treating the fix as an isolated change, the workflow can organize the investigation and the tests needed to verify the defect and evaluate the impact of the solution.
A successful fix needs to demonstrate two things: that the problematic scenario was resolved and that behaviors that were already working have been preserved. Therefore, the agent can work with tests that reproduce the error, validate the corrected result, and cover related test cases.
In the financial example, this might involve checking the total without discounts, with a discount applied, with multiple items, and after removing one of them. The exact scenarios depend on the application's business rules.
This use case is especially relevant for systems that are already in production. The goal is not just to eliminate a bug, but to make a scoped change with enough evidence to determine whether the behavior was fixed without breaking other features.
3. Writing tests for existing code
In legacy systems, important functions may have been developed without automated tests, while applications that grew rapidly might have tests focused only on the most common flows.
This lack of coverage makes changes riskier. When a developer modifies a function, it can be difficult to know whether any prior behavior was broken, particularly when the logic depends on multiple conditions.
Kiro can be used to analyze existing code, identify relevant behaviors, and propose tests that help verify expected functionality.
Consider a function that calculates order shipping based on product weight, delivery address, and purchase amount. It is already used by the application, but it lacks automated tests covering its various conditions.
The developer can request:
Analyze the shipping calculation function and the parts of the system that depend on it. Identify the implemented business rules and the test cases that require coverage. Create tests using the framework and testing library already adopted in the project. Include standard scenarios, edge cases, and invalid inputs, without modifying the function's implementation at this first stage.
The instruction not to modify the code during the initial step helps separate two activities: understanding existing behavior and proposing a different implementation. This distinction is critical because a test written based on an incorrect interpretation can reproduce the very same bug it was supposed to detect.
The agent can examine related functions, consult existing tests, and suggest scenarios. These may include orders below the free-shipping threshold, unserviced addresses, weights at the limit of a tier, and missing or invalid values.
This task is useful both for increasing test coverage in existing systems and for establishing a baseline before refactoring. With adequate tests, the team is better equipped to identify regressions and evaluate changes with less reliance on manual verification.
4. Documenting what has already been built
Documentation often becomes outdated when code changes faster than the files that explain how it works. An API may gain new parameters without the README being updated, or an important function might remain without documentation regarding its dependencies and constraints.
This problem makes onboarding new team members difficult and increases the time required to understand a system. Instead of relying solely on conversations with the person who built a specific component, the team needs references that accurately describe the current state of the application.
An agent can help produce this documentation by analyzing the repository, provided the result is verified by someone familiar with the project's rules and decisions.
Imagine an internal API that receives orders, calculates amounts, and forwards data to other services. The code exists and is actively used, but the documentation only explains how to launch the application.
The developer can request:
Analyze the endpoints related to order processing. Document their purpose, parameters, input and output formats, response codes, and key validation rules. Consult the existing implementations and tests. Do not invent behaviors that are not demonstrated in the code or in reliable documentation. Flag any information that cannot be confirmed.
Based on the available content, the agent can compile a reference that describes endpoints, expected fields, possible responses, and relationships between components. Depending on the project, it can also update the README, create explanatory comments, or complement existing documentation files.
The task can be divided into parts to make review easier. A first analysis identifies the endpoints and their dependencies; the next drafts the documentation; a final step compares the generated text against the implementation and tests.
Kiro can assist with this work through agent requests and automations configured via hooks. The official documentation describes, for example, actions that update supporting files whenever code files are created or modified. This helps establish routines to keep documentation aligned with code changes, although content quality still depends on proper configuration and review.
5. Ensuring the agent follows team standards
In collaborative projects, maintaining code consistency is essential to facilitate integration across different parts of the system and simplify maintenance. Without clear guidelines, an AI agent might suggest libraries, file structures, or testing strategies that do not align with the team's choices.
Kiro allows recording these conventions in steering files—Markdown files stored, by default, in the repository's .kiro/steering/ folder. They can consolidate information about architecture, technologies used, directory structure, and coding standards, preventing the developer from having to repeat these instructions with every prompt.
For example, a team working with TypeScript can document their chosen validation library, endpoint conventions, and error-handling rules. When implementing a new feature, the agent can consult these guidelines to propose changes consistent with the project.
Files can be organized by topic and can also have global scope for preferences that apply across multiple projects. This way, application-specific rules remain in their respective repository, while general guidelines can be shared.
Kiro also provides agent hooks, which allow automating actions on certain events. For instance, the team can configure code checks after file changes, supplementing the instructions recorded in steering files. This allows part of the standards to be enforced through recurring checks, although configuration and review of the results remain necessary.
What should you consider before delegating a task to Kiro?
These five examples show that using an AI agent does not need to be limited to code generation. It can also participate in planning, troubleshooting, writing tests, documenting, and enforcing technical standards.
To ensure these tasks yield useful results, certain best practices make a difference:
Define the expected outcome: describe the problem or need, rather than simply asking to improve a snippet of code.
Provide relevant context: explain business rules, point out related files, and highlight constraints that must be respected.
Establish acceptance criteria: whenever possible, indicate how to verify that the task was completed correctly.
Define the scope: state which parts may be changed and which behaviors must be preserved.
Review and validate the result: inspect changes, run appropriate tests, and confirm that the solution meets all requirements.
The level of autonomy also depends on the operating mode and configured permissions. In Kiro, there are collaborative workflows where the developer guides the agent during execution, as well as an autonomous mode in which it plans and executes a task before presenting the result. The ability to perform actions does not eliminate the need to review changes or to restrict access to commands, files, and environments.
Technical responsibility remains with the developer. It is up to them to decide what to delegate, review proposed choices, and confirm that changes adhere to requirements, architecture, and product needs. With this oversight, the agent can take over parts of the operational workload, freeing up more time for analysis, engineering decisions, and software evolution.




