AGENTS.md · diff

git:20260716.a60ea5a to git:20260726.e3a2c90

7 added, 33 removed. Audit A to A.

# AGENTS.md
- This repo contains one portable skill for Claude, Codex, and ChatGPT in `skills/class-action-finder/`. Run `./install.sh --codex` to install it into Codex's global skills directory (`${CODEX_HOME:-$HOME/.codex}/skills/`) so it works across all projects. The default `./install.sh` target remains Claude Code.
-
- ## The skill
-
- `class-action-finder` does two jobs that feed each other, in one `SKILL.md`:
- - **Find** — scans the user's connected email for class action settlement notices and produces a styled HTML report (`SKILL.md` Part A)
- - **Remember** — reads and writes a persistent record of what the user has filed and been paid (`SKILL.md` Part B), and can refresh the current report after a correction without re-scanning email (Part C)
-
- It was previously two separate skills (`class-action-scanner` + `class-action-tracker`); they were merged so the record ↔ report loop lives in one place. If you see stale references to the old names anywhere, update them.
-
- ## Reference files
-
- The skill reads these at runtime from its own `references/` directory:
-
- | File | Purpose |
- |---|---|
- | `extraction-guide.md` | How to classify emails, extract fields (incl. claim ID vs. PIN), skip irrelevant threads |
- | `phishing-guide.md` | Confidence scoring signals and known settlement administrator domains |
- | `report-template.md` | Content guide for the 5-section HTML report |
-
- ## Persistent claim record
-
- Stored at `${CODEX_HOME:-$HOME/.codex}/class-action-tracker.json` for Codex on each user's own machine (not committed). Claude Code keeps its existing `~/.claude/class-action-tracker.json`; neither platform's installer overwrites the other's tracker.
-
- ## Generated reports
-
- Written to `skills/class-action-finder/output/` — relative to the skill's own installed directory, never the user's cwd or Desktop/Documents. That folder is gitignored (`*.html`, `*.json`) except for a `.gitkeep`, so reports stay local and the repo doesn't accumulate personal scan data.
-
- ## Mail tools (Gmail-first, provider-adaptive)
+ This repo contains a single portable skill for Claude, Codex, and ChatGPT in `skills/class-action-finder/`.
- The skill uses whichever connected mail app, connector, or MCP can search mail and retrieve complete results. Gmail is the reference provider (Step 4's queries are Gmail syntax and give the fullest scan). Step 4 is deliberately provider-adaptive: it reads the connected tool's search schema, translates the four searches into that provider's syntax, and degrades gracefully (skipping spam/promotions sweeps where absent, flagging the gap). It only hard-stops if there's no working mail search at all. Don't reduce this back to Gmail-only or hard-code one provider's tool names.
+ **[`CLAUDE.md`](CLAUDE.md) is the source of truth** for how the skill is structured — its two jobs, the reference files, the persistent claim record, generated-report handling, the provider-adaptive mail step, and the `dist/` packaging rule. All of it applies to Codex too; read it first, and keep it (not this file) authoritative so the two don't drift.
- ## Portable distribution (dist/)
+ ## Codex specifics
- `dist/class-action-finder.zip` is checked in for Claude uploads, and the byte-identical `dist/class-action-finder.skill` is checked in for ChatGPT. **After editing `SKILL.md`, `agents/openai.yaml`, or a reference file, re-run `./scripts/package-skill.sh` and commit both artifacts** — otherwise the download links go stale.
+ - **Install:** `./install.sh --codex` installs into Codex's global skills directory (`${CODEX_HOME:-$HOME/.codex}/skills/`) so it works across all projects. The default `./install.sh` targets Claude Code.
+ - **Invoke:** `$class-action-finder` on Codex, versus `/class-action-finder` on Claude Code.
+ - **Tracker file:** `${CODEX_HOME:-$HOME/.codex}/class-action-tracker.json`. Codex and Claude Code keep separate trackers; neither installer overwrites the other's.
- See README.md for setup instructions.
+ See [README.md](README.md) for full setup instructions.