sofagent Cursor ruleA

sofagent from kongfangxun/sofagent is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add kongfangxun/sofagent/.cursor/rules/sofagent.mdc@git:20261008.d73ee15

Pins 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

The exact contents, by fingerprint
mdr add kongfangxun/sofagent/.cursor/rules/sofagent.mdc@sha256:39e1b8f2b420f18a

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rezadfbnsxrximsf.svg)](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.

versioncommittedcommitsizeaudit
git:20261008.d73ee15 latest2026-10-08 d73ee15 1,613 BA view · diff
git:20261003.647f36b2026-10-03 647f36b 1,613 BA view · diff
git:20260927.39cb5032026-09-27 39cb503 1,613 BA view · diff
git:20260926.5158c862026-09-26 5158c86 1,613 BA view · diff
git:20260925.a80db042026-09-25 a80db04 1,613 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

AGENTS.md AGENTS.md file
kongfangxun/sofagent · AGENTS.md
git:20261008.d73ee15 · audit A · 54 stars
enterprise-fde-识别AI节点 SKILL.md skill
kongfangxun/sofagent · FDE/templates/skills/skill-template/SKILL.md · 当 FDE 需要对工作流节点做 AI 分类判定时用这个 Skill—— 不是"它是干什么的",是"什么时候用"。 写错 description = Skill 永远不会被触发。
v1.2.5 · audit A · 54 stars
fresh-eyes-loop SKILL.md skill
kongfangxun/sofagent · FORGE/SKILL/fresh-eyes-loop/SKILL.md · 发布后独立质量循环——单盲四角色流水线(A 审 12 视角 → B 修 → C 验 → D 复核),每轮新 session 保证零上下文,连续 2 轮无 P0/P1 即停。
v1.7.0 · audit A · 54 stars
release-gate-loop SKILL.md skill
kongfangxun/sofagent · FORGE/SKILL/release-gate-loop/SKILL.md · 发版前自动验证闸门——V 验证 + F 修复循环(verdict FAIL → F 改代码 → 跑 audit → V 重验),最大 3 轮直到 PASS。纯只读验证 + 最小修复。
v1.7.0 · audit A · 54 stars
AGENTS.md@SKILL AGENTS.md file
kongfangxun/sofagent · SKILL/AGENTS.md
git:20261008.02c81de · audit A · 54 stars
sofagent SKILL.md skill
kongfangxun/sofagent · SKILL/SKILL.md · FDE Skill——帮 FDE(前线部署工程师)更好完成企业 AI 落地的方法论 Skill。约束 Agent 行为、审计每次变更、沉淀经验。 底层实现叫约束层——一个层五种能力:注入·审计·回溯·沉淀·进化。FORGE…
v1.7.0 · audit A · 54 stars
sofagent-audit SKILL.md skill
kongfangxun/sofagent · SKILL/agents/audit/SKILL.md · 系统级合规审计——巡检 Workflow、验证铁律覆盖、检查知识库健康度。不审查代码逻辑,审查的是部署层面的合规性。
v1.7.0 · audit A · 54 stars
软件工程师 SKILL.md skill
kongfangxun/sofagent · SKILL/agents/engineer/SKILL.md · 专注于最小可行差异的工程专家——只修复被要求的内容,拒绝范围蔓延,宁可写三行相似代码也不做过早抽象。这种纪律性能防止 bug 修复 PR 变成重构雪崩。
v1.7.0 · audit A · 54 stars
sofagent-fde SKILL.md skill
kongfangxun/sofagent · SKILL/agents/fde/SKILL.md · 前线部署与知识工程专家。梳理企业工作流、识别 AI 节点、构建 ontology 本体数据、交付离场。 部署完成后转为持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。…
v1.7.0 · audit A · 54 stars
代码审查员 SKILL.md skill
kongfangxun/sofagent · SKILL/agents/reviewer/SKILL.md · 专业代码审查专家,提供建设性、可操作的反馈,聚焦正确性、可维护性、安全性和性能,而非代码风格偏好。
v1.7.0 · audit A · 54 stars
cordis-plugin-sofagent-audit SKILL.md skill
kongfangxun/sofagent · engine/dsh-plugins/cordis-plugin-sofagent-audit/SKILL.md · 变更机器审阅 + 验收硬门禁——28 规则 + git diff 硬证据 + Turn 停止验收判定(验收不过不放行,开关独立可关)(seam: tools/result + tools/pre-execute +…
v1.7.0 · audit A · 54 stars
cordis-plugin-sofagent-daemon SKILL.md skill
kongfangxun/sofagent · engine/dsh-plugins/cordis-plugin-sofagent-daemon/SKILL.md · 7×24 巡检 + 健康监测 + webhook 推送(seam: non-seam:host-process)——桥接 @sofagent/daemon startCron——DSH(DeepSeek Harness)cordis…
v1.7.0 · audit A · 54 stars

Every file in kongfangxun/sofagent

Other files named sofagent

sofagent SKILL.md skill
kongfangxun/sofagent · SKILL/SKILL.md · FDE Skill——帮 FDE(前线部署工程师)更好完成企业 AI 落地的方法论 Skill。约束 Agent 行为、审计每次变更、沉淀经验。 底层实现叫约束层——一个层五种能力:注入·审计·回溯·沉淀·进化。FORGE…
v1.7.0 · audit A · 54 stars

Browse by kind, by grade A, or by owner.