{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "responseLanguage": {
      "default": "en",
      "type": "string",
      "enum": [
        "de",
        "en"
      ]
    },
    "responseAddress": {
      "default": "informal",
      "type": "string",
      "enum": [
        "informal",
        "formal"
      ]
    },
    "planLanguage": {
      "default": "en",
      "type": "string",
      "enum": [
        "de",
        "en"
      ]
    },
    "boardLanguage": {
      "type": "string",
      "enum": [
        "de",
        "en"
      ]
    },
    "planDirectory": {
      "default": "docs/plans",
      "type": "string",
      "minLength": 1
    },
    "board": {
      "default": {},
      "type": "object",
      "properties": {
        "pattern": {
          "default": "board-*",
          "type": "string",
          "pattern": "^(?![-.])[A-Za-z0-9._*?-]+$"
        },
        "file": {
          "default": "board.md",
          "type": "string",
          "pattern": "^(?![-.])[A-Za-z0-9._-]+\\.md$"
        },
        "term": {
          "default": "board",
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "sprintPattern": {
      "not": {}
    },
    "worktreeDirectory": {
      "default": ".claude/worktrees",
      "type": "string",
      "minLength": 1
    },
    "baseBranch": {
      "default": "main",
      "type": "string",
      "pattern": "^(?!HEAD$)(?![-/.])(?!.*(?:\\.\\.|\\/\\/|@\\{|\\.lock(?:\\/|$)))[A-Za-z0-9._/-]+(?<![./])$"
    },
    "skillPrefix": {
      "default": "",
      "anyOf": [
        {
          "type": "string",
          "const": ""
        },
        {
          "type": "string",
          "pattern": "^[a-z0-9]+-$"
        }
      ]
    },
    "commands": {
      "default": {},
      "type": "object",
      "properties": {
        "test": {
          "type": "string",
          "minLength": 1
        },
        "typecheck": {
          "type": "string",
          "minLength": 1
        },
        "lint": {
          "type": "string",
          "minLength": 1
        },
        "format": {
          "type": "string",
          "minLength": 1
        },
        "install": {
          "type": "string",
          "minLength": 1
        },
        "dev": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "kit": {
      "default": {},
      "type": "object",
      "properties": {
        "exclude": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
          }
        }
      },
      "additionalProperties": false
    },
    "lanes": {
      "default": {},
      "type": "object",
      "properties": {
        "copy": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?![/-])(?!(?:.*\\/)?\\.\\.(?:\\/|$))[^'\\x00-\\x1f\\x7f]+$"
          }
        },
        "disposable": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?![/-])(?!(?:.*\\/)?\\.\\.(?:\\/|$))[^'\\x00-\\x1f\\x7f]+$"
          }
        },
        "lockFile": {
          "type": "string",
          "pattern": "^(?![/-])(?!(?:.*\\/)?\\.\\.(?:\\/|$))[A-Za-z0-9._/-]+$"
        },
        "minFreeGb": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "basePort": {
          "type": "integer",
          "minimum": 1,
          "maximum": 65535
        },
        "devCommand": {
          "type": "string",
          "minLength": 1
        },
        "backend": {
          "type": "object",
          "properties": {
            "command": {
              "type": "string",
              "minLength": 1
            },
            "services": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "pattern": "^(?!-)[\\w@./:-]+$"
                  },
                  "port": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 65535
                  }
                },
                "required": [
                  "name",
                  "port"
                ],
                "additionalProperties": false
              }
            },
            "label": {
              "default": "backend",
              "type": "string",
              "pattern": "^(?!-)[\\w.-]+$"
            }
          },
          "required": [
            "command",
            "services"
          ],
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "models": {
      "default": {
        "plan": "claude-opus-5-5",
        "implement": "claude-sonnet-5-5",
        "review": "claude-sonnet-5-5",
        "explore": "claude-sonnet-5-5",
        "orchestrate": "claude-opus-5-5"
      },
      "type": "object",
      "propertyNames": {
        "type": "string",
        "enum": [
          "plan",
          "implement",
          "review",
          "explore",
          "orchestrate"
        ]
      },
      "additionalProperties": {
        "type": "string",
        "pattern": "^claude-[a-z0-9][a-z0-9.-]*$"
      },
      "required": [
        "plan",
        "implement",
        "review",
        "explore",
        "orchestrate"
      ]
    },
    "terminal": {
      "default": {},
      "type": "object",
      "properties": {
        "adapter": {
          "default": "none",
          "type": "string",
          "enum": [
            "none",
            "herdr"
          ]
        }
      },
      "additionalProperties": false
    },
    "preview": {
      "default": {},
      "type": "object",
      "properties": {
        "publish": {
          "default": true,
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "plans": {
      "default": {},
      "type": "object",
      "properties": {
        "fetchIntervalMinutes": {
          "default": 5,
          "type": "number",
          "minimum": 0
        },
        "shimmer": {
          "default": true,
          "type": "boolean"
        },
        "briefAfterMinutes": {
          "default": 60,
          "type": "number",
          "minimum": 0
        },
        "linkKinds": {
          "default": [
            {
              "pattern": "^https://github\\.com/[^/]+/[^/]+/(pull|issues)/\\d+",
              "label": "GitHub",
              "icon": "⑂"
            },
            {
              "pattern": "^https://(www\\.)?figma\\.com/",
              "label": "Figma",
              "icon": "◈"
            },
            {
              "pattern": "^https://claude\\.ai/(code/)?artifact/",
              "label": "Artifact",
              "icon": "🔗"
            }
          ],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "pattern": {
                "type": "string",
                "minLength": 1
              },
              "label": {
                "type": "string",
                "minLength": 1
              },
              "icon": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "pattern",
              "label",
              "icon"
            ],
            "additionalProperties": false
          }
        },
        "context": {
          "default": {},
          "type": "object",
          "properties": {
            "warnTokens": {
              "default": 250000,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "alertTokens": {
              "default": 350000,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "windows": {
              "default": {},
              "type": "object",
              "propertyNames": {
                "type": "string",
                "pattern": "^claude-[a-z0-9][a-z0-9.-]*$"
              },
              "additionalProperties": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "defaultWindow": {
              "default": 200000,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "coordinator": {
              "default": {},
              "type": "object",
              "properties": {
                "warnTokens": {
                  "default": 350000,
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "alertTokens": {
                  "default": 500000,
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "clearTokens": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "clearAfterMergeTokens": {
                  "default": 150000,
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "tones": {
          "default": {},
          "type": "object",
          "properties": {
            "waiting": {
              "default": "amber",
              "type": "string",
              "enum": [
                "amber",
                "teal",
                "grey",
                "red",
                "green",
                "blue",
                "magenta"
              ]
            },
            "planned": {
              "default": "teal",
              "type": "string",
              "enum": [
                "amber",
                "teal",
                "grey",
                "red",
                "green",
                "blue",
                "magenta"
              ]
            },
            "new": {
              "default": "amber",
              "type": "string",
              "enum": [
                "amber",
                "teal",
                "grey",
                "red",
                "green",
                "blue",
                "magenta"
              ]
            },
            "running": {
              "default": "teal",
              "type": "string",
              "enum": [
                "amber",
                "teal",
                "grey",
                "red",
                "green",
                "blue",
                "magenta"
              ]
            },
            "resting": {
              "default": "grey",
              "type": "string",
              "enum": [
                "amber",
                "teal",
                "grey",
                "red",
                "green",
                "blue",
                "magenta"
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "watch": {
      "default": {},
      "type": "object",
      "properties": {
        "deploy": {
          "type": "object",
          "properties": {
            "workflow": {
              "type": "string",
              "pattern": "^(?![-.])[A-Za-z0-9._-]+\\.ya?ml$"
            },
            "environments": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "required": [
            "workflow",
            "environments"
          ],
          "additionalProperties": false
        },
        "feedback": {
          "default": {},
          "anyOf": [
            {
              "type": "boolean",
              "const": false
            },
            {
              "type": "object",
              "properties": {
                "ignore": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "noFindingTemplates": {
                  "default": [
                    "## Code review\n\nNo issues found. Checked for bugs and CLAUDE.md compliance."
                  ],
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "checks": {
          "default": {},
          "type": "object",
          "properties": {
            "failedTestPattern": {
              "default": "^\\(fail\\) (.+?)(?: \\[[\\d.]+m?s\\])?$",
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false
        },
        "parallelTasks": {
          "default": {},
          "type": "object",
          "properties": {
            "maxTokens": {
              "default": 100000,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "auto": {
              "type": "object",
              "properties": {
                "since": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "until": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "since",
                "until"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "taskSignalMinutes": {
          "default": 10,
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "previews": {
          "type": "object",
          "properties": {
            "deployments": {
              "default": false,
              "type": "boolean"
            },
            "authors": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "urlPattern": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false
        },
        "sources": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][\\w.-]*$"
              },
              "command": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "every": {
                "default": 5,
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "items": {
                "type": "string"
              },
              "map": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "count": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": {
                  "type": "string"
                }
              },
              "ignoreAuthors": {
                "default": [],
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "reportLimit": {
                "default": 5,
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40,
                "pattern": "^[^\\r\\n]+$"
              },
              "lane": {
                "type": "string",
                "minLength": 1
              },
              "ticket": {
                "type": "boolean"
              },
              "tone": {
                "type": "string",
                "enum": [
                  "amber",
                  "teal",
                  "grey",
                  "red",
                  "green",
                  "blue",
                  "magenta"
                ]
              },
              "reportOn": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "secrets": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Z][A-Z0-9_]*$"
                }
              },
              "show": {
                "type": "string",
                "const": "entries"
              },
              "repos": {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[\\w.-]+\\/[\\w.-]+$"
                }
              }
            },
            "required": [
              "name",
              "command",
              "map"
            ],
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "guard": {
      "default": {},
      "type": "object",
      "properties": {
        "commands": {
          "default": [
            "gh pr merge",
            "gh workflow run"
          ],
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*){1,3}$"
          }
        },
        "selfMerge": {
          "default": {},
          "type": "object",
          "properties": {
            "offer": {
              "default": true,
              "type": "boolean"
            },
            "approvalMinutes": {
              "default": 180,
              "type": "integer",
              "minimum": 1,
              "maximum": 1440
            }
          },
          "additionalProperties": false
        },
        "approvals": {
          "default": {},
          "type": "object",
          "properties": {
            "waitMinutes": {
              "default": 8,
              "type": "integer",
              "minimum": 1,
              "maximum": 9
            },
            "standing": {
              "type": "object",
              "properties": {
                "tools": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "pattern": "^mcp__[A-Za-z0-9_-]+__execute_sql$"
                  },
                  "additionalProperties": {
                    "type": "string",
                    "enum": [
                      "stage"
                    ]
                  }
                }
              },
              "required": [
                "tools"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "alwaysAsk": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.*/-]+$"
          }
        },
        "requiredChecks": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          }
        },
        "planApproval": {
          "deprecated": true,
          "type": "object",
          "properties": {
            "exceptPaths": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.*/-]+$"
              }
            },
            "requiredChecks": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200
              }
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "merge": {
      "default": {},
      "type": "object",
      "properties": {
        "withoutChecks": {
          "default": [],
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.*/-]+$"
          }
        },
        "openAsDraft": {
          "default": false,
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "hints": {
      "default": {},
      "type": "object",
      "properties": {
        "askUserQuestion": {
          "default": true,
          "type": "boolean"
        },
        "taskSignal": {
          "default": true,
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "check": {
      "type": "object",
      "properties": {
        "lintFilesCommand": {
          "type": "string",
          "minLength": 1
        },
        "checks": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "command": {
                "type": "string",
                "minLength": 1
              },
              "globs": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "kind": {
                "type": "string",
                "enum": [
                  "tests",
                  "types"
                ]
              }
            },
            "required": [
              "name",
              "command"
            ],
            "additionalProperties": false
          }
        },
        "generatorOwned": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "glob": {
                "type": "string",
                "minLength": 1
              },
              "generator": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "glob",
              "generator"
            ],
            "additionalProperties": false
          }
        },
        "buildArtifacts": {
          "default": [
            "**/tsup.config.bundled_*",
            "**/dist/**",
            "**/.turbo/**",
            "**/node_modules/**",
            "**/*.tsbuildinfo"
          ],
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "reviewerRoutes": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "reviewer": {
                "type": "string",
                "minLength": 1
              },
              "globs": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "why": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "reviewer",
              "globs",
              "why"
            ],
            "additionalProperties": false
          }
        },
        "publicContent": {
          "type": "object",
          "properties": {
            "globs": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "exclude": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "reviewer": {
              "default": "public-content",
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "globs"
          ],
          "additionalProperties": false
        },
        "backendServices": {
          "type": "object",
          "properties": {
            "packages": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "ports": {
              "type": "object",
              "properties": {
                "files": {
                  "type": "string",
                  "minLength": 1
                },
                "pattern": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "files",
                "pattern"
              ],
              "additionalProperties": false
            },
            "globs": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "required": [
            "packages",
            "globs"
          ],
          "additionalProperties": false
        },
        "skillBudgets": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "minLength": 1
          },
          "additionalProperties": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "openBoxes": {
          "default": "fail",
          "type": "string",
          "enum": [
            "fail",
            "warn",
            "off"
          ]
        },
        "lintPointers": {
          "type": "object",
          "properties": {
            "level": {
              "default": "warn",
              "type": "string",
              "enum": [
                "warn",
                "fail",
                "off"
              ]
            },
            "exclude": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "additionalProperties": false
        },
        "looseTests": {
          "default": false,
          "type": "boolean"
        },
        "roots": {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "sourceFiles": {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "testFiles": {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
