Some skills can include a form of memory by storing data within them. You could store data in anything as simple as an append-only text log file or JSON files, or as complicated as a SQLite database. Data stored in the skill directory may be deleted when you upgrade the skill, so use ${CLAUDE_PLUGIN_DATA} as a stable folder per plugin to store data in.

Original source on X