.AIIgnore · JSON Structure

Aiignore Ai Ignore Rule Structure

A single .aiignore exclusion rule pattern with metadata

Type: object Properties: 4
AI AgentsConfigurationDeveloper WorkflowSecurityPrivacyDeveloper ToolsLLMSecrets Management

AIIgnoreRule is a JSON Structure definition published by .AIIgnore, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

pattern comment negated scope

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

aiignore-ai-ignore-rule-structure.json Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aiignore/refs/heads/main/json-structure/aiignore-ai-ignore-rule-structure.json",
  "name": "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"
    }
  }
}