osop-optimize

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "osop-optimize" with this command: npx skills add archie0125/osop-optimize

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Canonry Setup

Agent-first AEO operating platform.

Registry SourceRecently Updated
4151arberx
Automation

Pilot Service Agents Entertainment

Games, manga/anime, trivia, and fandom APIs — PokeAPI, Jikan, CheapShark, misc. Use this skill when: 1. Pokémon / PokeAPI lookups 2. Anime or manga metadata...

Registry SourceRecently Updated
Automation

Pilot Service Agents Economics

Macroeconomic indicators — IMF DataMapper, World Bank, Eurostat SDMX, Coinbase reference prices. Use this skill when: 1. Country-level GDP, inflation, or une...

Registry SourceRecently Updated
Automation

Pilot Service Agents Flights

Aircraft tracking and aviation weather — ADS-B feeds (ICAO + bbox), airport directory, METAR/TAF/SIGMET. Use this skill when: 1. Live aircraft positions by I...

Registry SourceRecently Updated