Kiro steering files: where they go, inclusion modes, examples
Short answer: Kiro steering files are plain Markdown files in .kiro/steering/ (one project) or ~/.kiro/steering/ (all your projects). They hold the rules you'd otherwise repeat in every chat: your stack, your conventions, what not to touch. By default each file is loaded into every interaction. A YAML header at the very top of the file changes that to one of four inclusion modes: always, fileMatch (only when you work on matching files), manual (only when you type #name or pick it from /), or auto (when your request matches its description). Kiro also reads AGENTS.md as steering, always included.
What steering is
Kiro's docs describe steering as giving Kiro "persistent knowledge about your project through markdown files", so you don't explain your conventions in every chat. It's Kiro's version of a rules file, the same job CLAUDE.md, .cursor/rules/ or AGENTS.md do in other tools.
Where it works, according to Kiro's own table:
| Feature | IDE | CLI | Web | Mobile |
|---|---|---|---|---|
Workspace steering (.kiro/steering/) | Yes | Yes | Yes | Yes |
Global steering (~/.kiro/steering/) | Yes | Yes | No | No |
| Upload local steering to cloud configuration | Opt-in | Opt-in | Yes | No |
| Generate foundation files from the UI | Yes | No | No | No |
| Inclusion modes | Yes | V3 full; V1/V2 partial | Yes | Yes |
AGENTS.md support | Yes | Yes | Yes | Yes |
Where Kiro steering files go
my-project/
├── AGENTS.md # always included, no inclusion modes
└── .kiro/
└── steering/
├── product.md # foundation file
├── tech.md # foundation file
├── structure.md # foundation file
├── components.md # e.g. fileMatch
└── troubleshooting.md # e.g. manual
Free rules starter pack for Cursor, Claude Code, Codex and Antigravity
One shared AGENTS.md that works across Cursor, Claude Code, Codex, Copilot and Antigravity, plus database and test rules in each tool's format. Unzip it into your project and fill in two sections. I'll email you the link.
Free. No spam. Unsubscribe anytime. See our privacy note.
- Workspace:
.kiro/steering/in your project root. Applies to that project only. Commit it so everyone on the project gets the same rules. - Global:
~/.kiro/steering/in your home folder. Applies to every project on your computer. - Team: Kiro's docs say teams can push shared files into each person's
~/.kiro/steeringfolder with MDM or Group Policies, or have people download them from a central repo. - Kiro Web: it reads
.kiro/steering/from the cloned repo, but it can't see your~/.kiro/steering/, because the cloud sandbox has no access to your computer. To use personal steering in cloud sessions, upload it under Agent Config > Cloud Config, then edit it under Agent Config > Steering. - Kiro Crew: uses the project's
.kiro/steering/too, and a folder's settings can add up to 16 Additional steering directories. More on Crew: Kiro Crew.
Global vs workspace. Kiro's Configuration scopes page says steering from all scopes is "merged (not overridden)", so both load. The Steering page adds that when a global file and a workspace file give conflicting instructions, Kiro goes with the workspace one. So put your personal habits in global steering and project-specific rules in the workspace.
Multi-root workspaces (IDE). Kiro reads .kiro/steering/ under each root folder. Always-included files load no matter which root you're working in; fileMatch files load only when the file you're working on is in that same root and matches the pattern.
The three foundation files: product.md, tech.md, structure.md
Kiro starts most projects with three steering files. In Kiro's words, these "are included in every interaction by default":
product.md: what the product is, who it's for, the main features and goals.tech.md: frameworks, libraries, tools and technical limits. Kiro prefers this stack over alternatives.structure.md: how files are organized, naming, imports and architecture decisions.
How to generate them: in the IDE, open the Steering section of the Kiro panel and click Generate Steering Docs (or + and then Foundation steering files). In the CLI there's no button; create the three files yourself. On Kiro Web, ask the agent to "Generate steering files for this project" and it writes them from your repo.
Kiro steering inclusion modes
The inclusion mode goes in a YAML header that must be the very first thing in the file, between two --- lines. Kiro's docs are explicit: no blank lines or other content before it.
| Mode | When it loads | Extra fields | In the / menu? | Good for |
|---|---|---|---|---|
always (default) | Every interaction | None | No | Stack, conventions, security rules that apply everywhere |
fileMatch | When you work on files matching the pattern | fileMatchPattern (one glob or a list) | No | Component, API, test or docs rules that only apply to some files |
manual | When you type #file-name in chat, or pick it from / | None | Yes | Long guides you only need sometimes: troubleshooting, migrations |
auto | When your request matches its description | name and description, both required | Yes | Detailed guidance that would crowd out everything else if always on |
The four headers, exactly as Kiro's docs write them:
---
inclusion: always
---
---
inclusion: fileMatch
fileMatchPattern: ["**/*.ts", "**/*.tsx", "**/tsconfig.*.json"]
---
---
inclusion: manual
---
---
inclusion: auto
name: api-design
description: REST API design patterns and conventions. Use when creating or modifying API endpoints.
---
Common fileMatchPattern values from Kiro's docs: "*.tsx", "app/api/**/*", "**/*.test.*", "src/components/**/*", "*.md".
Kiro CLI versions matter. Kiro CLI V3 supports all four modes. In V1 and V2, only always files load automatically; fileMatch and manual files are left out, and those versions don't have V3's matching behavior.
Link to real files with #[[file:]]
A steering file can point at a file in your project, so the rule stays in sync with the code instead of going stale. Whole-file references work everywhere. The IDE and CLI V3 also take a single line, a line range, or a one-level folder listing:
#[[file:api/openapi.yaml]]
#[[file:docs/api-guidelines.md:12-28]]
#[[folder:config]]
Paths are relative to the workspace root for workspace steering, to ~/.kiro/steering/ for global steering, and to the file's own folder for an AGENTS.md. If Kiro can't find the file, it leaves a visible "unresolved reference" marker in the steering text instead of quietly dropping it, so a broken link is easy to spot.
Kiro and AGENTS.md
Kiro reads AGENTS.md as steering on every surface. Three things to know from Kiro's docs:
- Always included.
AGENTS.mddoesn't support inclusion modes, so a header won't make itmanualorfileMatch. - Where it's found: your project root, the global
~/.kiro/steering/folder, and subfolders. One inservices/api/and another inpackages/ui/both load alongside your other steering. - Steering vs AGENTS.md: if you also use Codex, Cursor, Copilot or Claude Code, keep the shared rules in
AGENTS.mdso every tool reads them, and put Kiro-only or file-specific rules in.kiro/steering/where you can use inclusion modes. Copy-paste starters: AGENTS.md examples.
Kiro steering vs skills (and hooks, powers, memory)
| What it is | Where | When it loads | Use it for | |
|---|---|---|---|---|
| Steering | Markdown rules, Kiro-only | .kiro/steering/*.md | Depends on the inclusion mode (default: always) | "How we write code here" |
| Skills | A folder with SKILL.md, plus optional scripts and references (open standard) | .kiro/skills/<name>/ | When a request matches its description, or /name | "How to do this job, step by step" |
| Hooks | Automations that run on events | .kiro/hooks/ | When the event happens | Things that must happen every time, like running a check after a save (see Kiro hooks) |
| Powers | Packages of tools, workflows and best practices (skills, MCP servers) | Installed from Kiro's powers catalog or a GitHub repo | When you mention the power's keywords | Adding a framework or service in one install |
| Memory | Context Kiro learns across chats | Managed by Kiro | When recalled | Kiro's docs: if a rule must apply consistently, write it in steering, not memory |
An auto steering file and a skill look alike: both have a name and description, load when your request matches, and show up in the / menu. Kiro's docs say auto inclusion "works similarly to skills". The difference is that a skill folder can carry scripts and reference files and works in other tools too. Full guide: Kiro skills.
Matching kit: Vibe Coder Skills Pack ($9)
The free rules set the boundaries. The Skills Pack adds 6 ready-to-copy skills for when a project goes wrong: stop-the-loop, fix-one-bug, leak-check, ship-check, explain-project and builder-handoff, for Claude Code, Cursor and Codex, with paste-in steps for Lovable, Bolt, Replit and Base44.
See the Vibe Coder Skills Pack ($9) →
Instant download. 7-day refund, no questions asked.
Kiro steering file examples
Kiro's own example (from the Kiro Crew steering page), saved as .kiro/steering/coding-standards.md. No header, so it's always included:
# Coding standards
- Use TypeScript strict mode in all files
- Prefer functional components with hooks over class components
- All exported functions must have JSDoc comments
- Tests go in __tests__/ next to the source file
- Use `pnpm` as the package manager, not `npm` or `yarn`
The next four are our examples (VibeKits), one per inclusion mode, for a small Next.js and Supabase app. Change the stack lines to match yours.
1. Our example (VibeKits): tech.md, always included. Short, and says why, which Kiro's best practices ask for.
---
inclusion: always
---
# Tech stack
- Next.js 15 with the App Router, TypeScript in strict mode.
- Supabase for the database and login. Never put the service role key in client code.
- Tailwind for styling. Don't add another CSS library.
- npm is the package manager. Run `npm test` before saying a task is done.
## Why
We keep the stack small so a beginner can follow it. Ask before adding a new dependency.
2. Our example (VibeKits): components.md, fileMatch. Loads only when Kiro works on a .tsx file in components/ or app/, and points at a real file as the pattern to follow.
---
inclusion: fileMatch
fileMatchPattern: ["components/**/*.tsx", "app/**/*.tsx"]
---
# React components
- One component per file. The file name matches the component name.
- Props get a TypeScript type above the component, named <Component>Props.
- Use the shared Button and Input from components/ui/ instead of raw elements.
- Every form shows an error message under the field, not an alert().
Follow the pattern in this file:
#[[file:components/ui/button.tsx]]
3. Our example (VibeKits): troubleshooting-guide.md, manual. Stays out of the way until you type #troubleshooting-guide or pick it from /.
---
inclusion: manual
---
# Troubleshooting guide
Use this when something is broken and the cause isn't clear yet.
1. Reproduce the bug first and write down the exact steps.
2. Read the full error and the file and line it points to.
3. Change one thing at a time, then run the app again.
4. If two tries don't fix it, stop and explain what you've learned so far.
5. Don't delete files or reset git to make an error go away.
4. Our example (VibeKits): deploy-checklist.md, auto. Loads when you ask to deploy or ship, and you can also call it as /deploy-checklist.
---
inclusion: auto
name: deploy-checklist
description: Steps to check before deploying this app. Use when the user asks to deploy, ship, release or publish.
---
# Before you deploy
1. `npm run build` passes with no errors.
2. `npm test` passes.
3. No secrets in the diff: search for "sk_", "key=" and ".env".
4. Database changes have a migration file in supabase/migrations/.
5. Tell the user what will change for real users before running the deploy command.
Steering with custom agents
Kiro's Steering page says custom agents don't get steering files automatically, and you add them to the agent's resources:
{
"resources": ["file://.kiro/steering/**/*.md"]
}
Kiro's agent configuration reference says the opposite default (see below), and gives a CLI setting to turn inheritance off. Adding the resources line works either way, so add it.
# Stop custom agents getting default steering, skills and AGENTS.md (Kiro CLI)
kiro-cli settings chat.disableInheritingDefaultResources true
# Or only for this workspace
kiro-cli settings --workspace chat.disableInheritingDefaultResources true
How to see which steering files loaded
- IDE: the Steering section of the Kiro panel lists workspace and global files.
- In chat: Kiro's Memory page says the context usage indicator in the chat input opens Context Usage, which has a Steering files row.
- CLI:
/context showlists each matched steering file and how much of the context window it uses. In V3,/config steeringshows a read-only list. - Kiro Crew: Agent Capabilities > Steering shows each file and its inclusion mode. File changes apply from the next session.
Kiro's CLI docs point out that always-loaded context uses tokens on every request, so keep always files short and move long material to manual or auto.
Kiro steering not working? Check these
- The inclusion mode is ignored: the
---header must be the first line of the file. A blank line or a title above it breaks it. - A fileMatch file never loads: check the glob against the real path, and quote it. In a multi-root workspace, the file you're editing has to be in the same root as the steering file.
fileMatchormanualfiles don't load in the CLI: you're on CLI V1 or V2, which only loadsalwaysfiles. V3 supports all four modes.- An auto file isn't picked up: it needs both
nameanddescription, and the description should use the words you'd use when asking. #namedoes nothing: the file needsinclusion: manual, and the name after#has to match the file, like#troubleshooting-guidefortroubleshooting-guide.md. Typing/shows the exact names Kiro sees.- Works in the IDE, not on Kiro Web: Web can't read
~/.kiro/steering/. Commit the file to.kiro/steering/, or upload it under Agent Config > Cloud Config. - A custom agent ignores your rules: add
"file://.kiro/steering/**/*.md"to itsresources, and check thatchat.disableInheritingDefaultResourcesisn'ttrue. - You tried to make AGENTS.md manual: it doesn't support inclusion modes and is always loaded. Move that content into a steering file.
- A rule shows "unresolved reference": a
#[[file:]]path is wrong or the file moved. Paths are relative to the workspace root (or~/.kiro/steering/for global files). - Global and workspace rules clash: both load, and the workspace one wins. Remove the global line if you want it gone for good.
Kiro's steering best practices, short version
- One topic per file, with a clear name like
api-rest-conventions.mdortesting-unit-patterns.md. - Say why a rule exists, not only what it is, and show short code examples.
- Never put API keys, passwords or other secrets in steering. The files are part of your codebase.
- Review steering when the architecture changes, test
#[[file:]]links after moving files, and review steering changes like code changes.
Where Kiro's own pages disagree
- Do custom agents get steering by default? The Steering page says steering files "are not automatically included" in custom agents. The Agent configuration reference says custom agents "inherit default resources (steering files, skills, and
AGENTS.md)" unlesschat.disableInheritingDefaultResourcesistrue. Listing steering inresourcesworks either way. - Does every steering file load every time? The Kiro Crew steering page says "every session automatically inherits the content of these files" and calls steering best for "rules that should always apply". The main Steering page has four inclusion modes, and only
alwaysfiles load every time. The same Crew page also says its dashboard shows and sets each file's inclusion mode, so the main Steering page's modes are the safer guide. - Global vs workspace wording. The Configuration scopes page says steering is "merged (not overridden)", while the Steering page says Kiro "will prioritize the workspace steering instructions" on a conflict. These fit together (both load, workspace wins a direct conflict), but neither page shows an example of the conflict case.
Related setups
Steering is Kiro's rules file. The same idea in other tools: AGENTS.md examples (read by Kiro too), Cursor rules, CLAUDE.md, Google Antigravity rules and Windsurf rules. Not sure what goes in a rules file? The free rules generator writes a starting AGENTS.md you can drop into a Kiro project.
Best value
All 6 kits for $29 — or $20.30 with code WELCOME30 (through Nov 30)
Steering tells Kiro how to write code in your project. The kits tell it what to build, step by step: a small game, a Discord bot, an email-triage agent, an MVP, or a cleanup of messy code.
Get all 6 kits for $29 → See what's in each kit
$29 instead of $48 for the six kits bought separately; WELCOME30 takes 30% off that at checkout ($20.30). Instant download from Gumroad. 7-day refund, no questions asked.
Related
- Kiro skills (SKILL.md, .kiro/skills, skills vs steering vs powers)
- AGENTS.md examples (Kiro reads AGENTS.md as steering)
- Kiro hooks (.kiro/hooks JSON, every trigger, exit codes, examples)
- Kiro specs (requirements.md, design.md, tasks.md, Quick Spec, examples)
- Kiro vs Claude Code vs Cursor (Kiro pricing, credits explained, rules files)
- Kiro Crew (install, bots, steering, skills, Crew vs the IDE)
- Cursor rules examples
- CLAUDE.md examples and best practices
- Google Antigravity rules (examples, triggers, where the files go)
- Cursor rules vs AGENTS.md
- Cursor hooks (hooks.json, every event, examples, fixes)
- Every rules file format
- Free rules file generator
Sources
- Kiro docs: Steering
- Kiro docs: Configuration scopes
- Kiro docs: Agent configuration reference
- Kiro docs: Slash commands (IDE)
- Kiro docs: Multi-root workspaces
- Kiro docs: Context management (CLI)
- Kiro docs: Kiro Crew steering
- Kiro docs: Your first project
- Kiro docs: Memory
- AGENTS.md
Every folder, mode, field and command here was checked Nov 10, 2026 on Kiro's own docs. Kiro changes often, so the Steering page in Kiro's docs wins over this page. If something here no longer matches, tell us at [email protected].