rea-analysis-optimization

Optimize REA analysis workflows by identifying and eliminating unnecessary computation while preserving correctness and Evidence.

420k|105k|Updated Apr 14, 2026
Ready to run
npx skills add https://github.com/morluto/rea --skill rea-analysis-optimization-morluto
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: rea-analysis-optimization
Source: https://github.com/morluto/rea/tree/main/.agents/skills/rea-analysis-optimization
Command: npx skills add https://github.com/morluto/rea --skill rea-analysis-optimization-morluto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Analysis tasks often include repeated work, oversized buffers, or redundant computation that slows investigations without improving results. This Skill helps you locate concrete bottlenecks in REA providers and shared workflows, then verify that fixes maintain correctness and Evidence integrity. ## Core Features & Use Cases - Bottleneck Identification: Trace public tasks through application code to measure each phase (admission, analysis, decoding, serialization, cleanup) and identify unnecessary work. - Correctness Verification: Establish independent correctness oracles before optimization, ensuring Evidence and results remain valid after changes. - Reuse Strategy: Decide when to cache, share, or incrementally stream results rather than materializing full reports, with explicit tracking of key, lifetime, and invalidation. - Use Case: Your agent's string analysis on a 600k-fact binary runs 28 warm queries in 495 ms. Use this Skill to diagnose repeated full-inventory scans, implement indexed lookup, and verify the 5.5× speedup without losing source linkage or coverage reporting. ## Quick Start Follow the checkout's performance priorities and tool design, pin your completed investigation task with its correctness oracle, trace one public workflow to find the earliest unnecessary work, establish reuse boundaries with invalidation rules, then run before-and-after measurements on real artifacts to verify the bottleneck is resolved.

Frequently Asked Questions about rea-analysis-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify performance bottlenecks in REA analysis workflows?▼

Trace one public CLI or MCP task through shared application code to measure relevant phases: admission, native analysis, decoding, lookup, projection, serialization, Evidence retention, and cleanup. Compare baseline and target revisions with the same inputs, real artifacts, and independent correctness oracle to isolate the slowest phase.

What strategies reduce repeated equivalent engine work in REA?▼

Share validated results or in-flight producers across callers while keeping inputs, freshness, lifetime, and per-caller outcomes explicit. Cache deterministic refusals only; preserve producer failure context and each caller's cancellation reason. Validate live state before calling cached observations current.

When should I cache or stream results instead of materializing full reports?▼

Stream incrementally when full reports create fixed aggregate transport-buffer failures or large temporary buffers. Cache when the producer boundary validates facts once and consumers query that shared representation. For every cache, state its key, owner, invalidation, retained size, and lifetime.

How do I verify optimization maintains correctness and Evidence after changes?▼

Establish an oracle independent of the changed implementation: source-built fixture expectations, independently mapped file bytes, or a native producer paired with checks of its interpretation. Preserve address widths, unresolved endpoints, coverage, and source linkage; run equivalent tasks before and after with matching inputs and results.

What are the limits of token or memory reduction claims?▼

Smaller JSON alone establishes neither fewer model tokens nor better investigation quality. Count schemas, arguments, replies, retries, and continuations needed to finish the task. Distinguish tokenizer estimates from actual model usage and label client/catalog behavior separately.

Why should I avoid generic caches or batch endpoints?▼

Do not introduce a cache, index, batch endpoint, or orchestration layer without identifying the work it removes and its maintenance and resource cost. Projection after materializing full reports may reduce output while leaving analysis time and peak memory unchanged. Fix missing facts before benchmarking alternative compositions.