Skip to content
Back to skills

Clear Cache

ASecurity

Clear statusline usage cache files from /tmp

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 1, 2026
ai-agentsbashapi

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add yusufalikync/ccs --skill clear-cache --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clear Cache?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clear Cache
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yusufalikync-clear-cache/badge)](https://www.skillsdirectory.com/skills/yusufalikync-clear-cache)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clear-cache
description: Clear statusline usage cache files from /tmp
user-invocable: true
disable-model-invocation: false
allowed-tools: Bash
---

# Clear Cache

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

## Instructions

### 1. List existing cache files
```bash
ls -la /tmp/claude_usage_cache_*.json 2>/dev/null || echo "No cache files found"
```

### 2. Delete cache files
```bash
rm -f /tmp/claude_usage_cache_*.json
```

### 3. Confirm cleanup
```bash
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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.