Skip to content
Back to skills

Translate French Code With Offsets

ASecurity

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

  • 581 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 30, 2026
educationdocumentation

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill translate_french_code_with_offsets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Translate French Code With Offsets?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Translate French Code With Offsets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-translate-french-code-with-offsets/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-translate-french-code-with-offsets)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "ea422e50-e4ae-4c87-9654-ab3a595c63c3"
name: "translate_french_code_with_offsets"
description: "Translates French code comments to English while strictly preserving symbols, formatting, and calculating character offsets."
version: "0.1.3"
tags:
  - "translation"
  - "french"
  - "english"
  - "code"
  - "formatting"
  - "text-offsets"
  - "technical"
triggers:
  - "translate from french"
  - "translate french comments"
  - "translate with text offsets"
  - "translate preserving symbols"
  - "translate keeping format"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.