baoyu translate

Other Community

Skill notes

User Input Tools

When this skill prompts the user, follow this tool-selection rule (priority order): Prefer built-in user-input tools exposed by the current agent runtime — e.g., AskUserQuestion, request_user_input, clarify, ask_user, or any equivalent. Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question. Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.

Script Directory

Scripts in scripts/ subdirectory. {baseDir} = this SKILL.md's directory path. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values. Script · Purpose scripts/main.ts · CLI entry point. Default action splits markdown into chunks; also supports explicit chunk subcommand scripts/chunk.ts · Markdown chunking implementation used by main.ts and kept compatible for direct invocation

Preferences (EXTEND.md)

Check EXTEND.md in priority order — the first one found wins: Priority · Path · Scope 1 · .baoyu-skills/baoyu-translate/EXTEND.md · Project 2 · ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-translate/EXTEND.md · XDG 3 · $HOME/.baoyu-skills/baoyu-translate/EXTEND.md · User home

First-Time Setup (BLOCKING)

CRITICAL: When EXTEND.md is not found, you MUST run the first-time setup before ANY translation. This is a BLOCKING operation. Full reference: references/config/first-time-setup.md Use AskUserQuestion with all questions (target language, mode, audience, style, save location) in ONE call. After user answers, create EXTEND.md at the chosen location, confirm "Preferences saved to [path]", then continue.

Defaults

All configurable values in one place. EXTEND.md overrides these; CLI flags override EXTEND.md. Setting · Default · EXTEND.md key · CLI flag · Description Target language · zh-CN · target_language · --to · Translation target language Mode · normal · default_mode · --mode · Translation mode Audience · general · audience · --audience · Target reader profile

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Other
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@JimLiu · no license declared
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
macOS · Linux · Windows
Runtime requirements
Bun
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview baoyu-translate.preview
# Step 2: Materialize Source & Create Output Directory

Materialize source (file as-is, inline text/URL → save to `translate/{slug}.md`), then create output directory: `{source-dir}/{source-basename}-{target-lang}/`. Detect source language if `--from` not specified. Full details: [references/workflow-mechanics.md](references/workflow-mechanics.md) **Output directory contents** (all intermediate and final files go here): | File | Mode | Description | |------|------|-------------| | `translation.md` | All | Final translation (always this name) | | `01-analysis.md` | Normal, Refined | Content analysis (domain, tone, terminology) | | `02-prompt.md` | N

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.