Skip to content

Cosmos Skill

This page summarizes the in-repo Cosmos skill package used by agent operators.

Why it matters

Cosmos is CLI-first and automation-heavy. The skill captures canonical workflows, contracts, and maintenance rules so feature work stays aligned across:

  • CLI surfaces (cosmos, squarecrop)
  • SDK entry points (cosmos.sdk.*)
  • ffmpeg/encoder behavior
  • provenance fields and schema stability

Canonical source

Required references before implementation

High-priority conventions

  1. Keep business logic in cosmos/sdk/*; keep CLI layers thin.
  2. Preserve squarecrop semantics (offset_x/offset_y in [-1, 1]).
  3. Preserve provenance join keys and schema stability.
  4. Keep CLI output contracts safe for automation (--json, --plain, --yes, --dry-run).
  5. Treat skill freshness as a release-quality requirement, not optional docs polish.

Release checklist linkage

When CLI/SDK/provenance behavior changes, update both docs and skill references in the same lane:

  • docs pages under docs/
  • skill entrypoint and references under skills/cosmos/
  • release notes/changelog as applicable