Agent SkillsEcoPasteHub/EcoPaste › sync-zh-changelog

sync-zh-changelog

GitHub

将EcoPaste版本更新日志从英文同步至中文,确保术语一致、结构验证无误。

.agents/skills/sync-zh-changelog/SKILL.md EcoPasteHub/EcoPaste

Trigger Scenarios

用户显式调用 $sync-zh-changelog 要求生成、翻译、更新或验证中文版更新日志

Install

npx skills add EcoPasteHub/EcoPaste --skill sync-zh-changelog -g -y
More Options

Non-standard path

npx skills add https://github.com/EcoPasteHub/EcoPaste/tree/master/.agents/skills/sync-zh-changelog -g -y

Use without installing

npx skills use EcoPasteHub/EcoPaste@sync-zh-changelog

指定 Agent (Claude Code)

npx skills add EcoPasteHub/EcoPaste --skill sync-zh-changelog -a claude-code -g -y

安装 repo 全部 skill

npx skills add EcoPasteHub/EcoPaste --all -g -y

预览 repo 内 skill

npx skills add EcoPasteHub/EcoPaste --list

SKILL.md

Frontmatter
{
    "name": "sync-zh-changelog",
    "description": "Synchronize an EcoPaste release section from CHANGELOG.md into CHANGELOG.zh-CN.md with project terminology and structural validation. Use when the user explicitly invokes $sync-zh-changelog or asks to generate, translate, update, or verify the Chinese changelog for a release."
}

Sync Chinese Changelog

Synchronize one EcoPaste release from CHANGELOG.md to CHANGELOG.zh-CN.md without changing release metadata or unrelated files.

Trellis routing

  • Treat an explicit $sync-zh-changelog invocation as the user's standing choice to skip Trellis task creation for this narrow documentation change. Do not ask again, and do not create, activate, or archive a Trellis task.
  • When this skill is selected implicitly from natural-language intent, follow the normal Trellis task-creation routing.
  • Still respect AGENTS.md, the dirty worktree, and applicable release specs.

Workflow

  1. Read both changelog files before editing. Use the version named by the user; otherwise select the first release section in CHANGELOG.md.

  2. If that version already exists in CHANGELOG.zh-CN.md, update it in place. Otherwise insert it immediately after the # 更新日志 title. Never create a duplicate section.

  3. Translate release prose and headings into concise Simplified Chinese. Search src/locales/zh-CN/, src/locales/en-US/, and existing Chinese changelog entries with rg when product terminology is unclear.

  4. Preserve the source release header's version, compare URL, date, section order, entry order, issue numbers, commit hashes, and all link targets. Translate only human-readable prose. Keep platform and product names such as EcoPaste, macOS, Windows, Token, AWS Key, and JWT consistent with the UI.

  5. Edit only CHANGELOG.zh-CN.md. Do not modify CHANGELOG.md, version files, release configuration, or unrelated dirty changes. Do not commit or push.

  6. Validate the result from the repository root:

    python3 .agents/skills/sync-zh-changelog/scripts/check_sync.py
    git diff --check -- CHANGELOG.zh-CN.md
    

    Pass --version <version> to validate a user-selected non-latest release.

  7. Fix every validation error, rerun both checks, then report the synchronized version and validation result.

Translation headings

Use these established mappings when the source headings occur:

  • ✨ Features✨ 新功能
  • 🐛 Bug Fixes🐛 问题修复
  • ⚡️ Performance⚡️ 性能优化
  • ⏪ Reverts⏪ 回退
  • ⚠️ Upgrade Notice⚠️ 升级说明

For an unfamiliar heading, translate it faithfully while preserving any emoji and its position.

Version History

  • 5139d30 Current 2026-08-20 17:52

Same Skill Collection

.agents/skills/trellis-before-dev/SKILL.md
.agents/skills/trellis-brainstorm/SKILL.md
.agents/skills/trellis-break-loop/SKILL.md
.agents/skills/trellis-channel/SKILL.md
.agents/skills/trellis-check/SKILL.md
.agents/skills/trellis-continue/SKILL.md
.agents/skills/trellis-finish-work/SKILL.md
.agents/skills/trellis-spec-bootstrap/SKILL.md
.agents/skills/trellis-start/SKILL.md
.agents/skills/trellis-update-spec/SKILL.md
.claude/skills/trellis-before-dev/SKILL.md
.claude/skills/trellis-brainstorm/SKILL.md
.claude/skills/trellis-break-loop/SKILL.md
.claude/skills/trellis-channel/SKILL.md
.claude/skills/trellis-check/SKILL.md
.claude/skills/trellis-spec-bootstrap/SKILL.md
.claude/skills/trellis-update-spec/SKILL.md
.cursor/skills/trellis-before-dev/SKILL.md
.cursor/skills/trellis-brainstorm/SKILL.md
.cursor/skills/trellis-break-loop/SKILL.md
.cursor/skills/trellis-channel/SKILL.md
.cursor/skills/trellis-check/SKILL.md
.cursor/skills/trellis-spec-bootstrap/SKILL.md
.cursor/skills/trellis-update-spec/SKILL.md
.github/skills/trellis-before-dev/SKILL.md
.github/skills/trellis-brainstorm/SKILL.md
.github/skills/trellis-break-loop/SKILL.md
.github/skills/trellis-channel/SKILL.md
.github/skills/trellis-check/SKILL.md
.github/skills/trellis-spec-bootstrap/SKILL.md
.github/skills/trellis-update-spec/SKILL.md
.kiro/skills/trellis-before-dev/SKILL.md
.kiro/skills/trellis-brainstorm/SKILL.md
.kiro/skills/trellis-break-loop/SKILL.md
.kiro/skills/trellis-channel/SKILL.md
.kiro/skills/trellis-check/SKILL.md
.kiro/skills/trellis-continue/SKILL.md
.kiro/skills/trellis-finish-work/SKILL.md
.kiro/skills/trellis-spec-bootstrap/SKILL.md
.kiro/skills/trellis-update-spec/SKILL.md
.opencode/skills/trellis-before-dev/SKILL.md
.opencode/skills/trellis-brainstorm/SKILL.md
.opencode/skills/trellis-break-loop/SKILL.md
.opencode/skills/trellis-channel/SKILL.md
.opencode/skills/trellis-check/SKILL.md
.opencode/skills/trellis-spec-bootstrap/SKILL.md
.opencode/skills/trellis-update-spec/SKILL.md
.agents/skills/trellis-meta/SKILL.md
.agents/skills/trellis-session-insight/SKILL.md

Metadata

Files
0
Version
5139d30
Hash
8c9d7767
Indexed
2026-08-20 17:52

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 21:47
浙ICP备14020137号-1 $Гость$