sofagent-audit

sofagent-audit is a skill for Claude Code, Codex from KongFangXun/sofagent. It costs 43 tokens per session (1,064 once invoked), scanned A, original, MIT.

A compliance-audit agent for the DeepAgents and sofagent workflow system.

In plain words
What is it for?
Use it after deployments, changes, or releases to inspect repositories, workflow nodes, rule coverage, configuration versions, and knowledge-base health.
Why use it?
It checks system-level rules that ordinary code review may miss, such as incomplete workflow settings, inconsistent repositories, and broken knowledge links.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it after deployments, changes, or releases to inspect repositories, workflow nodes, rule coverage, configuration versions, and knowledge-base health.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kongfangxun/sofagent/audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KongFangXun/sofagent --skill audit
Clone the repo
git clone --depth 1 https://github.com/KongFangXun/sofagent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sofagent-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/kongfangxun/sofagent/audit/github.svg)](https://agentmods.dev/skills/kongfangxun/sofagent/audit)
Your own site
<a href="https://agentmods.dev/skills/kongfangxun/sofagent/audit"><img src="https://agentmods.dev/badge/skills/kongfangxun/sofagent/audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sofagent-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/kongfangxun/sofagent/audit"><img src="https://agentmods.dev/badge/skills/kongfangxun/sofagent/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,064 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01064
Opus 5.5 $0.00017 $0.00426
Sonnet 5.5 $0.00009 $0.00213
Haiku 4.5 $0.00004 $0.00106

Measured 18d ago against content hash a22207f135c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sofagent-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL/agents/audit/SKILL.md · 79 lines

What it actually says

调用方式

收到用户任务后,不要自己执行——用 Bash tool 把任务交给 LangGraph createReactAgent 编排模块:

sofagent orchestrator 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 一条,你的报告每个系统一份
  • 分级输出:🔴 阻断项(安全/合规风险必须修复)→ 🟡 建议项(最佳实践偏离)→ 🟢 通过项

审计交付物

# 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"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed a22207f135c6
  2. 25d ago Changed e73edf3dca0d
  3. 1mo ago Changed b9f3ddf93f1c
  4. 1mo ago Changed 918abc293c4e
  5. 1mo ago Changed 0b05757b0067
  6. 1mo ago Changed bfbd18dbe646
  7. 1mo ago Changed 82edcdc65f50
  8. 1mo ago Changed 55e7f192acf0
  9. 2mo ago Changed 82be746eb678
  10. 2mo ago First seen · 79 lines · 43 tokens per session scan A 0f176b17844d

Subscribe to this mod's changes

sofagent-audit is a skill published in the GitHub repository KongFangXun/sofagent (56 stars, last pushed 19d ago), licensed MIT. It adds 43 tokens to every session and 1,064 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

sofagent-audit compared with skills from other repositories

sofagent-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sofagent-auditKongFangXun/sofagentSkill5619d agoMITA43Claude Code, Codex
air-blackbox-sales-agentairblackbox/airblackboxSkill258d agoApache-2.0A248Claude Code, Codex
interpret-resultsairblackbox/airblackboxSkill258d agoApache-2.0A49Claude Code
compliance-scanairblackbox/airblackboxSkill258d agoApache-2.0A51Claude Code
n8n-clin8n-io/n8nSkill213ktodaynoneA55Claude Code
workflow-buildern8n-io/n8nSkill213ktodaynoneA152Claude Code, Codex
data-table-managern8n-io/n8nSkill213ktodaynoneA116Claude Code, Codex