clear-cache

clear-cache is a skill for Claude Code from yusufalikync/ccs. It costs 12 tokens per session (207 once invoked), scanned A, original, MIT.

A skill that removes cached status-line usage files from the temporary system folder so fresh usage data can be fetched.

In plain words
What is it for?
Use it when you need to refresh status-line usage data by listing, removing, and verifying the relevant cache files.
Why use it?
It clears potentially outdated local cache files when the displayed usage information is stale. It then checks that the cleanup finished.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when you need to refresh status-line usage data by listing, removing, and verifying the relevant cache files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yusufalikync/ccs/clear-cache
Install

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.

Any agent
npx skills add yusufalikync/ccs --skill clear-cache
Clone the repo
git clone --depth 1 https://github.com/yusufalikync/ccs

Made for: Claude Code.

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 clear-cache

README.md
[![agentmods](https://agentmods.dev/badge/skills/yusufalikync/ccs/clear-cache/github.svg)](https://agentmods.dev/skills/yusufalikync/ccs/clear-cache)
Your own site
<a href="https://agentmods.dev/skills/yusufalikync/ccs/clear-cache"><img src="https://agentmods.dev/badge/skills/yusufalikync/ccs/clear-cache/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 clear-cache

Your own site · 80×15
<a href="https://agentmods.dev/skills/yusufalikync/ccs/clear-cache"><img src="https://agentmods.dev/badge/skills/yusufalikync/ccs/clear-cache.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 207 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.00012 $0.00207
Opus 5.5 $0.00005 $0.00083
Sonnet 5.5 $0.00002 $0.00041
Haiku 4.5 $0.00001 $0.00021

Measured 1mo ago against content hash 95841d1f969f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clear-cache 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 1mo 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.

.claude/skills/clear-cache/SKILL.md · 31 lines

What it actually says

Clear Cache

Remove statusline usage cache files to force fresh API data on next status line refresh.

Instructions

1. List existing cache files

ls -la /tmp/claude_usage_cache_*.json 2>/dev/null || echo "No cache files found"

2. Delete cache files

rm -f /tmp/claude_usage_cache_*.json

3. Confirm cleanup

ls /tmp/claude_usage_cache_*.json 2>/dev/null && echo "WARNING: Some files remain" || echo "All cache files cleared"

Report how many files were removed and confirm the cleanup is complete. The status line will fetch fresh usage data on its next refresh cycle (within 5 minutes).

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. 1mo ago First seen · 31 lines · 12 tokens per session scan A 95841d1f969f

Subscribe to this mod's changes

clear-cache is a skill published in the GitHub repository yusufalikync/ccs (3 stars, last pushed 6mo ago), licensed MIT. It adds 12 tokens to every session and 207 once invoked, about $0.0000 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

Other skills, from other repositories

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

pr-review

Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends concrete fixes. Use when preparing a PR for…

nitinjain999/platform-skills · 81 tokens

extract-resume

Parse a resume's uploaded PDF into structured JSON (basics, experience, projects, skills, education) and save it to the editor.

suxrobGM/jobpilot · 32 tokens

create-site

Creates a new Power Pages code site (SPA) from a curated template or from scratch using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, template selection or scaffolding, component planning, design, implementation, validation, and…

microsoft/power-platform-skills · 88 tokens

ensure-pipelines-host

Ensures the tenant has a usable Power Platform Pipelines host environment before any pipeline operation runs. Detects host state via the same resolution order as the Power Apps UI (org-db setting → BAP env metadata → default-custom-host setting); if any existing host (Platform or Custom) is found, uses it. If no host…

microsoft/power-platform-skills · 222 tokens