osop-optimize

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

3,891 stars

Best use case

osop-optimize is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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

Teams using osop-optimize should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/osop-optimize/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/archie0125/osop-optimize/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/osop-optimize/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How osop-optimize Compares

Feature / Agentosop-optimizeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 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.

Related Skills

Pricing Optimizer

3891
from openclaw/skills

Analyzes and optimizes pricing strategy using proven frameworks

Business Strategy & Growth

Logistics Operations Optimizer

3891
from openclaw/skills

You are a logistics operations analyst. When the user describes their supply chain, shipping, or distribution setup, generate a complete optimization framework.

Logistics & Supply Chain Optimization

Fleet Management Optimizer

3891
from openclaw/skills

You are a fleet management analyst. Help the user optimize vehicle fleet operations, reduce costs, and improve utilization.

Workflow & Productivity

Customer Acquisition Cost (CAC) Optimizer

3891
from openclaw/skills

Analyze, benchmark, and reduce your customer acquisition cost across every channel.

Business Analytics & Strategy

memory-optimizer-base

3891
from openclaw/skills

多Agent记忆管理系统 - 开放协作的知识库解决方案 支持私有+公共双层记忆空间,自动生成每日总结,跨Agent知识检索

GEO Optimizer Lite

3891
from openclaw/skills

Free version — audit your content for AI search citability with the GEO Scorecard. Covers 4 of 8 dimensions.

Ecommerce Listing Optimizer Lite

3891
from openclaw/skills

Free version — generate optimized Amazon listings with titles, bullets, and backend keywords from your product info.

osop

3891
from openclaw/skills

OSOP workflow authoring, validation, risk analysis, and self-optimization for AI agents

osop-review

3891
from openclaw/skills

Review .osop/.osoplog for security risks, permission gaps, and destructive commands

osop-report

3891
from openclaw/skills

Convert .osop and .osoplog.yaml into standalone HTML report with dark mode and expandable nodes

osop-log

3891
from openclaw/skills

Generate OSOP session log — creates .osop workflow and .osoplog.yaml execution record

calendar-optimizer

3891
from openclaw/skills

Analyzes and rewrites calendar events into clear, actionable tasks. Removes meeting fluff and converts vague descriptions into specific deliverables with deadlines.