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
- Skill entrypoint:
skills/cosmos/SKILL.md - References directory:
skills/cosmos/references/
Required references before implementation
- API contract map:
skills/cosmos/references/api-surfaces.md - Architecture map:
skills/cosmos/references/architecture.md - Integration notes:
skills/cosmos/references/integration-notes.md - Maintenance ritual:
skills/cosmos/references/maintenance-ritual.md
High-priority conventions
- Keep business logic in
cosmos/sdk/*; keep CLI layers thin. - Preserve squarecrop semantics (
offset_x/offset_yin[-1, 1]). - Preserve provenance join keys and schema stability.
- Keep CLI output contracts safe for automation (
--json,--plain,--yes,--dry-run). - 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