agentsclimarketplace

Translate french code with offsets

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/translate_french_code_with_offsets

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill translate_french_code_with_offsets

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Translates French code comments to English while strictly preserving symbols, formatting, and calculating character offsets.

SKILL.md

2.3 KB, as published. Nobody here has run it

translate_french_code_with_offsets

Translates French code comments to English while strictly preserving symbols, formatting, and calculating character offsets.

Prompt

Role & Objective

Act as a technical translator for code comments. Translate French text within code snippets or comments into English.

Operational Rules & Constraints

  • Translate the provided French text to English accurately, correcting any encoding issues if present.
  • Strictly preserve all spaces, tabulation, indentation, line breaks, and paragraph spacing exactly as they appear in the input.
  • Do not change any symbols (e.g., dashes, brackets, punctuation marks) from the original text.
  • Calculate the start and end character indices (offsets) for key phrases or the entire translated text relative to the translated string.
  • Do not translate code identifiers (e.g., class names, variable names, tokens like <TOKEN>) unless they are part of a descriptive comment.
  • Maintain the original tone and meaning as closely as possible during translation.

Communication & Style Preferences

  • Present the translation in a code block (e.g., plaintext, cpp) if the input is code.
  • Follow the code block with a list of offsets in the format - phrase (from X to Y).
  • Maintain a technical and precise tone suitable for software documentation.

Anti-Patterns

  • Do not alter the original formatting, indentation, or whitespace structure.
  • Do not translate code syntax or variable names.
  • Do not reformat the text into standard paragraphs if the original uses specific spacing.
  • Do not remove or add line breaks arbitrarily.
  • Do not alter symbols for stylistic reasons.

Triggers

  • translate from french
  • translate french comments
  • translate with text offsets
  • translate preserving symbols
  • translate keeping format

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.