AgentSkillsCN

memory-stats

查看持久化记忆数据库中的统计信息与最新条目。系统展示会话次数、知识领域、关键事实以及近期活动动态。

SKILL.md
--- frontmatter
name: memory-stats
description: View statistics and recent entries from the persistent memory database. Shows session count, knowledge areas, facts, and recent activity.

/memory-stats - View Memory Statistics

Show statistics and recent entries from the persistent memory database.

Instructions

When the user invokes /memory-stats, run these commands to show memory information:

1. Show Statistics

bash
uv run python -m simba.search stats

2. Show Recent Sessions

bash
uv run python -m simba.search recent 5

3. Format Output

Present the information clearly:

code
## Memory Database

| Type | Count |
|------|-------|
| Sessions | X |
| Knowledge areas | Y |
| Facts | Z |

## Recent Sessions

1. [date] - Summary of session 1
2. [date] - Summary of session 2
...

Optional Flags

The user might ask for specific views:

  • /memory-stats facts - Show all facts
  • /memory-stats knowledge - Show all knowledge areas
  • /memory-stats search <query> - Search memory

For these, use:

bash
# Search
uv run python -m simba.search search "query"