2 react rules available
Two Kiro rules match react: a React development rule and the Next.js App Router rule. In Kiro, spec-driven tasks often create several components at once, so the steering file asks for a component inventory and tests per task.
Kiro, built and operated by AWS, uses steering files: Markdown documents in .kiro/steering/ that give the agent persistent project knowledge. Front matter controls when each file is included: always, when matching files are in context, manually by #name, or automatically by description. Kiro also includes AGENTS.md files.
.kiro/steering/react.mdStarting point, not a tested configuration for your repository. Included when files matching fileMatchPattern are in context. Review the instructions, adapt the file paths and run your project's existing checks.
--- inclusion: fileMatch fileMatchPattern: ["**/*.tsx", "**/*.jsx"] --- # React instructions for Kiro ## Focus for this project - At the start of a task, list the components you will create or change. - Use the project's design tokens; no hard-coded colors or spacing values. - Each component gets a test before the task is marked complete. ## React conventions - Write function components and custom hooks; call hooks only at the top level of components or other hooks. - Derive values during render instead of copying props into state, and do not use an effect only to transform data for rendering. - Check the react version in package.json: on React 19, function components receive ref as a regular prop and forwardRef is not needed for new components; on React 18 keep forwardRef. - In tests, query by role and accessible name with Testing Library rather than by class names or test IDs. ## Before you finish - Run the type checker (npx tsc --noEmit for TypeScript projects), the lint script and the component tests and report the actual output. If you cannot run them, say so and list the exact commands instead of saying they pass. - Summarize which of the rules above affected the change. - When working from a spec, reference the task you are completing and do not mark it done until the checks above have run.
Create your own Kiro rules for React and share with the community.
Ask for a small change to one matching file. Check the tool's loaded context or instruction view, inspect the diff for the requested convention, and run the relevant build or test. A well-formatted file does not guarantee the model follows every instruction.
Front matter must be at the very beginning of a steering file to be recognized. Kiro supports AGENTS.md. According to the steering docs, AGENTS.md files do not support inclusion modes and are always included, so keep scoped guidance in .kiro/steering/ files instead.
Documentation checked 2026-11-05: Kiro docs: SteeringKiro home page
Illustrative input and expected result. This example is a verification guide, not a recorded model run.
You run a Kiro spec task that builds a dashboard UI and want each component typed, tested and reusing the design tokens.
Implement the spec task: build the usage dashboard cards.
A component list, typed card components using tokens, Testing Library tests per component, and test results reported before completion.
Content reviewed 2026-11-05. Confirm instruction activation in your installed client before relying on it.
Kiro steering for Next.js App Router on AWS: Server Components, async params, validated Server Functions, and Amplify Hosting support limits to check before deploying.