discard

discard is a skill for Claude Code from ApurvBazari/claude-plugins. It costs 36 tokens per session (528 once invoked), scanned A, original, MIT.

A command for archiving a saved handoff so it no longer appears at the start of a session. Archiving moves the file instead of deleting it.

In plain words
What is it for?
Use it when you explicitly want to discard the active handoff after confirming the saved timestamp.
Why use it?
It removes an outdated or irrelevant reminder while keeping the saved handoff recoverable.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the handoff plugin — 4 skills, 1 hook shipped together

Good fit Use it when you explicitly want to discard the active handoff after confirming the saved timestamp.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ApurvBazari/claude-plugins
Claude Code
/plugin install handoff

Made for: Claude Code.

Or install handoff, the plugin that ships this one along with the rest of its 4 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discard

README.md
[![agentmods](https://agentmods.dev/badge/skills/apurvbazari/claude-plugins/discard/github.svg)](https://agentmods.dev/skills/apurvbazari/claude-plugins/discard)
Your own site
<a href="https://agentmods.dev/skills/apurvbazari/claude-plugins/discard"><img src="https://agentmods.dev/badge/skills/apurvbazari/claude-plugins/discard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discard

Your own site · 80×15
<a href="https://agentmods.dev/skills/apurvbazari/claude-plugins/discard"><img src="https://agentmods.dev/badge/skills/apurvbazari/claude-plugins/discard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00528
Opus 5.5 $0.00014 $0.00211
Sonnet 5.5 $0.00007 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured 26d ago against content hash a6c60f5686e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

discard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

handoff/skills/discard/SKILL.md · 48 lines

What it actually says

Discard Skill — Archive the Active Handoff

You are invoked explicitly by /handoff:discard. Archive the active handoff (.claude/handoff/active.md) so it stops surfacing at SessionStart. This skill is destructive in the soft sense — the file is archived (renamed), not deleted, so it remains recoverable.

Step 1: Check for an active handoff

Look for .claude/handoff/active.md. If it does not exist:

No active handoff in this project. Nothing to clear.

Stop. Do not prompt; do not modify anything.

Step 2: Confirm before archiving

Read the frontmatter saved-at field. Show it to the user and confirm via AskUserQuestion (single-select, 2 options):

  • Yes, archive (Recommended if you don't want this handoff anymore) — "Move .claude/handoff/active.md to .claude/handoff/archive/discarded-<ts>.md. The next SessionStart will not surface anything."
  • No, keep it — "Do nothing. The handoff stays in place."

If No: exit silently. Do not modify the file.

Step 3: Archive the handoff

On Yes:

bash "${CLAUDE_PLUGIN_ROOT}/scripts/archive-active.sh" "$(pwd)" discarded

The script moves the file to .claude/handoff/archive/discarded-<ts>.md, clears any snooze marker, applies archive-retention, and prints the archive path.

Confirm to the user (one line):

Handoff archived to <path>. Cleared.

Key Rules

  • Always confirm before archiving — disable-model-invocation: true means only the user can trigger this, but a confirm step still prevents fat-finger mistakes.
  • Archive, never delete. The renamed file is recoverable; user can mv .claude/handoff/archive/discarded-<ts>.md .claude/handoff/active.md to restore.
  • No-op when nothing is saved. Do not create or modify state if there's no active handoff.
  • Fixed option list: the one AskUserQuestion call has a static 2-option list.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · -1 lines a6c60f5686e7
  2. 3mo ago First seen · 49 lines · 36 tokens per session scan A ffc775568e6f

Subscribe to this mod's changes

discard is a skill published in the GitHub repository ApurvBazari/claude-plugins (3 stars, last pushed 26d ago), licensed MIT. It adds 36 tokens to every session and 528 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

discard compared with skills from other repositories

discard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
discardApurvBazari/claude-pluginsSkill326d agoMITA36Claude Code
c-notifydaxaur/openpawSkill1836mo agoMITA20Claude Code, Codex
anti-sleepsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
gmailvellum-ai/vellum-assistantSkill1.5k6d agoMITA20Claude Code, Codex
outlookvellum-ai/vellum-assistantSkill1.5k6d agoMITA21Claude Code, Codex
gmail-triggervellum-ai/vellum-assistantSkill1.5k6d agoMITA37Claude Code, Codex
watchervellum-ai/vellum-assistantSkill1.5k6d agoMITA35Claude Code, Codex