Tidy OCaml code and add release metadata
Code improvements:
- Use String.starts_with/ends_with instead of manual prefix/suffix checks
- Consolidate ensure_claude_md/ensure_gitignore into ensure_file helper
- Simplify discover_packages, find_package, status with Result combinators
- Simplify get_branch using Option.bind
- Apply ocamlformat for consistent code style
Release metadata:
- Add LICENSE file (ISC)
- Add .ocamlformat configuration
- Ensure x-maintenance-intent is in opam file
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>