mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-12 05:51:44 +08:00
fe404c493d
- 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
812 B
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.md→posts/article-zh/translate/ai-future.md→translate/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.