ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

osop-optimize

Analyze .osoplog execution history to optimize workflows — finds slow steps and parallelization opportunities

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/archie0125/osop-optimize
Or

OSOP Workflow Optimizer

Improve a workflow based on its execution history.

Target workflow

$ARGUMENTS

What to do

  1. Read the .osop file specified in the argument

  2. Find execution logs — look for matching .osoplog.yaml files in sessions/ or the same directory

  3. Aggregate stats from all matching logs:

    • Per-node: average duration, failure rate, timeout rate, common errors
    • Overall: success rate, average total duration, run count
  4. Identify issues:

    • Slow steps: nodes with avg_duration > 5s
    • Failure hotspots: nodes with failure_rate > 10%
    • Bottlenecks: nodes that are both slow AND unreliable
    • Missing retries: external call nodes (api, cli, agent, infra, mcp) without retry_policy
    • Missing timeouts: external call nodes without timeout_sec
    • Parallelization: sequential chains of 3+ independent nodes
    • Missing error handling: high-risk nodes without fallback/error edges
  5. Generate suggestions and present as a table:

    | Type | Target Node | Description | Priority |
    |------|-------------|-------------|----------|
    | add_retry | fetch-data | 35% failure rate, add retry with backoff | HIGH |
    | parallelize | scan, test, lint | Independent steps, run in parallel | MEDIUM |
    
  6. If user approves, apply changes to the .osop file

  7. Show diff of changes before writing

Self-optimization loop

This skill enables the feedback loop:

Execute → Log (.osoplog) → Analyze (this skill) → Improve (.osop) → Re-execute → Better results

Each iteration makes the workflow more resilient and efficient.

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-archie0125-osop-optimize": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.