← 返回 Skills 市场
j3ffyang

blog-polish-en-astro-cn

作者 Jeff Yang · GitHub ↗ · v1.0.12 · MIT-0
cross-platform ⚠ suspicious
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install blog-polish-en-astro-cn
功能描述
Polish and translate a technical blog draft into a 1000–1200 word, 4-5 section Markdown article in English and Simplified Chinese (zh-CN), preserving technic...
使用说明 (SKILL.md)

title: "${title:-Generated by OpenClaw}" date: $(date -Iseconds) tags: ${tagsYAML} image: ./hero.png

$(cat "$polishedFile") EOF

  mkdir -p "${outputDir}/${ts}-${slug}/images/"
  save_state outputPath "$outputFile"
  • name: finalize description: Emit polished path only run: |

outputPath=$(load_state outputPath)

jq -n --arg outputPath "$outputPath" '{ outputPath: $outputPath }'

    engOutputPath=$(load_state engOutputPath)
    chnOutputPath=$(load_state chnOutputPath)
    outputPath=$(load_state outputPath)
    jq -n \
      --arg engOutputPath "$engOutputPath" \
      --arg chnOutputPath "$chnOutputPath" \
      --arg astroPath "$outputPath" \
      '{ engOutputPath: $engOutputPath, chnOutputPath: $chnOutputPath, astroPath: $astroPath }'

Blog Polish (en-US and zh-CN)

This skill polishes a technical blog draft and translates it to English and then 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.md
  • outputDir: ~/.openclaw/workspace/contentPolished/
  • Output filename: ${ts}-polished.md or ${ts}-${subject}.md

Workflow Summary

Draft → Check → Polish (EN) → Translate (ZH) → Convert EN to Astro format → Emit path JSON.

  1. Resolve paths + create timestamp (date +"%y%m%d%H%M")
  2. Read draft from draftPath
  3. Polish English: Fix grammar/spelling, improve clarity, structure into 4-5 sections, target 1000-1200 words
  4. Translate to zh-CN: Preserve code blocks, inline code, technical terms (openclaw, skill, cli)
  5. Save polished markdown to ${outputDir}/${ts}-polished.md
  6. Return: { outputPath: "/full/path/to/file.md" }

Output

Example

Input: ~/.openclaw/workspace/contentDraft/latestDraft.md
{ "outputPath": "~/.openclaw/workspace/contentPolished/2603142134-openclaw-skills.md" }

安全使用建议
This skill is primarily an instruction-only workflow that reads a markdown draft from your filesystem and writes polished/translated markdown files. Before installing or running: (1) Confirm the draftPath and outputDir defaults point where you expect (some included files contain a hardcoded /home/jeff path); update them if necessary. (2) Ensure jq is available if your runtime relies on the SKILL metadata (the finalize step calls jq to emit JSON). (3) Do not put secrets or sensitive credentials inside drafts — the content is sent to the LLM for polishing/translation. (4) Because this is an LLM-driven skill, consider which model/provider will be used and review its privacy policy if draft contents are sensitive. Other than the minor metadata/path inconsistencies, the skill's declared purpose matches what it does.
功能分析
Type: OpenClaw Skill Name: blog-polish-en-astro-cn Version: 1.0.12 The skill bundle contains a shell injection vulnerability in SKILL.md within the 'init' workflow step, where 'eval echo' is used on the user-provided 'outputDir' input to perform tilde expansion without sanitization. This allows for arbitrary command execution if a crafted directory path is provided. While the overall intent appears to be a legitimate utility for polishing and translating blog drafts, the inclusion of this risky shell pattern and the presence of hardcoded absolute paths for a specific user ('jeff') in SKILL_eng.md suggest poor security practices.
能力评估
Purpose & Capability
The name/description (polish + translate a blog draft and produce an Astro-compatible English file) matches the workflow: read a draft, call the LLM to polish/translate, write out markdown files. The only mismatch is a metadata note that the skill 'requires' jq while the registry summary reported no required binaries — jq is actually used in finalize steps to emit JSON and is reasonable for this purpose.
Instruction Scope
Instructions explicitly read the draftPath file and write outputs to outputDir (creating directories). This is expected. There is no instruction to read unrelated system files, access credentials, or call external endpoints other than invoking the LLM. Note: some included files reference a hardcoded user path (/home/jeff/...) which is likely a leftover and should be corrected or checked before use.
Install Mechanism
No install spec or code files are present (instruction-only), so nothing is downloaded or written during install. Low install risk.
Credentials
The skill does not request environment variables, credentials, or config paths. It operates on user-specified file paths. This is proportionate to a local polishing/translation tool. Reminder: the SKILL metadata lists jq as a required tool — not a credential but a binary dependency.
Persistence & Privilege
always:false and no modifications to other skills or system-wide settings. The skill creates files under the user-specified outputDir only, which is appropriate for its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install blog-polish-en-astro-cn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /blog-polish-en-astro-cn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.12
blog-polish-en-astro-cn v1.0.12 - First public release of the skill. - Polishes technical blog drafts in English, targeting clarity, structure, and length (1000–1200 words, 4–5 sections). - Translates the polished blog to Simplified Chinese (zh-CN), preserving technical terms and code formatting. - Converts the final English blog into Astro-compatible Markdown with standard YAML frontmatter. - Outputs all file paths (English, Chinese, Astro version) as a JSON object.
元数据
Slug blog-polish-en-astro-cn
版本 1.0.12
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

blog-polish-en-astro-cn 是什么?

Polish and translate a technical blog draft into a 1000–1200 word, 4-5 section Markdown article in English and Simplified Chinese (zh-CN), preserving technic... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 blog-polish-en-astro-cn?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install blog-polish-en-astro-cn」即可一键安装,无需额外配置。

blog-polish-en-astro-cn 是免费的吗?

是的,blog-polish-en-astro-cn 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

blog-polish-en-astro-cn 支持哪些平台?

blog-polish-en-astro-cn 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 blog-polish-en-astro-cn?

由 Jeff Yang(@j3ffyang)开发并维护,当前版本 v1.0.12。

💬 留言讨论