Skip to content

Configuration

Config file: .skills-lint.config.json in your project root.

Example

json
{
  "patterns": ["./.github/**/SKILL.md"],
  "rules": {
    "token-limit": {
      "models": {
        "gpt-4o": { "warning": 8000, "error": 16000 },
        "gpt-4": { "warning": 2000, "error": 4000 }
      }
    },
    "frontmatter-limit": {
      "models": {
        "gpt-4o": { "warning": 1000, "error": 2000 },
        "gpt-4": { "warning": 500, "error": 1000 }
      }
    },
    "skill-index-budget": {
      "models": {
        "gpt-4o": { "warning": 2000, "error": 4000 },
        "gpt-4": { "warning": 1000, "error": 2000 }
      }
    },
    "skill-structure": true,
    "unique-name": true,
    "unique-description": true
  },
  "overrides": [
    {
      "files": [".github/skills/large-skill/SKILL.md"],
      "rules": {
        "token-limit": {
          "models": {
            "gpt-4o": { "warning": 16000, "error": 32000 }
          }
        }
      }
    }
  ]
}

Patterns

Glob patterns to find skill files. Relative to the config file.

json
{ "patterns": ["./.github/**/SKILL.md", "./docs/skills/**/*.md"] }

Models

FieldTypeRequiredDescription
warningnumberYesWarning threshold
errornumberYesError threshold
encodingstringNoOverride default encoding (see Encodings)

Encoding is auto-selected from the model name.

Supported models

ModelContextMax InputMax OutputEncodingRecommended WarningRecommended Error
gpt-5400K272K128Ko200k_base16,00032,000
gpt-4o128K112K16Ko200k_base8,00016,000
gpt-4o-mini128K112K16Ko200k_base8,00016,000
gpt-4-turbo128K124K4Kcl100k_base8,00016,000
gpt-48K4K4Kcl100k_base2,0004,000
gpt-3.5-turbo16K12K4Kcl100k_base4,0008,000

Skill files are loaded lazily into the model's context window when activated. The recommended budgets keep skill files to roughly 5–10% of the model's effective input capacity, leaving room for system instructions, conversation history, and output. Tighter budgets on gpt-4 and gpt-3.5-turbo reflect their smaller context windows.

Unsupported model names are rejected at config load.

Rules

See the Rules page for detailed documentation of all six rules: token-limit, frontmatter-limit, skill-index-budget, skill-structure, unique-name, and unique-description.

Overrides

Per-file threshold overrides (applies to token-limit only):

json
{
  "overrides": [
    {
      "files": [".github/skills/large-skill/SKILL.md"],
      "rules": {
        "token-limit": {
          "models": {
            "gpt-4o": { "warning": 16000, "error": 32000 }
          }
        }
      }
    }
  ]
}
  • files — exact paths (not globs)
  • Only specified fields are overridden; the rest inherit from global config
  • Overrides are applied in order
  • Unlisted models keep global values

Released under the MIT License.