Skip to content
Back to skills

Tribunal Performance

ASecurity

Performance-specific Tribunal. Runs Logic + Performance reviewers. Use when code is slow, for optimization tasks, bundle analysis, Core Web Vitals improvement, memory leak investigation, and before deploying performance-critical features.

  • 7 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 9, 2026
ai-agentstypescriptgobashreactnodeapidatabasebackendperformance

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add Harmitx7/tribunal-kit --skill tribunal-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tribunal Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tribunal Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/harmitx7-tribunal-performance/badge)](https://www.skillsdirectory.com/skills/harmitx7-tribunal-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tribunal-performance
description: Performance-specific Tribunal. Runs Logic + Performance reviewers. Use when code is slow, for optimization tasks, bundle analysis, Core Web Vitals improvement, memory leak investigation, and before deploying performance-critical features.
tools: Read, Grep, Glob, Bash, Edit, Write
version: 3.0.0
last-updated: 2026-07-30
required-skills:
  - performance-profiling
  - 60fps-animation
  - gsap-performance
scripts-binding:
  - .agent/scripts/bundle_analyzer.js
  - .agent/scripts/test_runner.js
---

# /tribunal-performance — Performance Audit

$ARGUMENTS

---

## Mandatory Pre-Flight Context Inspection

Before optimizing code or running performance reviews, you MUST inspect:

1. Target Source & Heavy Import Inspection (`package.json`, `next.config.js`) → Identify heavy library imports (`moment`, full `lodash`) for tree-shaking
2. Measured Baseline Metrics → Run `bundle_analyzer.js` or latency measurements; ban claiming performance improvements without measured proof
3. 2-Reviewer Performance Gate → Run logic-reviewer and performance-optimizer before approving optimization diffs

4. Required Skills → Before executing, load and follow procedural rules from:
   - `performance-profiling` (.agent/skills/performance-profiling/SKILL.md): Performance measurement methodology and profiling tools
   - `60fps-animation` (.agent/skills/60fps-animation/SKILL.md): GPU compositor-friendly properties and layout thrash avoidance
   - `gsap-performance` (.agent/skills/gsap-performance/SKILL.md): GSAP animation performance optimization and GPU acceleration

---

## When to Use /tribunal-performance

| Use `/tribunal-performance` when... | Use something else when...              |
| :---------------------------------- | :-------------------------------------- |
| LCP, INP, or CLS is above threshold | General code review → `/tribunal-full`  |
| Bundle size is too large            | Backend perf only → `/tribunal-backend` |
| Memory usage grows unbounded        | Database perf → `/tribunal-database`    |
| Node.js event loop is saturated     |                                         |
| Optimizing rendering performance    |                                         |

---

## 3 Active Reviewers (All Run Simultaneously)

### precedence-reviewer → Checks local repo Case Law for past rejections

logic-reviewer

- Expensive computation in render function (runs every render)
- Missing memoization where React.memo/useMemo would help
- Infinite re-render loop (effect updates a value that triggers the effect)

### performance-reviewer

- INP: expensive synchronous work on user interaction (> 50ms blocking)
- LCP: hero image without priority={true} or preload hint
- CLS: missing width/height on images causing layout shift
- Bundle: large library imported without tree-shaking or dynamic import
- Memory: event listeners added without cleanup in useEffect
- N+1: database queries in loop should be batched
- Cache: expensive DB query without Redis/memory cache

---

## 2026 CWV Targets (Verdict Reference)

| Metric | Good    | Needs Work | Poor (REJECTED) |
| :----- | :------ | :--------- | :-------------- |
| INP    | < 200ms | 200–500ms  | > 500ms         |
| LCP    | < 2.5s  | 2.5–4.0s   | > 4.0s          |
| CLS    | < 0.1   | 0.1–0.25   | > 0.25          |

---

## Verdict System

```
If code contains patterns causing POOR rating → ❌ REJECTED
If code contains patterns causing NEEDS WORK → ⚠️ WARNING
If all patterns cause GOOD rating → ✅ APPROVED
```

---

## Performance-Specific Hallucination Traps

```typescript
// ❌ React.memo doesn't help when parent re-renders with new objects every time
const MemoCard = React.memo(Card);
<MemoCard style={{ margin: 8 }} /> // New object {} every render → memo has no effect

// ✅ Memoize the object itself
const cardStyle = useMemo(() => ({ margin: 8 }), []);
<MemoCard style={cardStyle} />

// ❌ useMemo with no deps array — runs every render (same as no memo)
const sorted = useMemo(() => items.sort(...)); // Missing deps array!

// ✅ Correct deps array
const sorted = useMemo(() => [...items].sort(compareFn), [items]);

// ❌ Non-measurement claim
// "This is fast" — never write this without a Lighthouse score to back it
```

---

## Measurement Protocol

Performance optimization without measurement is guessing:

```
Before optimizing:
□ Run Lighthouse: record LCP, INP, CLS, bundle size
□ Profile with Chrome DevTools: identify actual bottleneck

After optimizing:
□ Run Lighthouse again: confirm improvement
□ Show before/after scores in audit output
```

---

## Usage Examples

```
/tribunal-performance the product listing page with image grid
/tribunal-performance the search component with real-time filtering
/tribunal-performance the checkout flow for CWV compliance
/tribunal-performance the API route with expensive DB query for caching
```

---

## After /tribunal-performance — Next Steps

| Outcome                        | Next Command                                   |
| :----------------------------- | :--------------------------------------------- |
| Fixes identified               | → `/enhance` to safely apply the optimizations |
| Before/After comparison needed | → `/performance-benchmarker` to run Lighthouse |
| Need to verify full stack perf | → `/tribunal-speed` for DB and server layers   |
| Issues span multiple layers    | → `/refactor` to restructure efficiently       |

---

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.