Files
baoyu-skills/skills/baoyu-translate/references/workflow-mechanics.md
T
Jim Liu 宝玉 fe404c493d feat(baoyu-translate): extract workflow mechanics, expand triggers, and save frontmatter in chunks
- Extract Step 2 materialization details to references/workflow-mechanics.md
- Expand description trigger keywords (改成中文, 快翻, 本地化, etc.)
- Add proactive warning for long content in quick mode
- Save frontmatter to chunks/frontmatter.md in chunk.ts
- Fix step number references in upgrade prompt
- Simplify refined-workflow draft step to reference SKILL.md principles
2026-03-06 01:55:18 -06:00

812 B

Workflow Mechanics

Details for source materialization, output directory creation, and conflict resolution.

Materialize Source

Input Type Action
File Use as-is (no copy needed)
Inline text Save to translate/{slug}.md
URL Fetch content, save to translate/{slug}.md

{slug}: 2-4 word kebab-case slug derived from content topic.

Create Output Directory

Create a subdirectory next to the source file: {source-dir}/{source-basename}-{target-lang}/

Examples:

  • posts/article.mdposts/article-zh/
  • translate/ai-future.mdtranslate/ai-future-zh/

Conflict Resolution

If the output directory already exists, rename the existing one to {name}.backup-YYYYMMDD-HHMMSS/ before creating the new one. Never overwrite existing results.