sofagent Cursor ruleA
sofagent from kongfangxun/sofagent is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add kongfangxun/sofagent/.cursor/rules/sofagent.mdc@git:20261008.d73ee15Pins git:20261008.d73ee15 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- kongfangxun/sofagent
- Path
.cursor/rules/sofagent.mdc- Versions recorded
- 5
- Latest version
- git:20261008.d73ee15, committed Oct 8, 2026
- First version recorded
- Sep 25, 2026
- Size
- 1,613 bytes
- Repository stars
- 54
- License
- MIT
sofagent 约束层加载(薄挂载——规范资产唯一来源是 SKILL/,本文件不含规则内容).
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
# sofagent · Cursor 适配(薄挂载)
> 本文件是**挂载点**不是规范副本——四层加载链的规范资产唯一来源是 sofagent 的 `SKILL/` 目录(单一真相源,ECC DRY adapter 模式)。规则内容更新只发生在 SKILL/,本文件永不复制它们。
## 会话开始时按序加载(四层加载链)
一、读取已安装的 SKILL.md 作为系统约束(L1 硬约束):
```
~/.sofagent/skills/sofagent/SKILL.md
```
(若用 `bash install.sh --platform cursor` 安装,则为 `~/.cursor/skills/sofagent/SKILL.md`。)
二、读取用户工作规则(L2):`~/.sofagent/skills/sofagent/fde.md`
三、读取反思区(L3):`~/.sofagent/skills/sofagent/think.md`
四、知识库(L4):`~/.sofagent/skills/sofagent/knowledge/` 目录,按任务关键词检索加载。
## 审计强制(平台无关)
约束是建议性的,审计是强制性的——提交前审计走 **git hook**(`sofagent audit --install-hook`),与宿主平台无关:28 条 git diff 规则 + HMAC 链审计在 Cursor 下同样生效。
## 连接 MCP Server
Cursor 的 MCP 配置指向 sofagent MCP Server(stdio):
```json
{ "mcpServers": { "sofagent": { "command": "sofagent mcp" } } }
```
104 个 tool(`run_audit` / `check_acceptance` / `snapshot_restore` / `device_register` 等)经 MCP 协议面暴露——适配器只依赖 @public API 子集,@internal 破坏性变更不影响本挂载。Read the whole file at its exact version.
How to install
mdr add kongfangxun/sofagent/.cursor/rules/sofagent.mdc@sha256:39e1b8f2b420f18aThe line at the top of this page pins the label git:20261008.d73ee15, 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_rezadfbnsxrximsf)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Sep 25, 2026 and Oct 8, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261008.d73ee15 latest | 2026-10-08 | d73ee15 | 1,613 B | A | view · diff |
| git:20261003.647f36b | 2026-10-03 | 647f36b | 1,613 B | A | view · diff |
| git:20260927.39cb503 | 2026-09-27 | 39cb503 | 1,613 B | A | view · diff |
| git:20260926.5158c86 | 2026-09-26 | 5158c86 | 1,613 B | A | view · diff |
| git:20260925.a80db04 | 2026-09-25 | a80db04 | 1,613 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1613 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
kongfangxun/sofagent · 54 stars · license MIT · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rezadfbnsxrximsf GET https://markdownregistry.com/api/v1/resolve?ref=kongfangxun/sofagent/.cursor/rules/sofagent.mdc GET https://markdownregistry.com/api/v1/blob/39e1b8f2b420f18a02b9d37fe49cb283dbf5076002827ba8560fca627a5d14f6
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: Cursor rules vs AGENTS.md · which agent file does what.
More from kongfangxun/sofagent
Every file in kongfangxun/sofagent