AWS Builder Center

Customizing Kiro, Part 1: Choosing and Combining the Building Blocks

Steering, skills, MCP, hooks, custom agents or powers? Learn what each Kiro building block does, best practices from the docs and the field, a decision guide for choosing between them, and two patterns that combine them into one setup. Part 1 of a series on customizing Kiro.

Series: Customizing Kiro (2 articles)

  1. 1
    Customizing Kiro, Part 1: Choosing and Combining the Building Blocks This article

Why customize Kiro?

Out of the box, Kiro can read your code, but it doesn't know your team's conventions, your release process or your review standards, so it guesses like a new team member would. Loading everything up front doesn't work either: the trick is to give Kiro the right context, tools and limits at the right moment.

Kiro's customization building blocks

Kiro has six building blocks, plus an optional seventh:
  • Steering: Markdown files (including  AGENTS.md ) that give Kiro lasting knowledge of your stack and conventions, loaded always, on matching files, on demand or when relevant. ( Steering )
  • Skills: Portable folders built around a  SKILL.md  that hold a repeatable procedure; only the name and description load up front, and the full instructions load when a request matches. ( Skills )
  • MCP: The Model Context Protocol connects Kiro to servers that add tools, prompts and resources, so it can reach live systems, APIs and data. ( MCP )
  • Hooks: Commands or agent prompts that run automatically on events such as a file save, a tool call or the end of a turn, and can block a tool call before it runs. ( Hooks )
  • Custom agents: A JSON or Markdown file that defines one agent's tools, permissions, context, prompt and model, for a focused role with hard limits. ( Custom agents )
  • Powers: Installable packages of skills and MCP tools, built on the open, vendor-neutral  Agent Plugins  standard, that activate only when your task matches their keywords and work across compatible agent clients. ( Powers )
  • Memory (optional): Context Kiro learns from your work, such as commands, corrections and approaches already ruled out, and recalls in later sessions. ( Memory )

Best practices

From the Kiro documentation

Each building block's documentation has its own guidance. These are the practices I find teams skip most often.
Steering ( docs )
  • Keep one domain per file, such as API design, testing or deployment, with clear names like  api-rest-conventions.md .
  • Explain why a decision was made, not just the standard, and show short examples.
  • Never put API keys or passwords in steering: it's part of your codebase.
  • Maintain it like code: review it at sprint planning and after architecture changes.
Skills ( docs )
  • Write a precise description that says what the skill does and "Use when…". "Review pull requests for security issues and test coverage. Use when reviewing PRs" beats "Helps with code review".
  • Keep  SKILL.md  focused, because the whole file loads when the skill activates. Put detail in  references/ .
  • Use scripts for deterministic steps such as validation, file generation and API calls.
  • Commit  .kiro/skills/  so the team shares the same workflows.
  • Install servers only from trusted sources, and review the code first. Treat them like any other third-party dependency.
  • Reference tokens through environment variables, never commit them, keep their scope minimal and rotate them.
  • Apply least privilege: use  disabledTools  to turn off risky operations, and auto-approve only narrow, read-only tools.
  • Run local servers with sandboxing turned on, and review the logs and your auto-approved tools from time to time.
  • Give each hook one job.
  • Prefer shell commands for deterministic tasks: they're faster than agent prompts and use no credits.
  • Use narrow matchers ( src/**/*.ts , not everything), and think about how often the trigger fires.
  • Test with edge cases before sharing, then keep hooks in version control and document them.
Custom agents ( examples and tips )
  • Start simple, with a clear name and description.
  • Declare the files, steering and skills the agent depends on in its  resources . Don't rely on what it inherits by default.
  • Pre-approve frequent, low-risk operations with narrow permission rules.
  • Keywords decide when a power activates, so use the words people actually type.
  • Keep one power per technology, and pass secrets through environment variables.

Field lessons the docs don't spell out

These come from working with teams that use Kiro every day:
  1. Say it, then enforce it. For rules that matter, write a short steering note and add a hook or permission. A note alone can be missed in a long session. A hook alone makes the agent waste turns discovering the rule.
  1. Skip what the model already knows. Steering should hold what is specific to your project, not framework tutorials. Avoid ALL-CAPS "MUST/NEVER" rules: they can make newer models over-cautious.
  1. Build skills from a real run. Do the task once with Kiro, then ask it to capture what worked. Keep only the steps that aren't obvious.
  1. Warn before you enforce. Roll out a new guardrail in warn-only mode, tune it, then block. When a hook blocks something, tell the agent what to do instead so it recovers in one step.
  1. One agent per role, and only when it differs. Create a custom agent when the tools, permissions or model genuinely differ, not for every task.
  1. Re-test when models change. New models follow instructions differently. After an upgrade, re-check your skills, steering and hooks, and remove what's no longer needed.
The habit underneath all of these is a loop: notice repeated mistakes and review comments, capture the lesson in steering or a skill, promote what proves stable, enforce what must never happen again, and re-evaluate with each new model. The Kiro team describes this as one of the  frontier engineering principles .

Comparison and decision guide

Two questions separate the building blocks: does the model decide, or does Kiro enforce it? And is it in context on every turn, or loaded only when needed?
Advice vs Enforcement

