Show, with a real and testable repo, how one primary Claude agent uses repo-local Markdown
guidance (CLAUDE.md), discoverable skills, optional subagent definitions, and
deterministic Python tools to produce a Repository Readiness Report for a local directory.
Claude runs locally (Claude Code / Claude Agent SDK); the repo holds only code, config and instructions.
samples/demo_project).CLAUDE.md, .claude/settings.json, .claude/skills/*, .claude/agents/*.python agent.py agent.output/evidence.json — schema 1.0: target, checks (id, status pass|warn|fail, detail,
recommendation, files), summary counts, redaction_applied: true. Deterministic, no timestamps.output/report.md — title, target, summary, table of all checks, next actions, evidence source.output/agent-summary.md (Claude’s interpretation, labelled as such) and
output/agent-run.json (skills discovered/invoked, tool calls, guard denials, turns, cost).python agent.py test exits 0; tests cover success and failure paths, need no credentials.python agent.py scan --target samples/demo_project exits 0 and produces parseable outputs with
at least one pass and one warn/fail check.agent-run.json, never just claimed.python agent.py agent runs a real Claude session when prerequisites exist, or names the exact
missing prerequisite and how to fix it. An offline scan is never presented as an agent run.tools/redact.py, tools/guard.py),
not by a skill or prompt.output/. Subagents inactive by default.Stop and report instead of guessing when credentials, external privileges, destructive changes, or unsupported SDK behaviour would be needed.
Commands run with exit codes, the generated output/ files, and output/agent-run.json for the live run.
agent.py (tool list, disallowed tools, max_turns, cwd) and in tools/guard.py (PreToolUse). The agent’s activity is recorded separately in output/agent-run.json, and evidence.json stays pure scan output..env file but not searching one. A Grep over the repo could return lines from a real .env.evidence.json vs agent-run.json).tools/guard.py: Grep is denied when a real .env file at or under the searched path could match its glob/type filter. .git is the only folder skipped. Unknown type values count as a possible match.tests/test_cli.py cover: a search denied when a real .env is reachable (no path, a folder path, an absolute path, the file itself, glob: "*", glob: ".env*"); a search allowed in folders with no real .env, with glob: "*.py", type: "py", and in .env.example-only folders; .git skipped and dependency folders not skipped.python agent.py test: all tests pass. python agent.py scan --target samples/demo_project still exits 0.