LeoYeAI/agent-master-skills / skills/baoyu-translate
baoyu-translate
FlaggedTranslates articles and documents between languages with three modes - quick (direct), normal (analyze then translate), and refined (analyze, translate, review, polish). Supports custom glossaries and terminology consistency via EXTEND.md. Use when user asks to "translate", "翻译", "精翻", "translate article", "translate to Chinese/English", "改成中文", "改成英文", "convert to Chinese", "localize", "本地化", or needs any document translation. Also triggers for "refined translation", "精细翻译", "proofread translation", "快速翻译", "快翻", "这篇文章翻译一下", or when a URL or file is provided with translation intent.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.3 KB |
| _meta.json | config | 815 B |
| references/config/extend-schema.md | markdown | 3.4 KB |
| references/config/first-time-setup.md | markdown | 4.4 KB |
| references/glossary-en-zh.md | markdown | 927 B |
| references/refined-workflow.md | markdown | 13.7 KB |
| references/subagent-prompt-template.md | markdown | 6.5 KB |
| references/workflow-mechanics.md | markdown | 812 B |
| scripts/bun.lock | other | 1.4 KB |
| scripts/chunk.ts | script | 8.2 KB |
| scripts/main.ts | script | 1.4 KB |
| scripts/package.json | manifest | 110 B |
references/workflow-mechanics.md
View on GitHub# 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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |