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
ChromaDB: localhost:8743  (configurable via memory.chroma_host/chroma_port 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