.clinerules · Schema

Cline Rule File

Schema for an individual rule file inside a project's .clinerules/ directory. A rule file is a Markdown or text document that provides Cline (the AI coding agent) with persistent instructions, coding conventions, architectural notes, or constraints. Files may contain optional YAML frontmatter that scopes the rule to specific globs so that the rule is only loaded when the active task touches matching files.

AI AgentsClineCoding StandardsConfigurationDeveloper WorkflowPrompt Engineering

Properties

Name Type Description
frontmatter object Optional YAML frontmatter at the top of a rule file. Used by Cline to conditionally activate rules.
body string Markdown or plain-text content of the rule. This is the actual instruction text presented to the agent.
View JSON Schema on GitHub

JSON Schema

clinerules-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/cline/cline/schemas/clinerules-rule.json",
  "title": "Cline Rule File",
  "description": "Schema for an individual rule file inside a project's .clinerules/ directory. A rule file is a Markdown or text document that provides Cline (the AI coding agent) with persistent instructions, coding conventions, architectural notes, or constraints. Files may contain optional YAML frontmatter that scopes the rule to specific globs so that the rule is only loaded when the active task touches matching files.",
  "type": "object",
  "properties": {
    "frontmatter": {
      "type": "object",
      "description": "Optional YAML frontmatter at the top of a rule file. Used by Cline to conditionally activate rules.",
      "properties": {
        "description": {
          "type": "string",
          "description": "Short human-readable description of what the rule covers."
        },
        "paths": {
          "type": "array",
          "description": "Glob patterns for which the rule should be activated. When present, the rule is only loaded when files matching one of these globs are part of the current task.",
          "items": {"type": "string"}
        },
        "globs": {
          "type": "array",
          "description": "Alias for paths. Glob patterns for files to which the rule applies.",
          "items": {"type": "string"}
        },
        "alwaysApply": {
          "type": "boolean",
          "description": "If true, the rule is included on every task regardless of file context.",
          "default": false
        },
        "tags": {
          "type": "array",
          "description": "Optional categorization tags for the rule.",
          "items": {"type": "string"}
        }
      },
      "additionalProperties": true
    },
    "body": {
      "type": "string",
      "description": "Markdown or plain-text content of the rule. This is the actual instruction text presented to the agent."
    }
  },
  "required": ["body"],
  "additionalProperties": true
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/clinerules-rule"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.