Renovate

From G1Joshi/Agent-Skills · View interactive version

Renovate is an AI agent skill from the GitHub repository G1Joshi/Agent-Skills. Expert Renovate Bot dependency automation covering schedule presets, monorepo package grouping, and auto-merging. Use when configuring `renovate.json`, updating dependencies, or automating security patch management.

How to use this skill

Skill file

Renovate

Renovate is the power-user alternative to Dependabot. It runs on any platform (GitHub, GitLab, Bitbucket, Azure) and offers extreme configurability for how and when dependencies are updated.

When to Use

Quick Start

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:base"],
  "packageRules": [
    {
      "matchPackagePatterns": ["^react", "^@types/react"],
      "groupName": "react monorepo"
    },
    {
      "matchUpdateTypes": ["minor", "patch"],
      "matchCurrentVersion": "!/^0/",
      "automerge": true
    }
  ]
}

Core Concepts

Declarative renovate.json Configuration

Centralizes dependency rules, schedules, and automation policies:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:recommended"],
  "timezone": "America/New_York",
  "schedule": ["before 6am on monday"],
  "packageRules": [
    {
      "matchUpdateTypes": ["minor", "patch", "pin", "digest"],
      "automerge": true,
      "automergeType": "branch"
    },
    {
      "matchPackageNames": ["react", "react-dom"],
      "groupName": "React core"
    }
  ]
}

Automated Package Grouping & Monorepo Co-Updates

Groups related dependencies (e.g. all @aws-sdk/* or all ESLint plugins) into a single unified pull request:

{
  "packageRules": [
    {
      "matchPackagePatterns": ["^@aws-sdk/"],
      "groupName": "AWS SDK monorepo"
    }
  ]
}

Regex Managers for Non-Standard Files

Updates dependency versions declared inside custom shell scripts or Docker compose files:

{
  "customManagers": [
    {
      "customType": "regex",
      "fileMatch": ["^Dockerfile$"],
      "matchStrings": ["ENV NODE_VERSION=(?<currentValue>.*?)\n"],
      "depNameTemplate": "nodejs/node",
      "datasourceTemplate": "github-releases"
    }
  ]
}

Common Patterns

Monorepo Grouping with Auto-Merge for Minor Patches

Problem: Multiple sub-packages in a monorepo trigger dozens of separate PRs that create merge conflicts.

Solution:

Configure renovate.json to group related packages and auto-merge safe patches:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:recommended"],
  "packageRules": [
    {
      "matchUpdateTypes": ["minor", "patch"],
      "matchCurrentVersion": "!/^0/",
      "automerge": true,
      "automergeType": "branch"
    },
    {
      "groupName": "tailwind monorepo",
      "matchPackagePrefixes": ["@tailwindcss/", "tailwindcss"]
    }
  ]
}

Best Practices

Do:

Don't:

Troubleshooting

| Error | Cause | Solution |

| :------------------------------------------- | :----------------------------------------------------------- | :-------------------------------------------------------------------------- |

| Renovate configuration error: invalid JSON | Syntax error or unrecognized preset name in renovate.json. | Run npx renovate-config-validator locally to validate schema. |

| Automerge failing on GitHub PR | Branch protection rules require approvals or signed commits. | Configure Renovate GitHub App with auto-merge permissions and sign commits. |

| PR rate limit reached | Renovate creating too many concurrent PRs. | Configure prConcurrentLimit: 10 and prHourlyLimit: 2 in configuration. |

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.