reply-debt
/reply-debt
Find the mail still waiting on a reply by dropping threads already answered, bots and newsletters, keeping messages that ask something, and ranking them by how long the person has waited. Use when asked what needs a reply, who is waiting, what fell through in the inbox, or to produce a daily follow-up brief.
- Author
- getedgehq ↗
- Repository
- skills ↗
- Licence
- Apache-2.0
- Last repository change
- 24.10.2026
Assessment and security
- Files in this package
- 9
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/reply_debt.py, tests/test_reply_debt.py
What it does and when to use it
Find the mail still waiting on a reply by dropping threads already answered, bots and newsletters, keeping messages that ask something, and ranking them by how long the person has waited. Use when asked what needs a reply, who is waiting, what fell through in the inbox, or to produce a daily follow-up brief.
Original author description
Find the mail still waiting on a reply by dropping threads already answered, bots and newsletters, keeping messages that ask something, and ranking them by how long the person has waited. Use when asked what needs a reply, who is waiting, what fell through in the inbox, or to produce a daily follow-up brief.
How it works
- What it does
- Prerequisites — read this before you start
- How the filtering works
- Tuning the rules
- Running it
- Boundaries
SKILL.md preview
---
name: reply-debt
description: Find the mail still waiting on a reply by dropping threads already answered, bots and newsletters, keeping messages that ask something, and ranking them by how long the person has waited. Use when asked what needs a reply, who is waiting, what fell through in the inbox, or to produce a daily follow-up brief.
---
# Reply Debt
## What it does
Reads recent inbound mail, removes everything that is not a person waiting on you,
and ranks what is left by wait time. The output is a short list: who, about what,
how long they have waited.
No language model reads the mail. Every include and exclude is a substring rule in
the config, so a wrong answer is a rule you can find and change.
## Prerequisites — read this before you start
**This skill is not credential-free.** It needs access to a mailbox:
| backend | needs | notes |
| --- | --- | --- |
| `gmail-api` | `GMAIL_ACCESS_TOKEN` in the environment | OAuth access token, `gmail.readonly` scope. Add `gmail.send` only if the user wants `--send`. |
| `composio` | `COMPOSIO_API_KEY` in the environment, plus `--connection-id` | For a Composio-managed Gmail connection. The connection id is an identifier, not a secret. |
| `fixture` | nothing | A local JSON file of messages. No network. |
Read the token from the environment only. Never pass it as a command-line
argument, never write it into a config file, never echo it.
If no mailbox is connected, use `--backend fixture` and say plainly that the
mailbox part is unverified. Do not describe a fixture run as a run against real
mail.
## How the filtering works
1. Fetch `in:inbox newer_than:{days}d from:me` and remember those thread ids.
Anything you already replied to in the window is not debt.
2. Fetch `in:inbox newer_than:{days}d -from:me`.
3. Drop a message when the sender matches `skip_sender` (no-reply, notifications,
newsletters, transactional addresses), when the subject matches `skip_subject`
(receipts, invitations, promotions), or when neither subject nor snippet
contains anything in `expects_reply`.
4. Rank: `wait_points_per_day` per day waited, capped at `wait_days_cap`, plus
`important_points` for each `important_hints` match. Ties break oldest first.
`important_hints` only reorders. It never filters anything in or out, so a term
missing from that list cannot make mail disappear.
## Tuning the rules
Every list lives in `--config` JSON and replaces the default wholesale. Start from
[`examples/rules.example.json`](examples/rules.example.json).
The failure mode to watch for is **`expects_reply` being too narrow**, because that
silently hides real mail. A short note that just says "thanks, go ahead" contains
none of the default terms and will be dropped. Run with `--backend fixture` against
a saved sample of your own mail and check the drop counts before trusting it.
The opposite failure — `skip_sender` too broad — is the reason `support@`, `team@`
and `hello@` are separate entries you can remove: at a small company a real person
does write from `hello@`.
## Running it
```
python scripts/reply_debt.py --backend fixture --fixture tests/fixtures/inbox.json
python scripts/reply_debt.py --backend gmail-api --days 10 --top 10
python scripts/reply_debt.py --backend gmail-api --notify-email you@yourdomain --send
```
The brief is always written to `--out`. **Sending is off unless you pass `--send`.**
There is no default recipient: with `--send` and no `--notify-email`, the script
falls back to the address it saw on your own sent mail, and refuses to send if it
cannot find one. It will never mail an address that shipped with the skill.
Exit codes: `0` success, `1` the mail backend failed, `2` bad config.
A backend failure exits `1` and is never reported as an empty inbox. "Nothing is
waiting on you" only ever means the fetch succeeded and nothing matched.
## Boundaries
- Read-only against the mailbox, except the one optional brief you send yourself.
- It reads subjects, senders and snippets. It never reads full message bodies and
never sends anything to a third-party model.
- It does not reply to anyone, never drafts a reply, and never contacts the sender.
- Do not use it to decide that a thread does not need an answer. It ranks what is
probably waiting; it does not know what matters.
Files in this package (9)
- DERIVATION.json 5 KB
- LICENSE 11 KB
- SKILL.md 4 KB
- agents/openai.yaml 1 KB
- examples/rules.example.json 1 KB
- references/backends.md 3 KB
- scripts/reply_debt.py 20 KB
- tests/test_reply_debt.py 12 KB
- tests/fixtures/inbox.json 4 KB
Versions
The database has no other skills named reply-debt.
Database snapshot: 13.11.2026 · package version 6863700489f8 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100unreplied-threads
Show what's waiting on you (messages needing a reply from you) and what you're waiting on others for — queries reply-needed tasks in the vault. Use for any communication tracking request: "what am I waiting on?", "what's waiting for me?", "unreplied threads", "who owes me a… - 90inbox-triage
Go through recent mail and sort it into needs-a-reply, waiting-on-others, to-do and can-ignore, with draft replies ready for review. Use when the user asks to triage, sort, catch up on or clear their inbox; never to send anything on its own. - 100mail-triage
Lists the mail threads that need the user's action, one line each with a proposed outcome (reply, task, waiting or no action), so the user does not read the whole inbox. Read only. Use when the user says "triage my inbox", "what needs my attention in mail", "anything important… - 95ketchup
Catch the user up on what changed in this chat since their last message, in plain words and small visuals. List every item waiting on them with what they need to decide it from the reply alone. Use for 'ketchup'. - 95ketchup
Catch the user up on what changed in this chat since their last message, in plain words and small visuals. List every item waiting on them with what they need to decide it from the reply alone. Use for /ketchup. - 90pb-inbox-zero
Sort an email backlog into reply, delegate, archive and ignore, and draft the replies. Nothing is sent without your GO. Use for "inbox zero", "sort my mail", "clear my email backlog", "draft replies to my mail".