update-precommit

Update repo rev entries in .pre-commit-config.yaml to latest GitHub release tags.

10|1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/reidemeister94/development-skills --skill update-precommit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-precommit
Source: https://github.com/reidemeister94/development-skills/tree/main/skills/update-precommit
Command: npx skills add https://github.com/reidemeister94/development-skills --skill update-precommit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Updates the versioned rev entries in .pre-commit-config.yaml to the latest release tags on GitHub, ensuring hooks stay current.

Core Features & Use Cases

  • Keeps pre-commit configurations up-to-date across multi-repo setups.
  • Preserves the existing rev formatting (quotes and v-prefix) while applying updates.
  • Useful for CI pipelines to ensure consistent hook versions across environments.

Quick Start

Run the skill to autoupdate all repo:rev entries in .pre-commit-config.yaml to their latest tags and apply the changes.

Frequently Asked Questions about update-precommit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically update pre-commit hooks to the latest version?

To automatically update pre-commit hooks, the Skill reads .pre-commit-config.yaml, queries GitHub for the latest release tag of each repo, and updates the rev entries. This keeps hook versions current across local and CI environments without manual editing.

How do I bump pre-commit hook rev versions in .pre-commit-config.yaml?

Bump pre-commit hook rev versions by querying the GitHub API for the latest release tag for each configured repository and updating the .pre-commit-config.yaml file. The process preserves the original rev formatting, including existing quotes and version prefixes.

Does updating .pre-commit-config.yaml preserve the original rev formatting?

Yes, updating .pre-commit-config.yaml preserves the original rev formatting. The Skill maintains the existing quotes and v-prefixes while applying the latest release tags, ensuring your configuration syntax remains intact and valid across environments.

Can I use this to keep pre-commit configurations consistent across CI pipelines?

Yes, you can use this to keep pre-commit configurations consistent across CI pipelines. By bumping all repo rev entries to the latest GitHub release tags, the Skill ensures that hook versions remain synchronized and current across both local development and CI environments.

What is the best way to update multiple pre-commit repositories at once?

The best way to update multiple pre-commit repositories at once is to run a Skill that reads .pre-commit-config.yaml, queries the GitHub API for each repo's latest release tag, and applies the updates to the file simultaneously, avoiding manual repository-by-repository editing.

Do I need to manually specify the latest release tag for each pre-commit hook?

No, you do not need to manually specify the latest release tag for each pre-commit hook. The Skill automatically queries the GitHub API to find the latest release tag for every repository listed in .pre-commit-config.yaml and applies the discovered versions directly.