Echo-aloha/asphalt-codex-skills-5 / skills/pfc-postprocessing
pfc-postprocessing
VerifiedPost-process PFC 5.0 asphalt CSV and image exports into reproducible curves, fields, rose diagrams, animations, and summary tables without relying on a local PFC installation.
scripts/export_animation_frames.py
View on GitHubfrom __future__ import annotations
from pathlib import Path
import argparse
import re
import shutil
from _common import ensure_dir
def sort_key(path: Path) -> tuple[int, str]:
match = re.search(r"(\d+)(?!.*\d)", path.stem)
return (int(match.group(1)) if match else 10**9, path.name)
def main() -> None:
parser = argparse.ArgumentParser(description="Normalize animation frame names into frame_0001.png order")
parser.add_argument("--input-dir", type=Path, required=True)
parser.add_argument("--output-dir", type=Path, required=True)
parser.add_argument("--glob", default="*.png")
args = parser.parse_args()
output_dir = ensure_dir(args.output_dir)
frames = sorted(args.input_dir.glob(args.glob), key=sort_key)
if not frames:
raise FileNotFoundError(f"No frames matched {args.glob} in {args.input_dir}")
manifest = output_dir / "frames_manifest.csv"
with manifest.open("w", encoding="utf-8", newline="") as handle:
handle.write("index,original,new_name\n")
for index, source in enumerate(frames, start=1):
new_name = f"frame_{index:04d}.png"
shutil.copyfile(source, output_dir / new_name)
handle.write(f"{index},{source.name},{new_name}\n")
print(output_dir)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |