#!/usr/bin/env python3 """Lint committed docs against .agents/shared/writing-style.md. Checks two mechanical rules: 1. Banned vocabulary (significance puffers, analytical verbs, poetic nouns, promotional adjectives, opening crutches). 2. Broken relative markdown links. Prose-voice rules are not machine-checkable; this covers the parts that are. Run from the repo root: python3 .agents/skills/docs-lint/lint.py [paths...] Exit 1 if any violation is found. """ import os, re, sys BANNED = [ "pivotal", "crucial", "vital", "groundbreaking", "transformative", "testament", "paramount", "invaluable", "delve", "leverage", "utilize", "facilitate", "foster", "showcase", "underscore", "streamline", "harness", "tapestry", "realm", "paradigm", "nexus", "cornerstone", "robust", "seamless", "innovative", "cutting-edge", "meticulous", "holistic", "comprehensive", "in today's world", "it's worth noting", "it is important to note", ] BAN_RE = re.compile(r'(? {link}") violations += 1 print(f"\n{violations} violation(s)") return 1 if violations else 0 if __name__ == "__main__": sys.exit(main(sys.argv[1:]))