#!/usr/bin/env bash set -euo pipefail echo "== Repo doctor ==" test -f AGENTS.md && echo "AGENTS.md: OK" || { echo "AGENTS.md: MISSING"; exit 1; } test -f .codex/config.toml && echo ".codex/config.toml: OK" || { echo ".codex/config.toml: MISSING"; exit 1; } test -d .codex/agents && echo ".codex/agents: OK" || { echo ".codex/agents: MISSING"; exit 1; } test -d docs && echo "docs/: OK" || { echo "docs/: MISSING"; exit 1; } branch="$(git rev-parse --abbrev-ref HEAD)" echo "Current branch: ${branch}" if [[ "${branch}" == "main" || "${branch}" == "develop" ]]; then echo "Warning: create a task branch before making changes." fi echo "Doctor completed."