Cache

From bytesagain/ai-skills · View interactive version

Cache is an AI agent skill from the GitHub repository bytesagain/ai-skills. Manage a local key-value cache store using bash and Python. Use when caching API responses, session data, or computed results with TTL support.

How to use this skill

Skill file

cache

Manage a local key-value cache store using bash and Python. Use when caching API responses, session data, or computed results with TTL support.

Commands

`status`

scripts/script.sh status

Show current status

`add`

scripts/script.sh add

Add new entry

`list`

scripts/script.sh list

List all entries

`search`

scripts/script.sh search

Search entries

`remove`

scripts/script.sh remove

Remove entry by number

`export`

scripts/script.sh export

Export data to file

`stats`

scripts/script.sh stats

Show statistics

`config`

scripts/script.sh config

View or set config

`help`

scripts/script.sh help

`version`

scripts/script.sh version

Configuration

Use scripts/script.sh config <key> <value> to set preferences.

| Variable | Required | Description |

|----------|----------|-------------|

| CACHE_DIR | No | Data directory (default: ~/.cache/) |

Data Storage

All data stored in ~/.cache/ using JSONL format (one JSON object per line).

Output

Structured output to stdout. Exit code 0 on success, 1 on error.


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.