.AIIgnore · Schema

AIIgnoreRule

A single .aiignore exclusion rule pattern with metadata

AI AgentsConfigurationDeveloper WorkflowSecurityPrivacyDeveloper ToolsLLMSecrets Management

Properties

Name Type Description
pattern string Glob pattern for matching files/directories
comment string Human-readable explanation of this rule
negated boolean If true, this rule re-includes a previously excluded path (starts with !)
scope string Scope: file, directory, or pattern
View JSON Schema on GitHub

JSON Schema

aiignore-ai-ignore-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aiignore/refs/heads/main/json-schema/aiignore-ai-ignore-rule-schema.json",
  "title": "AIIgnoreRule",
  "description": "A single .aiignore exclusion rule pattern with metadata",
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "Glob pattern for matching files/directories",
      "example": "**/.env"
    },
    "comment": {
      "type": "string",
      "description": "Human-readable explanation of this rule",
      "example": "Exclude environment files with secrets"
    },
    "negated": {
      "type": "boolean",
      "description": "If true, this rule re-includes a previously excluded path (starts with !)",
      "example": false
    },
    "scope": {
      "type": "string",
      "description": "Scope: file, directory, or pattern",
      "example": "file"
    }
  }
}