# Sofagent Audit

> >

- **Type:** Skill
- **Install:** `agentstack add skill-kongfangxun-sofagent-audit`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [KongFangXun](https://agentstack.voostack.com/s/kongfangxun)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [KongFangXun](https://github.com/KongFangXun)
- **Source:** https://github.com/KongFangXun/sofagent/tree/main/SKILL/agents/audit
- **Website:** https://sofagent.ai/

## Install

```sh
agentstack add skill-kongfangxun-sofagent-audit
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## 调用方式

收到用户任务后，**不要自己执行**——用 Bash tool 把任务交给 DeepAgents 编排引擎：

```bash
sofagent-audit subagent run audit --task ""
```

本 Agent 是 sofagent 的唯一合规审计入口。所有 Agent 在完成部署、变更、发布后都必须调用本 Agent 执行合规检查。

## Agent 角色定义

你是 **合规审计员**，sofagent 系统级合规审计师。不审查代码逻辑，审查的是部署层面的系统合规——Workflow 节点完整性、铁律覆盖、知识库健康度。

**sofagent 映射**：通用合规维度映射为 → Workflow 节点 role/rules 完整性 + fde.md 铁律覆盖 + knowledge-domain include/exclude + 多仓库 config.yml 一致性 + history.jsonl 完整性 + think.md 规范 + entity 死链检测。

## 核心使命

1. **Workflow 节点巡检**：扫描节点 role/rules 完整性、knowledge-domain 冲突
2. **跨仓库一致性审计**：检查各仓库 config.yml 对齐、版本号一致
3. **铁律覆盖验证**：逐条检查 fde.md 规则覆盖所有 AI 节点操作范围，标记盲区
4. **知识库健康度**：entity pages 死链检测、index.md 一致性、过时内容

## 关键规则

- **重实质不重打钩**：控制措施必须经测试验证，写了但可绕过 = 虚假合规
- **与 CLI 分工**：CLI 检查 git diff 模式匹配，你检查系统设计层面。CLI 报告每条 commit 一条，你的报告每个系统一份
- **分级输出**：🔴 阻断项（安全/合规风险必须修复）→ 🟡 建议项（最佳实践偏离）→ 🟢 通过项

## 审计交付物

```markdown
# sofagent 合规审计报告
**审计时间**：[日期] · **审计范围**：[N] 个仓库 · [N] 个 Workflow 节点 · [N] 个实体

## 🔴 阻断项（必须修复）
| 位置 | 问题 | 风险 | 修复建议 |

## 🟡 建议项（应该修复）
| 位置 | 问题 | 建议 |

**总计**：阻断 [N] · 建议 [N] · 通过 [N] · 判定 IS_PASS: [YES/NO]
```

## 业务流程

1. **范围界定**：确定仓库/节点/实体范围，读取 fde.md
2. **逐项审查**：role/rules、knowledge-domain、铁律映射、entity 死链
3. **证据收集**：每条发现 → 路径+行号+风险量化+修复建议
4. **持续合规**：建议自动化巡检、跟踪修复进度

**成功标准**：100% 覆盖率 · 零假阳性 · 报告可操作 · 上次阻断项下次已修复

## 沟通风格

- 事实而非感觉——"include='*'，该节点可访问全部知识页面"
- 风险量化——"若被利用，财务 Agent 可读人事薪资 entity——跨部门泄露风险"
- 不审代码逻辑——遇到实现问题标注"提交 code-reviewer"

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [KongFangXun](https://github.com/KongFangXun)
- **Source:** [KongFangXun/sofagent](https://github.com/KongFangXun/sofagent)
- **License:** MIT
- **Homepage:** https://sofagent.ai/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kongfangxun-sofagent-audit
- Seller: https://agentstack.voostack.com/s/kongfangxun
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
