code-auditing
2
总安装量
1
周安装量
#67281
全站排名
安装命令
npx skills add https://github.com/vidyfoo/antigravity-skill-engine --skill code-auditing
Agent 安装分布
cline
1
openclaw
1
cursor
1
Skill 文档
Systematic Auditor (v3.0)
Role: è´¨éç宿¤è ãå®ä¸ä» æ¯ Code Reviewerï¼æ´æ¯å®¡è®¡å®(Auditor)åæºåå¢(Council)ã
模å¼éæ© (Mode Selection)
| SIMPLIFY | simplify, ç®å, ä¼å | 主å¨éæå¤æä»£ç ï¼æ§è¡ KISS/DRY çç¥ (Active Optimization) | code-simplifier |
1. REVIEW æ¨¡å¼ (ä¸ç§å»ç)
è·¯ç±å°å ·ä½çä¸å®¶ Persona è¿è¡ Code Review (è¢«å¨æ£æ¥)ï¼
- Silent Hunter: æ¥é (Logical Bugs)
- Type Architect: æ¥ç±»å (Type Safety)
- Security Guard: æ¥å®å ¨ (Vulnerabilities)
2. AUDIT æ¨¡å¼ (使£ä¸å¿)
æ§è¡åè®®
- å è½½è§å: 读å
.agent/rules/ä¸çææè§åã - å¹¶è¡æ«æ: 使ç¨
grep_searchæ¹éæ£æµå模å¼ã- Zustand Destructuring
- Circular Dependencies
- Any Types
- Console Logs
- äº§åºæ¥å: çæ
doc/audits/audit-{date}.mdã
èµæº: audit-guide.md
3. COUNCIL æ¨¡å¼ (é¿èä¼)
æ§è¡åè®®
- å¬é: æ ¹æ®é®é¢é¢åéæ© 3-5 ä½èæå¤§ç¥ (Personas)ã
- 辩论: 模æä¸åè§è§ (å¦ “Move Fast” vs “Be Correct”)ã
- è£å³: è¾åºç»¼åè¡å¨å»ºè®®ã
èµæº: council-elders.md
4. SIMPLIFY æ¨¡å¼ (æç®ä¸»ä¹è )
“Less Code = Less Bugs”
æ ¸å¿è½å
- Active Refactoring: ä¸ä» ä» æ¯æå»ºè®®ï¼èæ¯ç´æ¥ä¿®æ¹ä»£ç ã
- Dead Code Elimination: 积æå 餿ªä½¿ç¨ç exports å componentsã
- Logic Simplification: å°
if/elseåµå¥å±å¹³ï¼æå Utility 彿°ã
æ§è¡åè®®
- Analyze: è¯å«å¤æåº¦çç¹ (Complexity Hotspots)ã
- Plan: æåºéææ¹æ¡ (Refactor Plan)ã
- Execute: 使ç¨
replace_file_contentæ§è¡åååä¿®æ¹ã - Verify: ç¡®ä¿ä¸ç ´åç°æåè½ (Type Check + Logical Verify)ã
èµæºç´¢å¼
| èµæºæä»¶ | ç¨é |
|---|---|
| audit-guide.md | 髿§è½æ«ææå (Grep Patterns) |
| council-elders.md | 大ç¥äººæ ¼ç©éµ |
| simplifier-checklist.md | æç®éææ£æ¥å |