# Web Evidence

> Capture redacted static HTTP evidence bundles through the nils-cli web-evidence command.

- **Type:** Skill
- **Install:** `agentstack add skill-graysurf-agent-kit-web-evidence`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [graysurf](https://agentstack.voostack.com/s/graysurf)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [graysurf](https://github.com/graysurf)
- **Source:** https://github.com/graysurf/agent-kit/tree/main/skills/tools/browser/evidence/web-evidence

## Install

```sh
agentstack add skill-graysurf-agent-kit-web-evidence
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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:

```bash
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:

```bash
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:

```bash
web-evidence capture  --out  [--format text|json] [--label ] [--method get|head]
web-evidence completion 
```

Local checkout fallback command:

```bash
cargo run --locked --manifest-path /path/to/nils-cli/Cargo.toml \
  -p nils-web-evidence --bin web-evidence --  ...
```

Do not reimplement HTTP fetching, redaction, schema generation, or artifact naming in skill-local scripts.

## Workflow

1. Create or choose a run directory for the current task, usually with `agent-out project --topic  --mkdir`.
2. Capture static evidence:
   `web-evidence capture  --out /web-evidence --label  --format json`
3. Read `summary.json` or JSON stdout for `ok`, `status_class`, `status_code`, `artifacts`, and `error`.
4. Attach or cite only redacted artifacts from the bundle; do not preserve raw cookies, auth headers, URL secrets, or unredacted network logs.
5. 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`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [graysurf](https://github.com/graysurf)
- **Source:** [graysurf/agent-kit](https://github.com/graysurf/agent-kit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-graysurf-agent-kit-web-evidence
- Seller: https://agentstack.voostack.com/s/graysurf
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
