name: web-evidence
description: Capture redacted static HTTP evidence bundles through the nils-cli web-evidence command.
Web Evidence
Use this skill when an agent workflow needs deterministic, redacted evidence for one HTTP or HTTPS URL.
Contract
Prereqs:
web-evidence available on PATH from nils-cli 0.8.4 or newer.
- Static HTTP/HTTPS evidence only. This command does not drive a browser, execute JavaScript, reuse cookies, or use authenticated sessions.
- The caller chooses an explicit output directory, preferably under a project-scoped
agent-out run directory.
Inputs:
capture: required URL and --out DIR; optional --format text|json, --label LABEL, --method get|head,
--timeout-seconds N, --max-body-bytes N, and --body-preview-bytes N.
completion: required shell name bash|zsh.
Outputs:
web-evidence capture: writes a redacted artifact bundle under --out DIR.
summary.json: versioned summary with request metadata, status classification, artifact paths, redaction counts, and error metadata.
headers.redacted.json: request and response header names with sensitive values redacted.
body-preview.redacted.txt: truncated, redacted text body preview when the response body is text.
- JSON stdout with
--format json uses schema_version value cli.web-evidence.capture.v1.
Exit codes:
0: evidence captured and response classified as successful.
1: runtime, network, or HTTP status failure; when possible, the command still writes the redacted bundle.
64: usage or configuration error.
Failure modes:
web-evidence is unavailable on PATH.
- URL is unsupported, malformed, or not HTTP/HTTPS.
- Output directory cannot be created or safely written.
- Network request fails, times out, or returns a failure HTTP status.
- Caller needs browser state, JavaScript execution, screenshots, console logs,
cookies, or auth headers; use Browser/Chrome/Playwright tooling instead.
Setup
Released PATH boundary:
web-evidence --help
web-evidence capture --help
Use the PATH command after installing nils-cli 0.8.4 or newer with nils-web-evidence on PATH.
Local checkout fallback boundary:
cargo run --locked --manifest-path "$HOME/Project/sympoies/nils-cli/Cargo.toml" \
-p nils-web-evidence --bin web-evidence -- --help
Run the Cargo form from the workflow's target directory only when PATH is absent
or reports an older nils-cli, and only from a validated local nils-cli
checkout. Keep the same web-evidence subcommands and flags in both modes.
Commands (only entrypoints)
Released PATH command:
web-evidence capture <url> --out <dir> [--format text|json] [--label <label>] [--method get|head]
web-evidence completion <bash|zsh>
Local checkout fallback command:
cargo run --locked --manifest-path /path/to/nils-cli/Cargo.toml \
-p nils-web-evidence --bin web-evidence -- <subcommand> ...
Do not reimplement HTTP fetching, redaction, schema generation, or artifact naming in skill-local scripts.
Workflow
- Create or choose a run directory for the current task, usually with
agent-out project --topic <topic> --mkdir.
- Capture static evidence:
web-evidence capture <url> --out <run-dir>/web-evidence --label <scenario> --format json
- Read
summary.json or JSON stdout for ok, status_class, status_code, artifacts, and error.
- Attach or cite only redacted artifacts from the bundle; do not preserve raw cookies, auth headers, URL secrets, or unredacted network logs.
- If browser behavior is required, report that this static evidence command is insufficient and use a browser tool instead.
References
docs/runbooks/skills/TOOLING_INDEX_V2.md
1---2name: web-evidence3description: Capture redacted static HTTP evidence bundles through the nils-cli web-evidence command.4---5---6name: web-evidence7description: Capture redacted static HTTP evidence bundles through the nils-cli web-evidence command.8---910# Web Evidence1112Use this skill when an agent workflow needs deterministic, redacted evidence for one HTTP or HTTPS URL.1314## Contract1516Prereqs:1718- `web-evidence` available on `PATH` from `nils-cli 0.8.4` or newer.19- Static HTTP/HTTPS evidence only. This command does not drive a browser, execute JavaScript, reuse cookies, or use authenticated sessions.20- The caller chooses an explicit output directory, preferably under a project-scoped `agent-out` run directory.2122Inputs:2324- `capture`: required `URL` and `--out DIR`; optional `--format text|json`, `--label LABEL`, `--method get|head`,25 `--timeout-seconds N`, `--max-body-bytes N`, and `--body-preview-bytes N`.26- `completion`: required shell name `bash|zsh`.2728Outputs:2930- `web-evidence capture`: writes a redacted artifact bundle under `--out DIR`.31- `summary.json`: versioned summary with request metadata, status classification, artifact paths, redaction counts, and error metadata.32- `headers.redacted.json`: request and response header names with sensitive values redacted.33- `body-preview.redacted.txt`: truncated, redacted text body preview when the response body is text.34- JSON stdout with `--format json` uses `schema_version` value `cli.web-evidence.capture.v1`.3536Exit codes:3738- `0`: evidence captured and response classified as successful.39- `1`: runtime, network, or HTTP status failure; when possible, the command still writes the redacted bundle.40- `64`: usage or configuration error.4142Failure modes:4344- `web-evidence` is unavailable on `PATH`.45- URL is unsupported, malformed, or not HTTP/HTTPS.46- Output directory cannot be created or safely written.47- Network request fails, times out, or returns a failure HTTP status.48- Caller needs browser state, JavaScript execution, screenshots, console logs,49 cookies, or auth headers; use Browser/Chrome/Playwright tooling instead.5051## Setup5253Released PATH boundary:5455```bash56web-evidence --help57web-evidence capture --help58```5960Use the PATH command after installing `nils-cli 0.8.4` or newer with `nils-web-evidence` on PATH.6162Local checkout fallback boundary:6364```bash65cargo run --locked --manifest-path "$HOME/Project/sympoies/nils-cli/Cargo.toml" \66 -p nils-web-evidence --bin web-evidence -- --help67```6869Run the Cargo form from the workflow's target directory only when PATH is absent70or reports an older `nils-cli`, and only from a validated local `nils-cli`71checkout. Keep the same `web-evidence` subcommands and flags in both modes.7273## Commands (only entrypoints)7475Released PATH command:7677```bash78web-evidence capture <url> --out <dir> [--format text|json] [--label <label>] [--method get|head]79web-evidence completion <bash|zsh>80```8182Local checkout fallback command:8384```bash85cargo run --locked --manifest-path /path/to/nils-cli/Cargo.toml \86 -p nils-web-evidence --bin web-evidence -- <subcommand> ...87```8889Do not reimplement HTTP fetching, redaction, schema generation, or artifact naming in skill-local scripts.9091## Workflow92931. Create or choose a run directory for the current task, usually with `agent-out project --topic <topic> --mkdir`.942. Capture static evidence:95 `web-evidence capture <url> --out <run-dir>/web-evidence --label <scenario> --format json`963. Read `summary.json` or JSON stdout for `ok`, `status_class`, `status_code`, `artifacts`, and `error`.974. Attach or cite only redacted artifacts from the bundle; do not preserve raw cookies, auth headers, URL secrets, or unredacted network logs.985. If browser behavior is required, report that this static evidence command is insufficient and use a browser tool instead.99100## References101102- `docs/runbooks/skills/TOOLING_INDEX_V2.md`