utils/repo_contract/templates/agent-ready-hook.yaml
Krzysztof kuhy Rudnicki a0fb279b1b agent_ready: AgentReady v2.0 checker + repo_contract web-site gate
New agent_ready/ package (dist and live-url modes, 100% branch coverage)
checks robots, sitemap, llms.txt, ai-catalog, 404, no-JS text, markdown
mirrors and JSON-LD. repo_contract gains web-repo detection and installs the
agent-ready pre-commit hook, CI workflow and check_agent_ready.sh shim;
scripts/check_agent_ready.sh is the shared entry point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NBScELfMUiieK9ManFbS3Y
2026-10-22 21:18:49 +02:00

17 lines
936 B
YAML

# Added under `repos: - repo: local: hooks:` by install_repo_contract_gate.sh
# for any repo with [agent_ready] in repo-contract.toml (a website).
# Every website passes the AgentReady checker (~/src/utils/agent_ready):
# builds, then checks robots/sitemap/llms.txt/ai-catalog/404/no-JS text/
# markdown mirrors/JSON-LD in the build output. `files:` limits it to
# commits touching web inputs (override: [agent_ready] files in
# repo-contract.toml; the installer rewrites this line to match). CI
# rebuilds on every push and is the strict authority. pre-commit stage,
# not pre-push: a cold tsc + vite build + check measured 1.5-2.7 s
# (kcd2-dice-solver, personal-website copies, 2026-10-22).
- id: agent-ready
name: AgentReady (website build output)
entry: scripts/check_agent_ready.sh
language: system
pass_filenames: false
files: {files}