Home › Rules › Kiro steering

Kiro steering files: where they go, inclusion modes, examples

From Kiro's own docs (Steering, Configuration scopes, Slash commands, Custom agents, Kiro Crew), checked Nov 10, 2026. Sources below.

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:

FeatureIDECLIWebMobile
Workspace steering (.kiro/steering/)YesYesYesYes
Global steering (~/.kiro/steering/)YesYesNoNo
Upload local steering to cloud configurationOpt-inOpt-inYesNo
Generate foundation files from the UIYesNoNoNo
Inclusion modesYesV3 full; V1/V2 partialYesYes
AGENTS.md supportYesYesYesYes

Where Kiro steering files go

A project with steering files and AGENTS.md
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

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":

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.

ModeWhen it loadsExtra fieldsIn the / menu?Good for
always (default)Every interactionNoneNoStack, conventions, security rules that apply everywhere
fileMatchWhen you work on files matching the patternfileMatchPattern (one glob or a list)NoComponent, API, test or docs rules that only apply to some files
manualWhen you type #file-name in chat, or pick it from /NoneYesLong guides you only need sometimes: troubleshooting, migrations
autoWhen your request matches its descriptionname and description, both requiredYesDetailed guidance that would crowd out everything else if always on

The four headers, exactly as Kiro's docs write them:

inclusion: always (the same as no header)
---
inclusion: always
---
inclusion: fileMatch with a list of patterns
---
inclusion: fileMatch
fileMatchPattern: ["**/*.ts", "**/*.tsx", "**/tsconfig.*.json"]
---
inclusion: manual (use it with #troubleshooting-guide)
---
inclusion: manual
---
inclusion: auto (name + description)
---
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:

Kiro's file reference forms
#[[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:

Kiro steering vs skills (and hooks, powers, memory)

What it isWhereWhen it loadsUse it for
SteeringMarkdown rules, Kiro-only.kiro/steering/*.mdDepends on the inclusion mode (default: always)"How we write code here"
SkillsA 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"
HooksAutomations that run on events.kiro/hooks/When the event happensThings that must happen every time, like running a check after a save (see Kiro hooks)
PowersPackages of tools, workflows and best practices (skills, MCP servers)Installed from Kiro's powers catalog or a GitHub repoWhen you mention the power's keywordsAdding a framework or service in one install
MemoryContext Kiro learns across chatsManaged by KiroWhen recalledKiro'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:

Kiro's example: .kiro/steering/coding-standards.md
# 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.

Our example (VibeKits): .kiro/steering/tech.md
---
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.

Our example (VibeKits): .kiro/steering/components.md
---
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 /.

Our example (VibeKits): .kiro/steering/troubleshooting-guide.md
---
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.

Our example (VibeKits): .kiro/steering/deploy-checklist.md
---
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:

Kiro's example: load all steering files into a custom agent
{
  "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.

Kiro's setting: chat.disableInheritingDefaultResources
# 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

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

Kiro's steering best practices, short version

Where Kiro's own pages disagree

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

Sources

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].

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.

After that, an occasional email when I publish a new guide or rules file.

Free. No spam. Unsubscribe anytime. See our privacy note.