- name
- blog-polish-zhcn
- description
- Polish and translate a technical blog draft into a 1200–1400 word, 4-5 section Markdown article in Simplified Chinese (zh-CN), preserving technical terms and code blocks.
- author
- Jeff Yang
- version
- 1.0.13
- tags
- [openclaw, clawhub, blog, polish, translate, zh-cn, markdown]
- metadata
- openclaw
- schema_version
- 1.1
- type
- skill
- requires
- ["jq"]
- platforms
- ["linux", "darwin"]
- entrypoint
- skill
- inputSchema
- type
- object
- properties
- draftPath
- type
- string
- description
- Path to the draft markdown file.
- default
- ~/.openclaw/workspace/contentDraft/latestDraft.md
- outputDir
- type
- string
- description
- Directory where polished file is saved.
- default
- ~/.openclaw/workspace/contentPolished/
- required
- ["draftPath", "outputDir"]
- outputSchema
- type
- object
- properties
- outputPath
- type
- string
- description
- Path to the final polished markdown file.
- required
- ["outputPath"]
- workflow
- description
- Set defaults and create timestamp
- run
- |
- description
- Check if draftPath exists
- run
- |
- description
- Load draft file content into memory
- run
- |
- description
- LLM: Polish grammar → Translate zh-CN → Produce title slug + content
- inputs
- ["draftText"]
- outputs
- ["titleSlug", "polishedText"]
- llm
- true
- description
- Define output filename with timestamp and title slug
- run
- |
- description
- Save polished markdown to disk
- run
- |
- description
- Emit polished path only
- run
- |
Blog Polish (zh-CN)
This skill polishes a technical blog draft and translates it to Simplified Chinese while preserving technical accuracy.
When to Use
Use when the user asks to polish/translate a technical blog draft to zh-CN without images. Triggers: "polish my draft", "translate blog to Chinese", "enhance latestDraft.md".
Defaults
draftPath:~/.openclaw/workspace/contentDraft/latestDraft.mdoutputDir:~/.openclaw/workspace/contentPolished/- Output filename:
${ts}_${titleSlug}.md
Workflow Summary
- Resolve paths + create timestamp (
date +"%y%m%d%H%M") - Read draft from
draftPath - Polish English: Fix grammar/spelling, improve clarity, structure into 4-5 sections, target 1000-1200 words
- Translate to zh-CN: Preserve code blocks, inline code, technical terms (
openclaw,skill,cli) - Save polished markdown to
${outputDir}/${ts}_${titleSlug}.md - Return:
{ outputPath: "/full/path/to/file.md" }
Output
The skill returns a JSON object with a single property:
outputPath: path to the generated polished article.
Example
Input: ~/.openclaw/workspace/contentDraft/latestDraft.md Example Output
{ "outputPath": "~/.openclaw/workspace/contentPolished/2603142134-openclawSkills.md" }