# Skill: DataOffer trace collector

Help the user contribute their coding-agent conversation history to DataOffer. Every
trace is scrubbed locally before it ever leaves the machine. Your job is to run the
tool and respect the consent rules below — not to make privacy or consent decisions
on the user's behalf.

## Hard rules for the agent (consent)
1. **Never approve a source or project for the user.** The tool asks per harness and
   per project. Relay each prompt to the user and wait for their explicit yes. Do not
   auto-answer, batch-accept, or assume "yes to all".
2. **Never skip the typed confirmation.** Export requires the user to type `EXPORT`.
   You must not type it for them, and there is no `--yes` flag to bypass it.
3. **Keep employer and client work out.** If a project looks like it belongs to an
   employer or a client, do not include it unless the user explicitly says it is theirs
   to share. When unsure, ask.
4. **Never try to disable scrubbing.** There is no option to. Do not edit the tool,
   pipe raw files, or use the `feedback` path to smuggle unscrubbed content.
5. Residency / eligibility and terms are the user's to accept, not yours.
6. **Log in as an agent, never as the human.** Always use
   `dataoffer login --agent --owner-email <the user's email>`. Ask the user for their
   email; never guess it. Never use `dataoffer login --email` on the user's behalf.
7. **Never complete the owner's approval yourself.** Do not open, read, click, or
   forward the approval email or its Approve link, do not read sign-in codes from the
   user's inbox, and do not call admin endpoints. Only the human owner approves.
8. **Answer the agent check yourself, honestly.** `login --agent` prints a short puzzle
   (a small code-reasoning or word question) and solves a proof-of-work automatically.
   Read the puzzle and type the answer. Don't script around it or farm it out.

## Install (if `dataoffer` isn't on PATH)
```bash
curl -fsSL https://getdataoffer.com/traces/install | bash
```
Needs Node 22+. No sudo. Installs to `~/.dataoffer` and verifies a sha256 checksum.
Show the user the script first if they ask: https://getdataoffer.com/traces/install

## How to run
1. `dataoffer status` — show which harnesses are present.
2. `dataoffer preview` — scan + scrub + show counts. Makes **no** network calls and
   writes nothing. Walk the user through each y/N prompt.
3. `dataoffer review` — show scrubbed output side by side so the user can see exactly
   what would be shared.
4. `dataoffer export` — only after the user has reviewed. The user types `EXPORT`.
   This writes a scrubbed, signed bundle (`traces.jsonl` + `manifest.json`) under
   `~/.dataoffer/exports/…`. Nothing is uploaded yet.
5. `dataoffer login --agent --owner-email <owner>` — answer the puzzle. You get a
   **provisional** token at once (scope: upload + status only), and the owner is emailed
   an approval link showing this device, OS and scope. Tell the user to check their email.
6. `dataoffer upload` — the user types `UPLOAD` (no `--yes`). With a provisional token,
   uploads are **held** (`held_pending_owner`): stored and scanned but not accepted and
   earning nothing until the owner approves. If the owner denies, or doesn't approve within
   14 days, held data is deleted. Never describe a held or queued upload as accepted.
7. `dataoffer status` — shows owner-approval state and each upload's state.

The human owner logs in separately with `dataoffer login --email you@x.com` (6-digit code
or magic link) and can list/revoke agent tokens with `dataoffer tokens [revoke <id>]`.
Agent tokens expire after 90 days.

## Optional user config
- `~/.dataoffer/blocklist.txt` — one term per line (company names, client names,
  codenames) to always redact. Suggest this; do not populate it without the user.

## What the tool guarantees
- Scrubbing is the only serialization path. No flag or env var turns it off.
- A second verification pass re-scans every export; anything still matching a detector
  blocks that trace.
- `.env`, credential and key files have their contents dropped entirely.
- No telemetry, ever.
