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.
Tip 7: Memory & Storing Data
When this pattern helps
Choose the session strategy according to which facts must survive the next step. Preserve decisions, constraints, and verified findings explicitly; do not assume a long conversation retains every important detail equally well.
根据下一步需要保留哪些事实来选择会话策略。把决策、约束和已验证发现明确写下来,不要假设长对话能同等可靠地保留所有细节。