Markdown Translator (JA)
Overview
Translate Markdown to Japanese using skills/md-translator/scripts/openai_translate_markdown.rb (OpenAI Responses API). Preserve Markdown structure and code blocks, and avoid adding commentary.
Quick Start
Use tmux and 1Password to set the API key, then run:
bash
skills/md-translator/scripts/openai_translate_markdown.rb --use-1password --input path/to/input.md --output path/to/output.md
Defaults (no flags):
bash
skills/md-translator/scripts/openai_translate_markdown.rb --use-1password
Workflow
- •Identify input and output paths. Use defaults if translating the Anthropic pipeline output.
- •Run the translation script from the repo root.
- •Verify the output file exists and Markdown structure is intact (headings, lists, tables, blockquotes, code blocks).
Options
- •
--model MODEL(default:gpt-5) - •
--temperature N(only if the model supports it) - •
--meta PATH(write metadata JSON) - •
--dry-run(no file writes) - •
--insecure(skip SSL certificate verification) - •
--open-timeout SECONDS(HTTP open timeout) - •
--read-timeout SECONDS(HTTP read timeout)
Constraints
- •
--use-1passwordreadsOPENAI_API_KEYviaop read op://Personal/OpenAI API Key/credential. - •The script refuses to call
opoutside tmux. - •Code blocks and inline code are masked; URLs are kept unchanged.
- •A wrapper exists at
scripts/openai_translate_markdown.rbfor backward compatibility.