name: orchestra-registry-foundation description: Design and maintain the Phase 01 Orchestra YAML registry, Rust core types, atomic save/load, and CLI bootstrap commands.
Objective
Build or modify the Orchestra registry as the single source of truth.
Use This Skill When
- Creating or changing
Codebase,Task,Skill,Subagent, orAgentConfigschema. - Implementing
orchestra init, project listing, or registry validation. - Debugging YAML parse/save failures, file permissions, or atomic writes.
Procedure
- Update core domain types first, then serialization, then CLI wiring.
- Keep all path handling with
PathBufand return typed errors. - Use atomic write in target directory (
.tmpthenrename). - Validate roundtrip serde for all changed structs.
- Verify Unix permission targets (dirs
0700, YAML0600).
Guardrails
- Never use
unwrap()/expect()in library crates. - Keep registry deterministic and human-readable.
- Emit actionable parse errors with file path and line context.
Done Criteria
cargo build --workspacepasses.cargo clippy --workspace -- -D warningspasses.- Roundtrip and error-path tests pass for registry flows.