sgme-zcode SKILL.md skillB
sgme-zcode 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-zcode@git:20261102.cbe83bbPins git:20261102.cbe83bb in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- freehul/sgme
- Path
adapters/zcode/SKILL.md- Versions recorded
- 9
- Latest version
- git:20261102.cbe83bb, committed Nov 2, 2026
- First version recorded
- Sep 26, 2026
- Size
- 9,246 bytes
- Repository stars
- 15
- License
- MIT
ZCode 的 SGME(拾光记忆)官方适配器。当对话涉及「以前/上次/还记得/历史事实」、要求记住某事、需要关怀信号/角色扮演、读写 SGME 记忆/知识/技能、触发提炼或画像注入、补导入历史会话时使用。接入标记:SGME-ONBOARDING-v2。不适用于与 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 接入纪律(SGME-ONBOARDING-v2 · ZCode) 你(ZCode)已接入长期记忆引擎 SGME(ShiGuang Memory Engine)。职责:把会话提炼成标签化记忆,按场景注入回来,让你不再失忆。 > 本技能是 SGME 官方适配器(源码 `adapters/zcode/`;本目录为部署副本,由 `install.py` 同步,可随时重建)。 > **能力面 = CLI 命令面**:下方矩阵 54 个基准能力一个不少。 > **优先用本会话已挂载的 MCP 工具**(`mcp__sgme__*`,由 `~/.zcode/cli/config.json` 的 `sgme` server 提供);无 MCP 或要脚本化时再走 CLI。 > 本机 agent_id = `zcode`(服务端已注册)——不要借用其它 agent 的 key。 ## 服务发现(找不到 SGME 时按序) 1. 环境变量 `SGME_HTTP_URL` / `SGME_BASE_URL`、`SGME_MCP_URL` 2. 同目录部署配置 `scripts/client.env`(`install.py` 写入) 3. 本机身份文件 `~/.sgme/zcode-agent.json`(`http`/`mcp`/`agent_id`) 4. **ZCode 自己的 MCP 配置 `~/.zcode/cli/config.json` 的 `sgme` server**——install.py 注册后自动继承地址与密钥 5. `~/.sgme/install.json`(SGME 通用服务发现清单) 6. 回环默认 `http://127.0.0.1:9910`(MCP 同主机端口 +3 `/mcp`) 7. 探测 `GET /v1/health`;仍失败 → 报告「SGME 未发现」 端点自检:`python scripts/sgme_client.py env-info`(不打印密钥)。 ## 接口与鉴权 | 项 | 值 | |---|---| | HTTP / MCP | 见上「服务发现」 | | 请求头 | `X-API-Key` | | agent_id | `zcode`(服务端已注册,溯源打标用) | | agent 能力面 | 密钥按序解析:`SGME_ZCODE_KEY` → 部署副本 `scripts/.env` → `~/.sgme/zcode-agent.json` → `~/.zcode/cli/config.json` 的 `sgme` server → `SGME_AGENT_KEY`(兜底) | …
Read the whole file at its exact version.
How to install
mdr add freehul/sgme/sgme-zcode@sha256:6e226286704e9610The line at the top of this page pins the label git:20261102.cbe83bb, 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_kyvziorcxndtoh33)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 9 versions of this file, between Sep 26, 2026 and Nov 2, 2026, about one every 5 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261102.cbe83bb latest | 2026-11-02 | cbe83bb | 9,246 B | B | view · diff |
| git:20261102.cf476fc | 2026-11-02 | cf476fc | 8,702 B | B | view · diff |
| git:20261101.e5720de | 2026-11-01 | e5720de | 8,608 B | B | view · diff |
| git:20261029.e6a8704 | 2026-10-29 | e6a8704 | 8,318 B | B | view · diff |
| git:20261029.a55f8dd | 2026-10-29 | a55f8dd | 8,234 B | B | view · diff |
| git:20261014.e6ec14f | 2026-10-14 | e6ec14f | 8,189 B | B | view · diff |
| git:20261014.c149e56 | 2026-10-14 | c149e56 | 8,027 B | B | view · diff |
| git:20260930.b28d57d | 2026-09-30 | b28d57d | 7,836 B | B | view · diff |
| git:20260926.a5e27e9 | 2026-09-26 | a5e27e9 | 7,764 B | B | view |
Audit of the latest version
- fail: No link to a raw IP address (matched: http://127.0.0.1:9910)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9246 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 script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
freehul/sgme · 15 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_kyvziorcxndtoh33 GET https://markdownregistry.com/api/v1/resolve?ref=freehul/sgme/sgme-zcode GET https://markdownregistry.com/api/v1/blob/6e226286704e9610083b5a26c23964d027469fb73001557ca0dabc4abfe70f03
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.