← Back to Skills Marketplace
charlie-morrison

Pre-commit Config Validator

by charlie-morrison · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
133
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pre-commit-config-validator
Description
Validate .pre-commit-config.yaml files for structure, repository entries, hook definitions, local hooks, and best practices. 23 rules across 5 categories.
Usage Guidance
This skill appears coherent and only runs a local Python script to validate pre-commit config files; it does not request credentials or install remote packages. However, the source/homepage are unknown — you are executing code from an unverified origin. Before installing or running it, review the script (scripts/precommit_validator.py) yourself or run it in a sandboxed environment to confirm there are no unwanted behaviors (network access, unexpected file I/O). If you plan to let an agent invoke it autonomously, remember it will be able to run that script on any file paths you or the agent pass to it, so avoid passing sensitive files unless you trust the code.
Capability Analysis
Type: OpenClaw Skill Name: pre-commit-config-validator Version: 1.0.0 The skill is a legitimate utility for validating .pre-commit-config.yaml files against a set of 23 structural and best-practice rules. The implementation in scripts/precommit_validator.py is written in clean Python, uses safe YAML loading practices (yaml.safe_load), and contains no network activity, file system modifications, or unauthorized data access. The SKILL.md instructions are strictly aligned with the tool's stated purpose and do not contain any prompt injection attempts.
Capability Assessment
Purpose & Capability
Name/description match the included assets: SKILL.md documents running scripts/precommit_validator.py to validate .pre-commit-config.yaml files and the repository contains a ~25KB Python script that implements those checks.
Instruction Scope
SKILL.md only instructs running the included Python script against specific files (validate, repos, hooks, lint, formats). The instructions do not ask the agent to read unrelated system state, environment variables, or to transmit data to external endpoints.
Install Mechanism
No install spec is provided (instruction-only with bundled script). The script appears to use only Python stdlib (argparse, json, re, pathlib, etc.) and provides a minimal YAML parser fallback, so there is no third-party package download or archive extraction in the install process.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The included script takes file paths as arguments and does not request or appear to need secrets for its stated purpose.
Persistence & Privilege
always is false and the skill does not request any elevated, persistent privileges. It does not modify other skills or system-wide agent settings according to the provided files and metadata.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pre-commit-config-validator
  3. After installation, invoke the skill by name or use /pre-commit-config-validator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of pre-commit-config-validator. - Validates `.pre-commit-config.yaml` files for structure, repository entries, hook definitions, local hooks, and best practices - Implements 23 rules across 5 categories with error, warning, and info severity levels - Supports multiple commands for targeted checks: full validation, repos, hooks, lint - Offers multiple output formats: text, JSON, and summary - Includes strict mode to treat warnings as errors and supports validation of multiple files at once - Provides clear exit codes for CI integration
Metadata
Slug pre-commit-config-validator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Pre-commit Config Validator?

Validate .pre-commit-config.yaml files for structure, repository entries, hook definitions, local hooks, and best practices. 23 rules across 5 categories. It is an AI Agent Skill for Claude Code / OpenClaw, with 133 downloads so far.

How do I install Pre-commit Config Validator?

Run "/install pre-commit-config-validator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Pre-commit Config Validator free?

Yes, Pre-commit Config Validator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Pre-commit Config Validator support?

Pre-commit Config Validator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Pre-commit Config Validator?

It is built and maintained by charlie-morrison (@charlie-morrison); the current version is v1.0.0.

💬 Comments