# 全仓库质量审计 (ponytail-audit)

> 对整个仓库做一次性质量审计，找出 bug、安全漏洞、负载问题、缺失测试、慢路径和可删减代码并排序。

- 分类: [安全审计](https://www.myskills.tools/zh/categories/security-audit/)
- 来源: 社区 · DietrichGebert
- 代码仓库: https://github.com/DietrichGebert/ponytail/tree/main/skills/ponytail-audit (commit 2a1fe84)
- SKILL.md: https://github.com/DietrichGebert/ponytail/blob/main/skills/ponytail-audit/SKILL.md
- 安装命令: `npx skills add DietrichGebert/ponytail --skill ponytail-audit`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor
- 权限: read-repo ✓, write-files ✗, shell ✗, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

每条问题都要有具体情形说明会导致什么错误结果，没有具体情形就不报告。

## 执行阶段

1. **先摸清全貌** — 阅读 README、部署和构建配置、依赖、入口和测试，判断预期负载，并完整追踪主要数据流。
2. **逐项查找** — 检查 bug、安全与数据丢失风险、规模问题、缺失测试、速度，以及可删除、合并或拆分的代码。
3. **报告前核实** — 认定代码未被使用前先搜索整个仓库，包括测试和配置；只提出最小修复，优先删除代码。
4. **输出排序报告** — 说明仓库用途和假设的负载，按必须修、应该修、可选分组列出至多 20 条编号问题，并写明未检查的部分。

## 权限说明（据 SKILL.md 整理）

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 不需要 | 一次性报告，不修改任何代码。 |
| 命令执行 | 不需要 | 说明中没有运行命令的步骤，只阅读和搜索代码。 |
| 网络外发 | 不需要 | 说明中没有网络访问步骤。 |

## SKILL.md 头部信息（YAML）

```yaml
---
name: ponytail-audit
description: >
  Quality audit of a whole repo: bugs, security holes, what breaks under real
  load, risky code without tests, slow paths, and what to delete, merge or
  split. Ranked, each finding explained in plain English. One-shot report,
  changes nothing. Use for "audit this codebase", "review the whole repo",
  "find bloat", "what can I delete", /ponytail-audit.
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/ponytail-audit/
