Files
Claude 7d1ae695ae refactor: split skill rendering and patching out of the writer, loop over generated hosts
write/writer.py was 719 lines covering templates, rendering, patch
merging, corrections, storage, host installs and the CLI. Rendering now
lives in write/render.py and patch/correction handling in write/patch.py;
the writer re-exports those names so tools/skill_writer.py importers
keep working.

The OpenClaw and Codex install branches after create/update were two
copies of the same code; they are one loop over a small host table. The
flags, defaults and printed lines are unchanged.

tests/test_generated_output_golden.py records a full run (create,
update, correction, rollback, list, every installer) made with the code
before this refactor and checks the refactored code writes the same
files and prints the same output.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N65qP8LxH1kiQynvqf5JLf
2026-10-13 05:56:50 +00:00
..