📦 perfguard — 性能反模式扫描器
v1.0.0性能反模式扫描工具,可在代码部署到生产环境前检测 N+1 查询、同步 I/O、缺失分页和内存泄漏等常见性能问题,帮助开发者在开发阶段发现并修复潜在的性能瓶颈。
0· 0·0 当前·0 累计
by @suhteevah
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install perfguard
镜像加速npx clawhub@latest install perfguard --registry https://cn.longxiaskill.com
技能文档
SKILL.md
---
name: perfguard
description: Performance anti-pattern scanner
Features
- Detects N+1 queries in database access code
- Identifies synchronous I/O operations that block execution
- Finds missing pagination in list endpoints
- Detects potential memory leaks
- Integrates with CI/CD pipelines
Usage
perfguard scan ./src
Configuration
Create perfguard.yml in your project root:
rules:
- n_plus_one
- sync_io
- missing_pagination
- memory_leak