rea-analysis-optimization
Optimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence.
Skill by morluto
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/morluto-rea-analysis-optimization
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, testing, devops, security, refactoring
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rea-analysis-optimization
What's inside
- Skill name
rea-analysis-optimization- Description
- Optimize 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.
- License
- MIT
- Instructions
- 110 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- openai.yaml · agents/
- kuna-case-study.md · references/
SKILL.md (first lines)
# REA analysis optimization Find a concrete source of unnecessary work, change it at its owner, and verify equivalent completed investigations. A useful outcome can also be a measured decision to leave an implementation alone. Follow the checkout's [performance priorities](../../../AGENTS.md#performance), [tool design](../../../docs/tool-design.md), and [testing guide](../../../docs/testing.md). This skill supplies an optimization workflow, not additional permission to execute targets, publish, or merge. Use the current contracts, provider prerequisites, and user authorization. Reserve performance measurements for changes that target performance or have a concrete regression concern. Routine cleanup uses correctness checks and does not require this optimization workflow or synthetic benchmarks merely because helper calls, imports, or representations change. Read [the Kuna case study](references/kuna-case-study.md) when selecting a reuse strategy or interpreting a benchmark. Its pinned observations illustrate tradeoffs; they are not current-provider guarantees or universal speedups. ## Pin the question and the correctness oracle Describe the analyst's completed task, including the facts and relationships needed to answer it, requested detail, source access, and meaningful unknowns. Choose a representative real artifact and a small or empty case. Record the baseline revision, target digest, engine identity, options, host, and entrypoint. Use a separate checkout for changes without disturbing other work. 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. Comparing two wrappers around the same faulty decoder does not establish correctness. Preserve address widths, same-address alternatives, unresolved endpoints, coverage, and source linkage. An empty result proves absence only within the actually examined scope. ## Locate the earliest unnecessary work Trace one public CLI or MCP task through shared application code to its producer. Measure relevant phases: admission and identity checks, native analysis, decoding, lookup, projection, serialization, Evidence retention, and cleanup. Include catalog discovery and extra calls when they affect the completed task. Use the evidence to choose the smallest structural correction: | Observed cost | Candidate correction | Condition to establish | | --------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Repeated scans of validated facts | Reuse existing order or lookup structure | The owner establishes ordering and identity; every matching alternative survives | | Repeated equivalent engine work | Share a validated result or in-flight producer | Inputs, freshness, lifetime, and per-caller outcomes remain explicit | | Full reports for selected facts | Push selection or projection to the earliest capable owner | Required facts and evidence remain reachable; examined coverage is reported | | Large temporary transport buffers | Decode incrementally or use bounded source reads | Validate the whole admitted document; retained facts and copies still consume memory | | Many repeated homogeneous reads | Share admission, decoding, or batch work | Preserve item identity, order where required, and individual failures | Do not introduce an index, generic cache, batch endpoint, or orchestration layer without identifying the work it removes and its maintenance/resource cost. Projection after materializing a full report may reduce output while leaving analysis time and peak memory unchanged. Fix missing or incorrect facts before benchmarking an alternative composition against a better-covered workflow. ## Keep one interpretation and a defined reuse lifetime Let the producer boundary validate and normalize facts once. Consumers query that representation through the shared CLI/MCP implementation; adapters should not rebuild relationships or independently reinterpret raw reports. Keep lookup identity separate from display formatting. Reuse contracts when their intent matches, honoring requested detail and complete Evidence access. For every cache or shared producer, state its key, owner, invalidation, retained size, and lifetime. Account for result-affecting target bytes, engine contents, analysis options, architecture/load mapping, and parser/schema versions where they affect reuse. Validate live state before calling a cached observation current. Cache a refusal only when it is deterministic for that validated key; malformed, partial, transient, or cancelled attempts need explicit retry policy. One cancelled waiter must not invalidate a successful peer. Preserve producer failure context and each caller's cancellation reason. Retain ownership and capacity charges until shared work and cleanup settle; preserve completed observations when cleanup fails. Exercise invalidation, concurrent consumers, last-waiter cancellation, close, and cleanup retry when those paths change. Bound the process family and retained state, not just a parent heap or worker count. Account for decoding and serialization expansion before allocation. Choose CPU, memory, concurrency, and disk limits from the host and workload; stop before OOM and verify owned cleanup. A guard-stopped task is incomplete. Do not replace a transport buffer cap with an unbounded retained inventory or hide partial results behind a success status. ## Compare completed tasks and limit the claim Run the affected real public workflow before and after with equivalent inputs, results, coverage, and Evidence semantics. Include small inputs so setup costs and regressions are visible. Distinguish fresh sessions, warm runtime caches, and OS file caches. Alternate or repeat runs when variance affects the decision. Choose meaningful boundary regressions for cases the actual engine cannot reliably reproduce; a fake engine does not qualify a real provider. Report task outcome, relevant phase timings, total elapsed and CPU time, peak process-family memory and its accounting method, resource stops, and cleanup. Check the payload exit status as well as the profiler's. Keep failed attempts and identify unmeasured costs; a passing retry does not explain a failure. For token claims, count schemas/discovery, arguments, replies, retries, and continuations needed to finish the task. Label tokenizer estimates separately from actual model usage and record the client/catalog behavior. Smaller JSON alone establishes neither fewer model tokens nor better investigation quality. Do not claim a complex-software advantage without completed representative investigations and comparable correctness/coverage. Finish with the bottleneck, owning change, preserved semantics, executed checks, before/after measurements, and remaining limits. Keep any integration record current with its tested revision and distinguish merged production work from experiment-only code. Stop when the demonstrated bottleneck is resolved or further benefit remains speculative.
From morluto/rea, MIT.
More from morluto/rea
- 0.891score
reverse-engineer-anything
morluto
Reverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of…
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.888score
rea-ci-tests-audit
morluto
Audit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency…
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.882score
rea-changelog-update
morluto
Prepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.874score
REA
morluto
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
ConnectorAFreshness: ALocal★ 377.4KClaude Code +5 - 0.873score
rea-tool-design
morluto
Design or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.750score
AGENTS.md · morluto/rea
morluto
AGENTS.md from morluto/rea: 128 lines covering Product and Authority, Architecture and Cleanup, Performance, Development and more.
TemplateAFreshness: A★ 377.4KCodex +5
Signals
- Stars
- 377,435
- Forks
- 94,316
- Open issues
- 576
- Contributors
- 333
- Last commit (this folder)
- Oct 17, 2026 (10 days ago)
- Last release
- Oct 18, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/morluto/rea
- Website
- rea.tools
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from morluto
- 0.891score
reverse-engineer-anything
morluto
Reverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of…
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.888score
rea-ci-tests-audit
morluto
Audit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency…
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.882score
rea-changelog-update
morluto
Prepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.874score
REA
morluto
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
ConnectorAFreshness: ALocal★ 377.4KClaude Code +5 - 0.873score
rea-tool-design
morluto
Design or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.
SkillAFreshness: A★ 377.4KClaude Code +9 - 0.800score
Jacobian
morluto
Executable mathematics and independent verification for AI agents.
ConnectorAFreshness: ALocal★ 322Claude Code +5
Cite this page
rea-analysis-optimization skill. Agent Mart. https://agentmart.dev/skills/morluto-rea-analysis-optimization (last updated 2026-10-24)