Steering, skills, memory, MCP tools and powers guide the model, but any one of them can be missed in a long session. Custom agent limits and hooks are enforced by Kiro itself. Keep the always-on row small. If breaking a rule would cause an incident, enforce it with a hook or permission, and keep a short steering note so the agent gets it right the first time.

Which one do I need?

  • If you need Kiro to always follow your stack and conventions: use steering (always). Watch out for: long always-on files; relying on it for rules that must never be missed.
  • If you need rules for one part of the codebase only: use steering (fileMatch) or a nested  AGENTS.md . Watch out for: one large file that loads everywhere.
  • If you need a repeatable procedure, such as a release, a review or a runbook: use a skill. Watch out for: a vague description, so the wrong skill, or none, activates.
  • If you need live access to a system, API or browser session: use an MCP server. Watch out for: every server in every session, which causes context bloat and wrong tool choices.
  • If you need something that must happen, or must never happen: use a hook, plus permissions. Watch out for: a hook alone wastes turns, so add a steering note.
  • If you need fewer approval prompts for safe operations: use custom agent permissions. Watch out for: broad rules, such as  git * , which would also let the agent push.
  • If you need a role with its own tools, limits and model: use a custom agent. Watch out for: one agent for everything; relying on inherited context.
  • If you need tools plus guidance, loaded only when relevant: use a power. Watch out for: vague keywords; one power covering many technologies.

Putting them together

No real setup uses just one building block. The value comes from combining them. In each diagram below, the steps of the workflow run across the top and the building blocks run down the side. Below the dashed line are the two actors: the Kiro agent, which does the work, and people, who make the decisions.

Pattern 1: Rule + checker (steering + hooks)

Scenario: every bug fix must come with a regression test, without anyone having to remind the agent.
Pattern 1: Rule Checker

You ask for a fix. Because the change touches source files, a  fileMatch  steering file loads with the rule, and most of the time Kiro simply writes the fix and a test. The hooks are the enforcement half:
  • On every save, a fast linter runs.
  • When the agent finishes its turn, a  Stop  hook runs a small script. The script fails if source files changed but no test file did, then runs the test suite. Passing tests alone wouldn't prove the rule was followed, which is why the script checks for the new test.
  • If a check fails, its output goes back to the agent, which fixes the problem before handing back.
By the time you review, the change is green and tested.
 .kiro/steering/testing.md 

---

inclusion: fileMatch

fileMatchPattern: "src/**"

---

# Testing

Every bug fix includes a regression test that fails without the fix.

Put tests in tests/, mirroring the src/ path.

 .kiro/hooks/quality.json 

{
"version": "v1",
"hooks": [
{ "name": "Lint on save", "trigger": "PostFileSave", "matcher": "\\.(ts|tsx)$",
"action": { "type": "command", "command": "npx eslint --fix" } },
{ "name": "Every fix has a test", "trigger": "Stop",
"action": { "type": "command", "command": "./scripts/check-fix-has-test.sh" } }
]
}

Why it works: steering prevents most misses, and the hook catches the rest. Keep save-time hooks fast, and run slower suites when the agent stops. The same shape works for formatting, type checks, licence headers and documentation rules. Recurring review comments are a good source of new rule + checker pairs.

Pattern 2: The specialist agent (custom agent as the bundle)

Scenario: review every pull request against team standards, with no risk of the reviewer changing code.
Pattern 2: Specialist Agent

The top row is the custom agent's configuration. It spans the whole workflow because it is the container: it decides which tools exist, what runs without asking and which model is used. The Kiro agent row shows the work Kiro does while running as that reviewer:
  1. Read the PR: it reads the pull request through one MCP tool.
  1. Assess: it checks the PR against the team's  review-standards.md  steering file and the  pr-review  skill, both declared in the agent's resources.
  1. Comment: it posts findings through a second MCP tool, while a  PreToolUse  hook blocks  git push  as a backstop.
  1. Decide: a person approves and merges.
 .kiro/agents/code-reviewer.json 

{
"name": "code-reviewer",
"description": "Reviews pull requests against team standards. Never changes code.",
"tools": ["read", "shell", "@github/get_pull_request", "@github/add_review_comment"],
"resources": [
"file://.kiro/steering/review-standards.md",
"skill://pr-review"
],
"permissions": { "rules": [
{ "capability": "shell", "match": ["git diff *", "git log *", "git show *"], "effect": "allow" }
] }
}

The reviewer has no file-write tool, so it cannot edit code, and only read-only git commands run without asking. If you want a strictly read-only reviewer, leave  shell  out entirely.
Why it works: knowledge comes from steering and a skill, reach from two MCP tools, and limits from the agent and a hook. The safety comes from configuration, not from asking the model nicely. The same shape works for a planner, an infrastructure reviewer or an operations triage agent.

What's next

This is Part 1 of a series on combining Kiro's building blocks into patterns that work in practice. The coming parts move from single rules and roles to whole workflows: keeping long sessions lean, letting agents work unattended without unreviewed changes reaching your main branch, and carrying a change safely from idea to production.
Start with one pattern, not the whole harness. Pick the rule your reviewers repeat most often, and turn it into your first rule + checker.

Series: Customizing Kiro (2 articles)

  1. 1
    Customizing Kiro, Part 1: Choosing and Combining the Building Blocks This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article