# rea-analysis-optimization

rea-analysis-optimization is a Claude Code skill that streamlines REA providers and shared analysis workflows for latency, CPU, and memory. It resolves bottlenecks in cache and query design.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 71 repo stars
- Author: freyrswift
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/freyrswift/UaStation/tree/HEAD/resources/skills-upstream/rea/rea-analysis-optimization/SKILL.md
- Updated: 2026-11-13
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/rea-analysis-optimization

## What it does

This skill detects redundant operations across REA data analysis workflows and shifts logic fixes directly to producers across CLI and MCP entry points. It profiles admission, decoding, projection, serialization, and evidence retention without sacrificing result accuracy.

Every shared cache or producer must declare its lookup key, owner, eviction rules, retained memory, and lifespan. The workflow caps process-family limits to prevent out-of-memory stops and isolates single-caller cancellations from affecting active peers.

The workflow guides optimization steps but grants no execution, publishing, or git merge permissions. Profiling test suites and CI pipelines is explicitly excluded; that workload belongs to rea-ci-tests-audit.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill rea-analysis-optimization -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/rea-analysis-optimization/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/rea-analysis-optimization/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill rea-analysis-optimization -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/rea-analysis-optimization/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill rea-analysis-optimization -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/rea-analysis-optimization/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install freyrswift/UaStation resources/skills-upstream/rea/rea-analysis-optimization
```

2. **Manually: put the files in place**
- File: `.github/skills/rea-analysis-optimization/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add freyrswift/UaStation --skill rea-analysis-optimization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/freyrswift/UaStation --path resources/skills-upstream/rea/rea-analysis-optimization
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/rea-analysis-optimization/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/freyrswift/UaStation/tree/HEAD/resources/skills-upstream/rea/rea-analysis-optimization/SKILL.md

## When to use it
- reduce latency and memory consumption in REA analysis pipelines
- structure keys, lifespans, and invalidation for shared caches
- eliminate redundant fact scans and duplicate decoding operations
- verify optimization correctness against an independent oracle

## Example prompts
- Optimize the REA provider for this MCP task to reduce serialization memory overhead
- Audit query cache bottlenecks and establish explicit invalidation lifespans
- Locate redundant decoding steps in the CLI workflow and verify output against an oracle

## Similar
- [context-optimization](https://affpapa.org/en/nevibecode/skills/context-optimization.md) — skill · 532 installs
- [perf](https://affpapa.org/en/nevibecode/skills/alexj11324-perf.md) — skill · ★ 88 repo stars
- [performance-optimization](https://affpapa.org/en/nevibecode/commands/seth-hobson-performance-optimization.md) — command · ★ 126 repo stars
- [rea-sdk-change](https://affpapa.org/en/nevibecode/skills/rea-sdk-change.md) — skill · ★ 56 repo stars
- [argent-react-native-optimization](https://affpapa.org/en/nevibecode/skills/argent-react-native-optimization.md) — skill · 32700 installs
- [performance-analysis](https://affpapa.org/en/nevibecode/skills/performance-analysis.md) — skill · 1200 installs

From the same set: [freyrswift/uastation](https://affpapa.org/en/nevibecode/by/freyrswift/uastation.md) — 16 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
