> ## Documentation Index
> Fetch the complete documentation index at: https://tryinspector.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# .inspectorrules

> Custom instructions for AI agents

Create `.inspectorrules` at your repository root to guide AI behavior. Works with all Inspector agents.

## Editing Inspector Rules

You can edit `.inspectorrules` directly in Inspector through the settings.

1. Click your profile icon in the top right
2. Click **Settings**
3. Click the **Project Settings** tab
4. Click the **.inspectorrules** file
5. Edit the file
6. Click the **Save** button

<Frame>
  <video src="https://qjiu9iejnualtydd.public.blob.vercel-storage.com/edit-inspector-rules.mp4" autoPlay muted loop playsInline />
</Frame>

## Example

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
This is a Next.js 14 project with TypeScript.
Use Tailwind CSS for styling.
Follow existing patterns in src/components.
```

## Use Cases

* **Branding** — Colors, fonts, design tokens
* **Coding standards** — Naming, patterns, forbidden practices
* **Project context** — Architecture, dependencies, constraints

<Callout icon="lightbulb" color="#6b7280">
  Commit `.inspectorrules` to share guidance with your team.
</Callout>
