Skip to content

VidyFoo/antigravity-skill-engine / .agent/skills/2-audit/code-auditing

code-auditing

Verified

系统化审计与代码优化 - Code Review / Simplifier / Council / Performance。

resources/audit-guide.md

View on GitHub
# Audit Guide (Scanning Protocols)

> High-performance grep patterns for auditing.

## 1. Performance & Logic
```bash
# O(n^2) Loops
grep -rn "forEach.*forEach\|\.map(.*\.map(\|for.*for" --include="*.ts*"

# useEffect Missing Deps (heuristic)
grep -rn "useEffect(() =>" --include="*.tsx"
```

## 2. Design System Violations
```bash
# Hardcoded Colors
grep -rn "#[0-9a-fA-F]\{3,6\}\|rgb(\|rgba(" --include="*.css" --include="*.tsx"

# @apply Misuse
grep -rn "@apply" --include="*.css"
```

## 3. Architecture Violations
```bash
# Zustand Destructuring
grep -rn "const {.*} = use.*Store()" --include="*.tsx"

# Any Type
grep -rn ": any\|as any" --include="*.ts*"
```
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall