202251239-cell/hermes-backup/auto-optimize

Claude Code and agent skill by 202251239-cell/hermes-backup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Maintenance: clean cache, rotate logs, health.

Install

npx vskill@latest install 202251239-cell/hermes-backup/auto-optimize

SKILL.md

The same SKILL.md was published earlier as 202251239-cell/hermes-backup/auto-optimize.

Auto-Optimize

Maintenance otomatis untuk Termux + Hermes.

When to Use

  • Scheduled maintenance (cron job)
  • Disk space low
  • Performance issues
  • System health check

Prerequisites

  • df, free, uptime (built-in)
  • curl (for API checks)
  • sqlite3 (for DB checks)

Quick Reference

bash
# Run health check
bash ~/.hermes/scripts/health_check.sh
# Clean cache
find ~/.hermes/cache/terminal-output/ -name '*.txt' | head -10 | xargs rm -f
find ~/.hermes/cache/scratch/ -mtime +3 -delete 2>/dev/null
# Rotate logs
find ~/.hermes/logs/ -name '*.log' -size +10M -exec truncate -s 1M {} \;
# Clean npm cache
npm cache clean --force 2>/dev/null
# Clean Python bytecode
find ~ -name '__pycache__' -type d -exec rm -rf {} + 2>/dev/null

Health Check Script

bash
#!/bin/bash
echo "=== Health Check $(date '+%Y-%m-%d %H:%M') ==="
echo "Disk: $(df -h ~ | tail -1 | awk '{print $5}') used"
echo "Load: $(uptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}' | tr -d ' ')"
FREELLMAPI_KEY=$(sqlite3 ~/freellmapi/server/data/freeapi.db "SELECT value FROM settings WHERE key='unified_api_key';" 2>/dev/null)
if [ -n "$FREELLMAPI_KEY" ]; then
MODELS=$(curl -s http://localhost:3001/v1/models -H "Authorization: Bearer $FREELLMAPI_KEY" 2>/dev/null | python3 -c "import json,sys; print(len(json.load(sys.stdin).get('data',[])))" 2>/dev/null)
echo "FreeLLMAPI: Running ($MODELS models)"
fi
echo "Memory: $(free -h 2>/dev/null | grep Mem | awk '{print $3}') used of $(free -h 2>/dev/null | grep Mem | awk '{print $2}')"
echo "Processes: $(ps aux | grep -E 'tsx|node|python' | grep -v grep | wc -l) active"

Cleanup Actions (in order)

  1. Terminal output cache: rm -f ~/.hermes/cache/terminal-output/*.txt
  2. Scratch files > 72h: find ~/.hermes/cache/scratch/ -mtime +3 -delete
  3. Logs > 10MB: find ~/.hermes/logs/ -name '*.log' -size +10M -exec truncate -s 1M {} \;
  4. npm cache: npm cache clean --force
  5. Python bytecode: find ~ -name '__pycache__' -type d -exec rm -rf {} +
  6. Termux packages: pkg clean

Disk Alert

bash
USAGE=$(df ~ | tail -1 | awk '{print $5}' | tr -d '%')
if [ $USAGE -gt 85 ]; then echo "⚠️ Disk at ${USAGE}%!"; fi

Verification

bash
bash ~/.hermes/scripts/health_check.sh

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/202251239-cell/hermes-backup/auto-optimize/badge)](https://verified-skill.com/skills/202251239-cell/hermes-backup/auto-optimize)

Something wrong with this skill or its page? Tell us.