Skip to content

[codex] Document real-newline moon run snippets - #63

Merged
bobzhang merged 1 commit into
mainfrom
codex/document-moon-run-e-newlines
Jul 5, 2026
Merged

[codex] Document real-newline moon run snippets#63
bobzhang merged 1 commit into
mainfrom
codex/document-moon-run-e-newlines

Conversation

@bobzhang

@bobzhang bobzhang commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Document the safe pattern for multi-line moon run -e snippets that need imports.

Why

Shell snippets written as single-quoted strings with literal \n pass backslash characters to MoonBit instead of real line breaks. That makes inline imports fail in a way that looks like a MoonBit parsing/import issue rather than a shell quoting issue.

Validation

  • Reviewed the SKILL.md diff for scope and Markdown placement.
  • Ran the documented moon run --target native -e "$(cat <<'EOF' ... EOF)" pattern successfully.
  • Ran quick_validate.py against the skill using a temporary Python virtualenv with PyYAML installed: Skill is valid!.

@bobzhang
bobzhang marked this pull request as ready for review July 5, 2026 13:49
@bobzhang
bobzhang merged commit f957f4a into main Jul 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant