Build init_agent.py that probes runtime, dependencies, test command, env vars, and state freshness, then writes init_report.json and halts the session loud when a block-severity probe fails.
- A repo with a
requirements.txt(or equivalent), a test command, and the workbench state file from lesson 34 - The probe table from the lesson (runtime, deps, paths, env, state freshness, last-known-good commit)
init_agent.pywith one function per probe returning(name, status, detail)init_report.jsoncarrying the full probe set and a timestamp- Non-zero exit on any block-severity probe failure
python3 code/main.pyexits zero on the happy path- Running it twice in a row is a no-op except for the timestamp
- A simulated missing env var probe surfaces in the report and flips the exit code
- Auto-installing missing dependencies. The script halts and surfaces; the human fixes.
- Calling an LLM from a probe. Probes stay deterministic plumbing.
docs/en.md- full lessoncode/main.py- reference implementationoutputs/skill-init-script.md- extracted skill