= a2ml-pre-commit :toc: preamble :icons: font
== Overview
Pre-commit hook for validating A2ML manifest files.
A2ML (Agnostic Agent Markup Language) is a manifest format for machine-readable
metadata, AI agent instructions, and project state. This hook validates .a2ml
files on commit for structural correctness and required fields.
== Checks Performed
- SPDX header —
SPDX-License-Identifierin the first 10 lines - Identity fields — Requires
agent-id,name, orproject(relaxed for AI-MANIFEST files) - Version field —
versionorschema_versionpresence - Attestation blocks — Validates
proof/signature/hashfields if[attestation]section exists
== Installation
Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/hyperpolymath/a2ml-pre-commit
rev: v1.0.0
hooks:
- id: validate-a2ml
Then install:
== Manual Usage
You can also run the hook script directly:
== Author
Jonathan D.A. Jewell j.d.a.jewell@open.ac.uk
== License
SPDX-License-Identifier: MPL-2.0
See link:LICENSE[LICENSE] for details.