Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add athola/claude-night-market --skill clear-contextgit clone --depth 1 https://github.com/athola/claude-night-marketWrote 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.
[](https://agentmods.dev/skills/athola/claude-night-market/clear-context)<a href="https://agentmods.dev/skills/athola/claude-night-market/clear-context"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/clear-context/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.
<a href="https://agentmods.dev/skills/athola/claude-night-market/clear-context"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/clear-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Memory Poisoning · line 27 Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
- high Excessive Agency · line 321 Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
- medium Excessive Agency · line 237 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.03312 |
| Opus 5.5 | $0.00013 | $0.01325 |
| Sonnet 5.5 | $0.00007 | $0.00662 |
| Haiku 4.5 | $0.00003 | $0.00331 |
Grade A, and why
clear-context 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clear Context Skill
Quick Start
When context pressure reaches critical levels (80%+), invoke this skill to:
- Save current session state
- Delegate continuation to a fresh subagent
- Continue work without manual intervention
Skill(conserve:clear-context)
When To Use
- Proactively: Before starting large multi-chained tasks
- Reactively: When context warning indicates 80%+ usage
- Automatically: Integrated into long-running workflows
When NOT To Use
- Context usage is under 50% - continue working normally
- Mid-critical-operation where handoff would lose state
- Consider "Summarize from here" first (Claude Code 2.1.32+): Before full auto-clear, try partial summarization via the message selector. This compresses older context while preserving recent work, often sufficient to relieve pressure without a full handoff.
The Auto-Clear Pattern
Since /clear requires user action, we achieve automatic context clearing without interruption through subagent delegation:
Main Agent (high context)
↓
Saves state to .claude/session-state.md
↓
Spawns continuation subagent (fresh context)
↓
Subagent reads state, continues work
Thresholds
| Level | Threshold | Action |
|---|---|---|
| WARNING | 40% | Monitor, plan optimization |
| CRITICAL | 50% | Prepare for handoff |
| EMERGENCY | 80% | Execute auto-clear now |
Configuration (environment variables):
CONSERVE_EMERGENCY_THRESHOLD: Override 80% default (e.g.,0.75for 75%)CONSERVE_SESSION_STATE_PATH: Override.claude/session-state.mddefault
Auto-Clear Workflow
Step 1: Assess Current State
Before triggering auto-clear, gather:
- Current task/goal description
- Progress made so far
- Key decisions and rationale
- Files being actively worked on
- Open progress items
Step 1.5: Finalize Task List Before Handoff
Important: Before saving state or spawning a continuation agent, reconcile the task list:
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 7d ago Changed · -1 lines f3d2fe455247
- 17d ago Changed c52252c759b2
- 25d ago Changed · -1 lines 4d5774aa753b
- 1mo ago Changed · -6 lines a59705841213
- 1mo ago Changed · +9 lines 6aa60fef9ff1
- 2mo ago Changed · -9 lines 83161300b9bd
- 2mo ago First seen · 404 lines · 33 tokens per session scan A a86ca9ff3bf2
clear-context is a skill published in the GitHub repository athola/claude-night-market (358 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 3,312 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-09-03.
clear-context compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| clear-contextathola/claude-night-market | Skill | 358 | today | MIT | A | 33 | Claude Code |
| setupccplugins/awesome-claude-code-plugins | Skill | 1.0k | 3mo ago | Apache-2.0 | A | 90 | Claude Code |
| syncccplugins/awesome-claude-code-plugins | Skill | 1.0k | 3mo ago | Apache-2.0 | A | 138 | Claude Code |
| preserveccplugins/awesome-claude-code-plugins | Skill | 1.0k | 3mo ago | Apache-2.0 | A | 118 | Claude Code |
| askccplugins/awesome-claude-code-plugins | Skill | 1.0k | 3mo ago | Apache-2.0 | A | 141 | Claude Code |
| compressccplugins/awesome-claude-code-plugins | Skill | 1.0k | 3mo ago | Apache-2.0 | A | 104 | Claude Code |
| checkpointShweta-Mishra-ai/tokenmizer | Skill | 35 | today | MIT | A | 61 | Claude Code |