Observed since 21 Oct, 11:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A validation tool for AI skills and agent configurations
AI Linter is a validation tool specifically designed for AI skills and agent configurations. It provides comprehensive linting and validation for:
SKILL.md files including frontmatter, content length, token count, and file referencesAGENTS.md files and ensures proper structure without frontmatterpip install ai-linter
# Clone the repository
git clone git@github.com:fchastanet/ai-linter.git
cd ai-linter
# Install the package
pip install .
# Clone and install for development
git clone git@github.com:fchastanet/ai-linter.git
cd ai-linter
# Install in development mode with all dev dependencies
pip install -e ".[dev]"
# Set up pre-commit hooks
pre-commit install
usage: aiLinter.py [-h]
[--skills]
[--max-warnings MAX_WARNINGS]
[--ignore-dirs IGNORE_DIRS [IGNORE_DIRS ...]]
[--log-level {ERROR,WARNING,INFO,DEBUG}]
[--version]
[--config-file CONFIG_FILE]
directories [directories ...]
Quick validation script for skills
positional arguments:
directories Directories to validate
options:
-h, --help show this help message and exit
--skills Indicates that the input directories contain skills
--max-warnings MAX_WARNINGS
Maximum number of warnings allowed before failing
--ignore-dirs IGNORE_DIRS [IGNORE_DIRS ...]
List of directory patterns to ignore when validating AGENTS.md files
--log-level {ERROR,WARNING,INFO,DEBUG}
Set the logging level
--version Show the version of the AI Linter
--config-file CONFIG_FILE
Path to the AI Linter configuration file
After installation, you can use AI Linter via the ai-linter command or directly with Python.
# Using the console script (recommended)
ai-linter /path/to/directory
# Auto-discover and validate all skills in a directory
ai-linter --skills /path/to/skills/directory
# Using the Python module directly
python src/aiLinter.py --skills examples/
# Set maximum allowed warnings
ai-linter --max-warnings 5 /path/to/directory
# Ignore specific directories
ai-linter --ignore-dirs node_modules build /path/to/directory
# Set log level
ai-linter --log-level DEBUG /path/to/directory
# Use custom config file
ai-linter --config-file custom-config.yaml /path/to/directory
# Show version
ai-linter --version
Create a .ai-linter-config.yaml file in your project root:
# Logging configuration
log_level: INFO # DEBUG, INFO, WARNING, ERROR
# Maximum warnings before failing
max_warnings: 10
# Directories to ignore during validation
ignore_dirs:
- .git
- __pycache__
- node_modules
- build
- dist
SKILL.md file must existAGENTS.md file structure validationname: string
description: string
license: string
allowed-tools: array
metadata: object
compatibility: object
See .pre-commit-hooks.yaml for ready-to-use pre-commit hooks. Add to your
.pre-commit-config.yaml:
repos:
- repo: https://github.com/fchastanet/ai-linter
rev: v0.1.0
hooks:
- id: ai-linter-skills
args: [--max-warnings, '5']
# Setup development environment
make install-dev
# Run all checks
make check-all
# Test the linter
make validate
This tool was inspired by Anthropic's skill validation script and adapted for broader AI development workflows.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 31 Jan 2026 | 12 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:20d75840db4331aaf7f0c2f479c790f2f5c66e3a6c9d1daa4199f92f59882599