agentleFS
JacobinwweyJacobinwwey/notemdpro/skills/text-translator/SKILL.md

text-translator

Skill2 starsChanged 38 days agoMITView on GitHub

Use when translating markdown notes to a different language while preserving formatting, images, and special elements

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Multi-language vault: Create translated versions of notes

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

NoteMD Pro - Translation

Overview

This feature translates markdown notes to different languages using LLM. It supports single file translation, batch folder translation, and preserves markdown formatting and special elements like images.

When to Use

  • Multi-language vault: Create translated versions of notes
  • Language learning: Translate content for study
  • International collaboration: Share notes across languages
  • Content localization: Adapt content for different audiences

Function Call Chain

translateFile (translate.ts)
├── read_file(inputPath)
├── splitContent(content, settings)
├── getProviderForTask('translate', settings)
├── callLLM(provider, prompt, chunk)
│   └── Translated chunk
├── join translated chunks
├── save translated file
│   └── write_file(outputPath, content)
└── open file (if enabled)

batchTranslateFolder
├── filter .md files in folder
├── createConcurrentProcessor
├── processFile for each file
└── ProgressModal reporting

Key Functions (from translate.ts)

translateFile

Translates a single file to target language.

export async function translateFile(
  settings: NotemdSettings,
  inputPath: string,
  targetLanguage: string,
  progressReporter: ProgressReporter,
  openFile?: boolean,
  signal?: AbortSignal,
): Promise<string | null>;
// Returns: Path to translated file

batchTranslateFolder

Translates all markdown files in a folder.

export async function batchTranslateFolder(
  settings: NotemdSettings,
  folderPath: string,
  targetLanguage: string,
): Promise<void>;

Settings

Translation Settings

SettingDescription
translateProviderLLM provider for translation
translateModelModel for translation

Output Settings

SettingDescription
useCustomTranslationSuffixUse custom filename suffix
translationCustomSuffixCustom suffix (e.g., "_es", "_fr")
useCustomTranslationSavePathUse custom save path
translationSavePathCustom save path

Language Settings

SettingDescription
languageDefault language code
availableLanguagesList of supported languages

Prompt Template (translate)

From promptUtils.ts:

Translate the following text to {LANGUAGE}.
Only output the translated text.
Do not include the original text.
Note: For special image formats, please retain them as they are,
for example: ![](images/3c6d56a5dd52751121cefd4868e7b3a3ceb929b566eb63fc931a335d85a0095e.jpg)

Text to translate:
{TEXT}

Supported Languages

The plugin supports multiple languages including:

  • English (en)
  • Spanish (es)
  • French (fr)
  • German (de)
  • Chinese (zh)
  • Japanese (ja)
  • Korean (ko)
  • And more...

Output File Naming

SettingExample InputOutput
Default suffixnote.mdnote_es.md
Custom suffixnote.mdnote.es.md
Custom pathnote.md + translations/translations/note.md

Error Handling

Common Errors

  1. No provider configured
    • Error: "No provider configured for translation"
    • Solution: Configure translate provider in settings
  2. Empty file
    • Warning: "File is empty"
    • Solution: Check source file content
  3. Translation timeout
    • Error: "Translation cancelled"
    • Solution: Reduce chunk size, check network

Cancellation

  • Users can cancel translation via AbortSignal
  • Already translated chunks are preserved
  • Partial results not saved on cancellation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.