supabase
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
audit-aggregator
Aggregate and deduplicate findings from multiple audit reports
Full skill instructions
Purpose: Merge findings from 6+ domain-specific audit reports into a single comprehensive, priority-ranked report with cross-domain insights and deduplication.
Input: Multiple audit report files (markdown format) Output:
COMPREHENSIVE_AUDIT_REPORT.md with executive summary, priority rankings, and
cross-cutting analysis
Expected Files:
docs/audits/comprehensive/audit-code-report.mddocs/audits/comprehensive/audit-security-report.mddocs/audits/comprehensive/audit-performance-report.mddocs/audits/comprehensive/audit-documentation-report.mddocs/audits/comprehensive/audit-refactoring-report.mddocs/audits/comprehensive/audit-process-report.mdRequired Format (in each report):
Each individual audit report should contain findings in this structure:
## Findings
### [ID] [Title] (Severity: S0-S3, Effort: E0-E3, Confidence: High/Medium/Low)
**File:** `path/to/file.ts:123` **Category:** [Category Name] **Description:**
[Detailed description] **Evidence:** [Code snippets, metrics, etc.]
**Recommendation:** [How to fix]
Read all 7 audit reports and extract findings into structured format:
{
id: "CODE-001",
title: "Missing error handling",
severity: "S1",
effort: "E1",
confidence: "High",
file: "src/auth.ts",
line: 45,
category: "Code Quality",
domain: "code",
description: "...",
evidence: "...",
recommendation: "..."
}
Parsing Rules:
{DOMAIN}-{NUMBER} (e.g., CODE-001, SEC-012, PERF-003)Handle Missing Fields:
Deduplication Logic:
Group findings by (file, line) pair:
// Pseudo-code
const groups = groupBy(findings, (f) => `${f.file}:${f.line}`);
for (const group of groups) {
if (group.length > 1) {
// Multiple audits flagged same location
merged = {
id: `COMP-${nextId++}`, // New composite ID
domains: group.map((f) => f.domain), // ["code", "security"]
severity: maxSeverity(group), // Take worst severity
effort: maxEffort(group), // Take highest effort estimate
confidence: maxConfidence(group), // Take highest confidence
title: mergeTitles(group), // Combine titles
description: mergeDescriptions(group), // Combine contexts
category: "Cross-Domain", // Flag as spanning multiple domains
...
};
}
}
Merge Rules:
Example Deduplication:
Before:
CODE-001: Missing error handling (S1, E1) at auth.ts:45
SEC-012: Exception vulnerability (S0, E1) at auth.ts:45
After:
COMP-001: Missing error handling + Exception vulnerability (S0, E1, Domains: 2)
Category: Cross-Domain (Code + Security)
Pattern Detection:
A. Hotspot Files (appear in 3+ audits):
// Count how many audits mention each file
const fileCounts = {};
for (const finding of findings) {
fileCounts[finding.file] = (fileCounts[finding.file] || 0) + 1;
}
// Files with 3+ mentions
const hotspots = Object.entries(fileCounts)
.filter(([file, count]) => count >= 3)
.sort((a, b) => b[1] - a[1]);
B. Related Findings (fixing one helps another):
Look for pairs where:
C. Domain Overlaps:
Count overlaps between domain pairs:
Security + Performance: 12 findings
Code + Refactoring: 18 findings
Documentation + Code: 8 findings
D. Category Patterns:
Group by category across domains:
Authentication: 5 findings (2 security, 2 code, 1 process)
Error Handling: 8 findings (3 code, 3 security, 2 performance)
Testing: 12 findings (6 code, 4 refactoring, 2 process)
Priority Score Formula:
priority = severityWeight × crossDomainMultiplier × confidenceWeight / effortWeight;
// Weights
severityWeight = { S0: 100, S1: 50, S2: 20, S3: 5 };
crossDomainMultiplier = 1 + (domains.length - 1) * 0.5; // 1.0, 1.5, 2.0, 2.5...
confidenceWeight = { High: 1.0, Medium: 0.8, Low: 0.5 };
effortWeight = { E0: 0.5, E1: 1.0, E2: 2.0, E3: 4.0 };
Ranking Rules:
Example Scores:
Finding A: S0 Critical, 1 domain, High confidence, E1 effort
→ 100 × 1.0 × 1.0 / 1.0 = 100 (Rank #1)
Finding B: S1 High, 3 domains, High confidence, E1 effort
→ 50 × 2.0 × 1.0 / 1.0 = 100 (Rank #2 - tie, resolved by severity S0 > S1)
Finding C: S2 Medium, 2 domains, High confidence, E0 trivial
→ 20 × 1.5 × 1.0 / 0.5 = 60 (Rank #3 - quick win)
Finding D: S1 High, 1 domain, Medium confidence, E2 day
→ 50 × 1.0 × 0.8 / 2.0 = 20 (Rank #4 - high effort lowers priority)
Summary Components:
A. Statistics:
## Executive Summary
### Audit Overview
- **Raw Findings:** 142 (across 7 audits)
- **Unique Findings:** 97 (after deduplication)
- **Merged Findings:** 45 (appeared in 2+ audits)
- **Cross-Domain Findings:** 18 (3+ audits)
### Severity Breakdown
- **S0 Critical:** 3 (IMMEDIATE ACTION REQUIRED)
- **S1 High:** 24 (fix within sprint)
- **S2 Medium:** 42 (plan for next milestone)
- **S3 Low:** 28 (backlog/nice-to-have)
### Effort Estimate
- **Total estimated effort:** 127 hours
- **Quick wins (E0):** 15 findings (12 hours)
- **Short fixes (E1):** 42 findings (42 hours)
- **Medium tasks (E2):** 28 findings (56 hours)
- **Major refactors (E3):** 12 findings (96 hours)
B. Top Insights:
List 3-5 highest-impact insights:
### Key Insights
1. **Authentication Layer Needs Comprehensive Refactor**
- 8 files appear in 4+ audits (security, code, performance, documentation)
- High complexity with poor error handling and missing tests
- Recommended: Dedicated sprint to harden auth module
2. **Security + Performance Overlap**
- 12 findings where fixing security also improves performance
- Example: Rate limiting prevents DoS (security) + reduces server load
(performance)
- Recommended: Bundle these fixes together
3. **Documentation Gaps Align with Code Complexity**
- 5 files with S1 complexity issues also have missing/outdated docs
- Difficult to maintain or extend without documentation
- Recommended: Document complex areas first (highest ROI)
C. Recommended Fix Order:
### Recommended Action Plan
**Phase 1: Critical Fixes (Week 1)**
1. FIX S0 findings (3 items - 8 hours)
2. Address top 5 quick wins (E0 - 4 hours)
**Phase 2: High-Priority Fixes (Week 2-3)**
1. Cross-domain findings (18 items - 32 hours)
2. Hotspot files refactor (8 files - 48 hours)
**Phase 3: Systematic Improvements (Month 2)**
1. Remaining S1 findings (21 items - 36 hours)
2. S2 medium-effort fixes (28 items - 56 hours)
**Phase 4: Backlog (Ongoing)**
1. S3 low-priority (28 items - 24 hours)
2. Major refactors (E3 - 96 hours, spread over quarters)
Output File: docs/audits/comprehensive/COMPREHENSIVE_AUDIT_REPORT.md
Structure:
# Comprehensive Audit Report
**Generated:** [Date] **Audits Included:** Code, Security, Performance,
Documentation, Refactoring, Process **Total Findings:** 97 unique (142 raw)
---
## Executive Summary
[Generated in Step 5]
---
## Priority-Ranked Findings (Top 20)
| Rank | ID | Severity | Domains | File:Line | Description | Effort | Score |
| ---- | -------- | -------: | ------: | ------------------- | --------------------------------------- | -----: | ----: |
| 1 | COMP-001 | S0 | 3 | src/auth.ts:45 | Missing error handling + Exception vuln | E1 | 100 |
| 2 | SEC-012 | S0 | 1 | firestore.rules:102 | Missing auth check on delete | E0 | 95 |
| ... | ... | ... | ... | ... | ... | ... | ... |
---
## Cross-Domain Insights
### Hotspot Files (3+ audits)
1. **src/auth.ts** (5 audits: code, security, performance, documentation,
refactoring)
- Complexity: 45 (high)
- Missing tests: 8 functions
- Security issues: 3 (auth bypass, exception handling, rate limiting)
- Performance: N+1 queries
- Documentation: Outdated
[Continue with other hotspots...]
### Domain Overlaps
- **Security + Performance:** 12 findings (bundling opportunity)
- **Code + Refactoring:** 18 findings (quality improvements)
- **Documentation + Code:** 8 findings (complex code needs docs)
### Category Patterns
- **Authentication:** 5 findings → Need dedicated hardening sprint
- **Error Handling:** 8 findings → Systematic improvement needed
- **Testing:** 12 findings → Coverage gaps in critical areas
---
## Full Findings (Deduplicated)
### S0 Critical (3 findings)
#### COMP-001: Missing error handling + Exception vulnerability
**Domains:** Code (CODE-001), Security (SEC-012), Performance (PERF-005)
**File:** `src/auth.ts:45` **Severity:** S0 (Critical) **Effort:** E1 (Hours)
**Confidence:** High
**Description:** [Merged description from all 3 audits...]
**Evidence:** [Merged evidence from all 3 audits...]
**Recommendation:** [Merged recommendations from all 3 audits...]
---
[Continue with all findings grouped by severity...]
---
## Appendix
### Individual Audit Reports
- [Code Quality Report](./audit-code-report.md) - 32 findings
- [Security Report](./audit-security-report.md) - 18 findings
- [Performance Report](./audit-performance-report.md) - 24 findings
- [Documentation Report](./audit-documentation-report.md) - 15 findings
- [Refactoring Report](./audit-refactoring-report.md) - 41 findings
- [Process/Automation Report](./audit-process-report.md) - 12 findings
### Baseline Metrics
- **Tests:** 287 passing
- **Lint:** 0 errors, 12 warnings
- **Pattern Compliance:** 4 violations
- **Stack:** Next.js 16.1.1, React 19.2.3, Firebase 12.6.0
### False Positives Excluded
- **Total excluded:** 8 findings
- **Reason:** Documented false positives in FALSE_POSITIVES.jsonl
- **Categories:** code (3), security (2), performance (2), documentation (1)
Before Finalizing Report:
Verify deduplication worked:
Verify priority ranking:
Verify cross-cutting insights:
Verify completeness:
If Audit Report Missing:
If Parsing Fails:
If Deduplication Produces Empty Result:
Standalone Usage (you have existing audit reports):
/audit-aggregator
Integrated Usage (called by audit-comprehensive):
Automatically invoked after all 6 parallel audits complete.
After aggregation and TDMS intake, triage new items into the roadmap:
The aggregated output shows cross-domain patterns. Prioritize items that:
Beyond S0-S3 severity, use this scoring:
| Factor | Weight | Calculation |
|---|---|---|
| Severity | 40% | S0=100, S1=50, S2=20, S3=5 |
| Cross-domain | 20% | +50% per additional domain |
| Effort inverse | 20% | E0=4x, E1=2x, E2=1x, E3=0.5x |
| Dependency | 10% | +25% if blocks other items |
| File hotspot | 10% | +25% if file has 3+ findings |
Items auto-assign based on category + file patterns:
| Category | File Pattern | Track |
|---|---|---|
| security | * | Track-S |
| performance | * | Track-P |
| process | * | Track-D |
| refactoring | * | M2.3-REF |
| documentation | * | M1.5 |
| code-quality | scripts/, .claude/ | Track-E |
| code-quality | .github/ | Track-D |
| code-quality | tests/ | Track-T |
| code-quality | functions/ | M2.2 |
| code-quality | components/, lib/, app/ | M2.1 |
See docs/technical-debt/views/unplaced-items.md for full mapping.
Add DEBT-XXXX references to appropriate tracks:
## Track-S: Security Technical Debt
- [ ] DEBT-0875: Firebase credentials written to disk (S1)
node scripts/debt/sync-roadmap-refs.js --check-only
/audit-comprehensive - Orchestrator that calls this aggregatorBefore running this aggregator, review:
node scripts/debt/intake-audit.js <output.jsonl> --source "audit-comprehensive-<date>"| Version | Date | Description |
|---|---|---|
| 1.1 | 2026-02-03 | Added Triage & Roadmap Integration section with priority scoring formula |
| 1.0 | 2026-01-28 | Initial skill creation |
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.
Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.
Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
Send, read, and manage Gmail messages, drafts, labels, and account settings.
Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.
Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.
Discover your celebrity doppelgänger with StarByFace!
GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams
Detect AI-generated voices to protect against audio fraud.
Ensure Your Content's Originality with AI Plagiarism Checker
Upscale images by 400% without quality loss
Protect your social media from copyright disputes
Accurately Detect AI-Generated Content with TheChecker.AI
Chrome extension that detects and flags AI-generated content