slm-status

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

便于诊断性能瓶颈并评估压缩与缓存的节省效果。

▸ 风险提示

读取系统状态可能泄露元数据,应限制访问权限。

这个 Skill 做什么

查询 SLM 健康状态、压缩/缓存统计和系统运行信息。

查看 SLM 的健康和优化效果:能拿到压缩与缓存的实时统计(比如 compress_runs、tokens_saved_compress、cache_hits/misses)以及系统状态(模式、profile、DB 大小、实体计数)。用 slm_optimize_stats()、slm status 和 slm doctor 搭配,可以确认压缩/缓存是否真在省 token。适合做优化前后核对或排查资源问题时使用。

▸ 展开 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.

Skill 开发管理健康检查优化统计诊断通用
199
Stars
34
Forks
37
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/skills/slm-status/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/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 公开信息 · 原文版权归作者所有