slm-status

仓库创建 2026年2月5日最近提交 1 天前SkillHot 收录 6 小时前
▸ 精选理由

快速查看压缩节省与缓存命中情况,便于维护 SLM 部署。

▸ 风险提示

会运行本地 slm CLI 并访问数据库/文件

这个 Skill 做什么

检测并报告 SuperLocalMemory 的健康、压缩与缓存统计。

用于查看 SuperLocalMemory 的健康状况和优化收益,能给出压缩运行次数、节省的 tokens、缓存命中/未命中和数据库大小、实体/边等系统级统计。通常在想确认 slm_optimize_stats、slm status 或 slm doctor 报告时用,判断压缩与缓存是否真正在省资源。特别在于同时提供实时压缩计数和缓存代理/KV 的命中率,方便验证优化效果。

▸ 展开 SKILL.md 英文原文

Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress, cache_proxy_hits, cache_proxy_misses, cache_kv_hits, cache_kv_misses); run slm status [--json] for system state (mode, profile, DB size, fact/entity/edge counts) and slm doctor [--json] for preflight including the "Optimize (Surface B)" health line; use together to confirm optimization is actually saving tokens.

开发编程本地内存监控优化通用
199
Stars
34
Forks
37
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin/skills/slm-status/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin/skills/slm-status/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# slm-status — Health and Optimize Stats

## Purpose

Use this skill to answer: "Is SLM healthy?", "Is compression/caching actually saving tokens?", and "What does the system look like right now?" It covers three surfaces: the MCP stats tool, the `slm status` CLI, and the `slm doctor` preflight.

## Primary MCP Tool: slm_optimize_stats

```
slm_optimize_stats() -> dict
```

No arguments. Returns counters from the current daemon and MCP process session.

### Return dict (all keys always present)

| Key | Type | Meaning |
|-----|------|---------|
| `ok` | bool | `True` on success; `False` on internal error |
| `compress_runs` | int | Total compress calls recorded by the daemon (persisted acros
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有