---
name: venkel-operator
description: Drive a Venkel repository assessment end to end — before-you-start notices, install, repository enumeration and clone, GitHub sidecar export, venkel.yaml authoring, scan, resume, ingest, report, then interpretation through the prompt packs. Use when asked to assess, scan, or audit a set of repositories with Venkel, or to run an estate assessment.
---

# Venkel operator

You are driving a Venkel assessment for the operator: an engineer looking at their own
company's estate, a consultant looking at a client's, someone auditing open source. The steps
are the same for all of them. Follow the runbook exactly; this skill adds guardrails and the
order of operations. The runbook is `OPERATOR.md` in a Venkel
checkout, or https://install.venkel.dev/OPERATOR.md when Venkel was installed with the
installer. Venkel itself is `venkel` on PATH; `venkel --help` lists every command.

## Working practices

1. Read source through `venkel evidence`. It serves the exact revision that was scanned, with
   secrets redacted, so citations match the findings. Venkel does not control what you read;
   if you open a file under `repos/` another way, say so in the evidence log.
2. Do not run the scanned repositories' tests, builds, package installs, or hooks. Venkel does
   not either.
3. Do not change `offline`, run `trivy image --download-db-only`, or pass `--without-vuln-db`
   on your own. If `venkel scan` stops because the vulnerability database is missing, show the
   operator the two choices it prints and do what they decide.
4. `people.mode` is the operator's choice. Do not switch it on your own. If they ask to enable
   per-person analysis, repeat the before-you-start notice once and do what they decide.
5. Never ask the operator to attest, certify, or document permission, and never write anything
   of that kind to disk. Venkel reminds; it does not collect.
6. Keep `assessment.json`, `findings.jsonl` and report contents in the service the operator
   chose for interpretation. Ask before sending them anywhere else.
7. Run directories are immutable once published. Do not edit files inside them; use
   `venkel consolidate --out` and `venkel report --out` to regenerate elsewhere.

## Order of operations

1. **Start the folder**: have the operator run `venkel init` themselves in an empty
   directory. It shows the before-you-start notices, asks whether scanners may download
   database updates, then asks for the organization being assessed and who is preparing the
   report, and writes `venkel.yaml`, `notes.md`, `repos/` and `sidecars/`. Do not answer the
   notices for them. Then ask for scope: which organization and repositories, and how deep.
2. **Doctor**: `venkel doctor`. If tools are missing, re-run the installer
   (`curl -fsSL https://install.venkel.dev | bash`), then re-check. Drift is acceptable; record it.
   If `venkel` itself is missing, that same command installs it.
3. **Enumerate**: `gh repo list ORG --limit 500 --json name,isArchived,pushedAt,primaryLanguage`
   and write `repos.tsv`. Propose a scope and depth per repository (archived → inventory;
   dormant → inventory; active → standard; active and deployed → deep). Get the operator's
   confirmation before cloning.
4. **Clone** full history into `repos/` (`gh repo clone ORG/NAME repos/NAME`). Do not use `--depth`.
5. **Sidecars**: `venkel sidecar export ORG/NAME ... --days 365` for every repository; files
   land in `sidecars/NAME.github.json`. Needs `gh auth login` first. Missing sidecars become
   coverage gaps, which is acceptable but must be reported.
6. **Config**: edit the `venkel.yaml` that `venkel init` wrote, one entry per clone, each
   pointing at its sidecar; `venkel validate`;
   `venkel config effective`; `venkel plan`. Show the operator the plan's skip reasons and
   coverage gaps before scanning.
7. **Scan**: `venkel scan venkel.yaml`. On interruption, `venkel resume <staging dir>`.
   To add repositories later, add them to the same `venkel.yaml` and run `venkel scan` again:
   every run is a complete package, but scanner steps whose inputs did not change (same
   commit, scan level, adapter, tools and options) are carried forward from the previous
   completed run in the same output directory instead of recomputed. The report says how
   many. `--fresh` recomputes everything; use it when the operator asks for a clean run.
8. **Index**: `venkel ingest <run>`; `venkel inspect <output>/assessment.sqlite`.
9. **Report**: open `reports/venkel-report.html` and `reports/summary.md` from the run.
10. **Interpret**: apply the estate pack (`venkel prompts estate-findings`) to
    `assessment.json` and `summary.md`. Then, for each deep-dive candidate the operator
    approves, apply the deep-dive pack (`venkel prompts deep-dive`) using `venkel evidence` only.
11. **Hand-off**: list what was delivered, where it lives, what the coverage gaps were, and
    what to delete when the assessment is over.

## Reporting back to the operator

After each numbered step, report in two or three lines: what ran, what it produced, anything
skipped and why. Numbers go in a short table. Never claim a category was clean if its adapter
did not complete.
