Skip to content
Back to skills

Analyze Latest Policy Sweep

ASecurity

Analyze latest policy analysis sweep runs (*_policy_analysis_*) by comparing episodes/summary metrics, diagnostics, and video artifacts; generate a concise markdown report and optional frame snapshots.

  • 71 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
toolsgo

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add FDU-INS/Insurance-Skills --skill analyze-latest-policy-sweep --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze Latest Policy Sweep?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze Latest Policy Sweep
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fdu-ins-analyze-latest-policy-sweep/badge)](https://www.skillsdirectory.com/skills/fdu-ins-analyze-latest-policy-sweep)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyze-latest-policy-sweep
description: Analyze latest policy analysis sweep runs (*_policy_analysis_*) by comparing episodes/summary metrics, diagnostics, and video artifacts; generate a concise markdown report and optional frame snapshots.
---

# Analyze Latest Policy Sweep

Use this skill when asked to compare recent `*_policy_analysis_*` benchmark runs (fast_pysf_planner, PPO, ORCA, etc.) and produce a summary report with diagnostics and video links.

## Quick start
1) Confirm run directories exist and contain `episodes.jsonl` + `summary.json`.
2) Load metrics from `episodes.jsonl` and aggregates from `summary.json`.
3) Produce a report in `specs/409-planner-comparison/`.

## Required report contents
- Aggregate metrics table (success rate, collision rate, time_to_goal_norm, avg_speed, near_misses, comfort_exposure, energy, jerk/curvature raw + filtered if present).
- Worst collision scenarios (top 5) per run.
- Lowest success scenarios (bottom 5) per run.
- Top problem episodes (score = collisions*10 + comfort*2 + failure) with video paths.
- Diagnostics: path_efficiency saturation, `shortest_path_len` presence, low-speed filter behavior (ε=0.1).

## Optional
- Extract frames (25/50/75% of duration) for top problem episodes using ffmpeg into `output/analysis/<report_id>/frames/` and list PNG paths in the report.

## Template
Use `specs/409-planner-comparison/analyze_latest_policy_sweep_prompt.md` as a template if you need a consistent structure.

## Video naming convention
`output/recordings/<run_dir>/<scenario>_seed<seed>_<policy>.mp4`

## Diagnostics details
- **Path-efficiency saturation**: fraction with `path_efficiency >= 0.999` (clipped at 1.0).
- **Shortest path presence**: ensure `shortest_path_len` is present in metrics when available.
- **Low-speed filter**: report `low_speed_frac` and filtered metrics (`jerk_mean_eps0p1`, `curvature_mean_eps0p1` when present). Reason: curvature divides by |v|^3; near-zero speed inflates noise.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…