AgentSkillsCN

jarvis-memory-stats

展示记忆系统的健康状况与统计数据。当用户说“/jarvis-memory-stats”、“Jarvis,查看内存状态”、“已索引多少个文件”或“内存健康状况如何”时使用。

SKILL.md
--- frontmatter
name: jarvis-memory-stats
description: Show memory system health and statistics. Use when user says "/jarvis-memory-stats", "Jarvis, memory status", "how many files indexed", or "memory health".
user_invocable: true

/jarvis-memory-stats - Memory System Status

Shows the health and statistics of Jarvis's semantic memory system.

Execution Flow

1. Get stats

Call mcp__plugin_jarvis_core__jarvis_memory_stats with:

json
{
  "sample_size": 5
}

2. Present status

code
Memory System Status

Collection: vault
Documents indexed: 142
DB location: ~/.jarvis/memory_db/  (configurable via memory.db_path in ~/.jarvis/config.json)

Sample entries:
- notes/projects/jarvis-plugin.md (type: note)
- journal/jarvis/2026/01/20260124-entry.md (type: journal)
- notes/career/goals.md (type: note)
- work/kubernetes-setup.md (type: work)
- journal/jarvis/2026/02/20260206-chromadb.md (type: journal)

Commands:
  /jarvis-recall <query>       - Search your vault semantically
  /jarvis-memory-stats         - This status view
  /jarvis-settings      - Configuration (includes reindexing)

3. Handle empty state

If total_documents is 0:

code
Memory System Status

No documents indexed yet.

Ask Jarvis to index your vault, or run /jarvis-settings to configure and index.

Key Rules

  • Read-only — only queries ChromaDB, never modifies
  • Quick — single API call, no heavy processing