audit-flow

仓库创建 2025年6月22日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

适合安全审计与事后分析,带持久化与可视化输出

这个 Skill 做什么

跨 CODE/API/AUTH/DATA/NETWORK 多层追踪并将流程存入 SQLite,支持 Mermaid 导出。

把系统在 CODE、API、AUTH、DATA、NETWORK 各层的调用链和流程抓出来并存入 SQLite,能导出 Mermaid 图做可视化。适合做安全审计、故障排查、架构评审或事后复盘时用。特点是跨层追踪并持久化,方便后续查询、对比和生成流程图,利于定位问题和归档。

▸ 展开 SKILL.md 英文原文

Interactive system flow tracing across CODE, API, AUTH, DATA, NETWORK layers with SQLite persistence and Mermaid export. Use for security audits, compliance documentation, flow tracing, feature ideation, brainstorming, debugging, architecture reviews, or incident post-mortems. Triggers on audit, trace flow, document flow, security review, debug flow, brainstorm, architecture review, post-mortem, incident review.

开发编程流程追踪安全审计架构图通用
4.4k
Stars
448
Forks
40
仓库内 Skill
+70
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/zebbern/claude-code-guide/main/skills/audit-flow/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/zebbern/claude-code-guide/main/skills/audit-flow/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
## ⚠️ MANDATORY ENTRY POINT — Execute Before ANY Other Action

**Step 1: Read schema.sql**

```bash
# ALWAYS read the schema first to understand tables, constraints, views
cat .claude/skills/audit-flow/schema.sql
```

**Step 2: Check if DB exists — NEVER recreate**

```bash
# Check for existing database
ls -la .audit/audit.db 2>/dev/null && echo "DB EXISTS - DO NOT RECREATE" || echo "No DB - safe to init"
```

**Step 3: If DB exists, show current state**

```bash
python .claude/skills/audit-flow/scripts/audit.py list
```

### 🚫 FORBIDDEN ACTIONS

| Action                                                | Why Forbidden            |
| ----------------------------------------------------- | ---
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有