Validate and auto-fix repository structure for agent workflows
Use alint to catch and correct structural mistakes agents commonly make
About this automation
Configure alint with --format agent output to generate per-violation instruction strings that agents can act on. Export active rulesets to AGENTS.md or CLAUDE.md sections so agents understand repository constraints before making changes.
How to implement
Install alint: cargo install alint or use Homebrew/Docker/npm shim
Create .alint.yml configuration describing repository structure rules
Add alint check to CI pipeline using GitHub Action or direct invocation
Enable --format agent output for agent-readable violation instructions
Run alint export-agents-md to generate AGENTS.md with active ruleset
Configure agent to read AGENTS.md before making file system changes
Enable auto-fix operations (12 available) for common structural issues