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 yesterday against content hash 918abc293c4e, 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 yesterday.

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. yesterday Changed 918abc293c4e
  2. 4d ago Changed 0b05757b0067
  3. 7d ago Changed bfbd18dbe646
  4. 8d ago Changed 82edcdc65f50
  5. 12d ago Changed 55e7f192acf0
  6. 15d ago Changed 82be746eb678
  7. 17d ago Changed 0f176b17844d
  8. 20d ago Changed 4debcb699d0e
  9. 22d ago Changed eb61552d7411
  10. 24d ago First seen · 79 lines · 43 tokens per session scan A 41ef2bd3d3e9

Subscribe to this mod's changes

sofagent-audit is a skill published in the GitHub repository KongFangXun/sofagent (53 stars, last pushed yesterday), 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

Other skills, from other repositories

air-blackbox-sales-agent

AIR Blackbox's autonomous sales prospecting agent. Finds Python AI projects on GitHub that need EU AI Act compliance, identifies the right person to contact (CEO, CTO, lead maintainer), runs a free compliance scan, and drafts personalized outreach emails that convert to engagement. The sales flow: free scan as the…

airblackbox/airblackbox · 248 tokens

interpret-results

Interprets AIR Blackbox scan results and maps findings to specific EU AI Act articles, recitals, and remediation steps. Use when the user has scan output and wants to understand what to fix, why it matters, or how to prioritize.

airblackbox/airblackbox · 49 tokens

compliance-scan

Scans a Python AI project for EU AI Act compliance gaps using AIR Blackbox. Use when the user asks to check compliance, scan their code, audit their AI project, or mentions EU AI Act, Articles 9-15, or compliance checking.

airblackbox/airblackbox · 51 tokens

n8n-cli

Use the n8n CLI to manage workflows, credentials, executions, and more on an n8n instance. Use when the user asks to interact with n8n, automate workflows, manage credentials, or operate their instance from the command line.

n8n-io/n8n · 55 tokens

planning

ONLY for coordinated multi-artifact work: multiple workflows with dependencies, shared data-table schema/migration across tasks, or the user explicitly asked to review a plan first. If create-tasks is not visible, load it via loadtool (search "create tasks"). Do NOT use for new one-off workflows, single-workflow…

n8n-io/n8n · 87 tokens

data-table-manager

Load before calling data-tables or parse-file. Use for natural standalone requests like "what data tables do I have?", "show/list my tables", or "what columns are in this table?", and whenever the user asks to list, show, create, inspect, import, seed, query, update, clean up, rename columns in, or delete data tables…

n8n-io/n8n · 113 tokens