sgme-operations SKILL.md skillA
sgme-operations from freehul/sgme is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add freehul/sgme/sgme-operations@v2.0.0Pins v2.0.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- freehul/sgme
- Path
skills/sgme-operations/SKILL.md- Versions recorded
- 3
- Latest version
- v2.0.0, committed Nov 2, 2026
- First version recorded
- Sep 29, 2026
- Size
- 7,396 bytes
- Repository stars
- 15
- License
- MIT
SGME Gateway 运维与日常操作:健康检查、记忆写入、提炼、待审队列、运维看板、凭证与角色、技能库治理、部署升级和安全排障。当服务异常或需要执行 SGME 运维操作时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# SGME Gateway 运维
> 下文命令统一用环境变量:`$SGME_URL`(如 `http://<NAS_IP>:9910`)、`$SGME_ADMIN_KEY`、`$SGME_AGENT_KEY`。
> 密钥只从环境变量读,不在命令行历史、日志、截图或回复里出现明文。
## 先判断问题类型
- **记忆**:历史事实、偏好、项目上下文 → `inject` / `search(scopes=["memory"])`;用户要求记住 → `append`,会话结束再异步 `refine_trigger`。
- **Wiki**:手册、设计、经验、踩坑 → 先 `wiki_search` / `wiki_pages`,再 `wiki_page`;稳定经验用 `wiki_page_add` 或 `wiki_page_update` 沉淀。
- **技能**:专业方法 → `skill_search` → `skill_digest` → `skill_get`;普通技能不 materialize。
- **待审/裁决**:低置信度记忆停在队列、注入里看不到 → 见「待审队列」;TTL 与 LLM 用量异常 → 见「运维看板」。
- **凭证/角色**:客户端取不到 key、角色卡不生效 → 见「凭证管理」「角色运维」。
## 健康检查
1. 调 `health` 或 `GET /v1/health`,记录 `status`、`version`、LLM 可用性和提炼水位。
2. 连接失败时先检查服务发现地址、端口和 `X-API-Key`,HTTP 客户端访问本机服务使用 `trust_env=False`。
3. 服务仍不可达才检查进程/容器和日志;重启前保留日志与数据,不清空数据库。
4. health 正常但技能搜不到时,先检查 `skills.source_dirs`,再执行技能索引自愈/重建端点并查看 `fts_drift_detected`。
## 写入和提炼
- `/v1/append` 的正文首行必须是 `# {ISO8601} {role}`;只提交真实 user/assistant 消息,不把工具回执写成对话。
- 单轮写入保持幂等;批量提炼使用异步入口,按服务端返回的任务状态轮询,429 使用退避,不立即重试。
- 记忆纠错用 `memory_reject` / `memory_unreject`,不直接删除原始会话或记忆归档。
## 待审队列(2.0 / D-30)
> 待审候选的查询、裁决、批量放行(含 approve/reject/auto-resolve 的坑)。详见 [`references/02-review-queue.md`](references/02-review-queue.md)。
…Read the whole file at its exact version.
How to install
mdr add freehul/sgme/sgme-operations@sha256:97c742d6a65248cbThe line at the top of this page pins the label v2.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_65bcwxvy5ekptqlw)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Sep 29, 2026 and Nov 2, 2026, about one every 17 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v2.0.0 latest | 2026-11-02 | aadb0ee | 7,396 B | A | view · diff |
| v2.0.0 | 2026-11-02 | cb9e023 | 15,574 B | A | view · diff |
| v1.0.0 | 2026-09-29 | b5e8585 | 2,179 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (7396 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
freehul/sgme · 15 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_65bcwxvy5ekptqlw GET https://markdownregistry.com/api/v1/resolve?ref=freehul/sgme/sgme-operations GET https://markdownregistry.com/api/v1/blob/97c742d6a65248cb4517bffcef3f51f558864e0924af91d2318b639f4502016c
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.