← Back to Skills Marketplace
opendolph

Fast Response Optimizer

by jason-tiger · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
148
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fast-response-optimizer
Description
Response speed optimizer - implements reply-first-then-process, parallel tool calls, and memory file caching
README (SKILL.md)

Fast Response Optimizer ⚡

Reduce response time from 5-20 seconds to under 1 second


Core Optimization Strategies

1. Reply First, Process Later

Rule:

  • Receive request → Immediately reply "Received/Processing" → Execute in background → Push result when done

Implementation:

// Quick reply
await message.send("Received, processing...");

// Background execution
const result = await processInBackground(task);

// Push result
await message.send(result);

2. Parallel Tool Execution

Rule:

  • Execute independent tool calls in parallel instead of waiting sequentially

Implementation:

// Before (sequential)
const result1 = await toolA();
const result2 = await toolB();
const result3 = await toolC();

// After (parallel)
const [result1, result2, result3] = await Promise.all([
  toolA(),
  toolB(),
  toolC()
]);

3. Memory File Caching

Rule:

  • Load cache every 1 minute via scheduled task
  • Reload cache if more than 1 minute since last message
  • Cache stored in SESSION-STATE.md

Implementation:

// Cache structure
const cache = {
  lastUpdate: timestamp,
  userProfile: {...},
  memorySummary: {...},
  skills: [...]
};

// Check if refresh needed
if (now - lastMessage > 60000 || now - cache.lastUpdate > 60000) {
  await refreshCache();
}

Trigger Conditions

Scenario Trigger Method
Auto-trigger Execute on every message processing
Scheduled refresh Cron job every 1 minute
Manual trigger User inputs "refresh cache"

Cache Files

SESSION-STATE.md          # Active state + cache
├── cache/               # Cache directory
│   ├── user_profile.json    # User profile cache
│   ├── memory_summary.json  # Memory summary cache
│   └── skills_list.json     # Skills list cache
└── last_refresh.txt     # Last refresh timestamp

Performance Goals

Metric Before After
First Response 5-20s \x3C1s
Tool Calls Sequential accumulation Parallel execution
File Reading Read every time Cache hit
Cache Refresh None Every 1 min / >1 min

Usage

# Initialize optimizer
node skills/fast-response-optimizer/bootstrap.js

# Manual cache refresh
node skills/fast-response-optimizer/scripts/cache-manager.js refresh

# Check cache status
node skills/fast-response-optimizer/scripts/cache-manager.js status

# Update message timestamp
node skills/fast-response-optimizer/scripts/cache-manager.js message

Make every response lightning fast ⚡

Usage Guidance
This skill implements caching and parallel execution as advertised, but it also reads many workspace files (SOUL.md, USER.md, AGENTS.md, SESSION-STATE.md, etc.) and exposes a helper that runs arbitrary shell commands. Before installing: (1) inspect the workspace files named in scripts to ensure they contain no secrets or tokens; (2) consider running the skill in an isolated environment (sandbox/container) if you will use it on a workspace with sensitive data; (3) if you don't need shell execution, remove or disable parallelExecCommands or restrict the code so it can't run arbitrary commands; (4) trust the source (github.com/opendolph) and review the code yourself or have a developer audit it. If you cannot perform these checks, treat the skill as risky and avoid installing on production environments.
Capability Assessment
Purpose & Capability
The name/description (reply-first, parallel calls, memory caching) aligns with the code: it implements cache loading, parallel execution helpers, and a bootstrap hook. However the parallel utilities include a function that runs arbitrary shell commands (parallelExecCommands using child_process.exec), which is not mentioned in the SKILL.md and is a more powerful capability than the description implies.
Instruction Scope
SKILL.md instructs auto-trigger on every message, scheduled 1-minute refresh, and caching of workspace memory files. The implementation reads multiple workspace files (SOUL.md, USER.md, MEMORY.md, AGENTS.md, SESSION-STATE.md, HEARTBEAT.md, WORKING.md) and writes cache files under a cache/ directory. That file I/O is consistent with 'memory file caching' but it gives the skill access to potentially sensitive workspace files. The SKILL.md does not call out the ability to run shell commands, but the code exposes that capability.
Install Mechanism
No install spec; files are included in the package. No remote downloads or installers are present, so there is no additional install-time network risk.
Credentials
The skill requests no environment variables, but it reads arbitrary workspace files and writes cache metadata. Reading AGENTS.md, SESSION-STATE.md and other workspace files can expose tokens, config, or secrets if they exist. The ability to execute shell commands (parallelExecCommands) expands the credential/privilege risk because a compromised or misused skill could run commands that read or transmit secrets.
Persistence & Privilege
The skill is not marked always:true and does not modify other skills or system-wide settings. It does update its own '.last-message' timestamp at bootstrap and writes cache files in the workspace, which is expected for a caching tool.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fast-response-optimizer
  3. After installation, invoke the skill by name or use /fast-response-optimizer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of fast-response-optimizer. - Implements "reply-first-then-process" for sub-second acknowledgment of incoming requests. - Supports parallel execution of independent tool calls to reduce processing time. - Adds in-memory file caching with scheduled (every 1 minute), message-triggered, and manual refresh options. - Stores active cache in SESSION-STATE.md and related files for efficient state handling. - Provides CLI scripts for cache refresh, status, and message timestamp management.
Metadata
Slug fast-response-optimizer
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Fast Response Optimizer?

Response speed optimizer - implements reply-first-then-process, parallel tool calls, and memory file caching. It is an AI Agent Skill for Claude Code / OpenClaw, with 148 downloads so far.

How do I install Fast Response Optimizer?

Run "/install fast-response-optimizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Fast Response Optimizer free?

Yes, Fast Response Optimizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Fast Response Optimizer support?

Fast Response Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Fast Response Optimizer?

It is built and maintained by jason-tiger (@opendolph); the current version is v1.0.0.

💬 Comments