hoc-writing-language
Which natural language a piece of writing is in — code, comments, a code example, a skill, a README, a document written for a reader — and the order that…
от openreachtech★ 17 звёзд на GitHub
Установить hoc-writing-language в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Writing Language
Which natural language a piece of writing is in. Every artifact resolves it the same way, in the same order, and the conventions for each kind of artifact refer here rather than settling it themselves.
The order that resolves it
- An explicit instruction. Where the requester names a language for the artifact, that is the language, whatever the conversation is in and whatever the kind's default would be.
- The language the artifact names for itself. A file or a directory that carries a language
code is written in that language:
README.ja.mdin Japanese,docs/ja/in Japanese. That includes the comments in its code examples — the examples ofREADME.ja.mdcarry Japanese comments, and the code lines match those ofREADME.mdwith only the comments differing. - The language an existing document is already written in. A document is edited in its own
language: an older repository's
README.mdwritten in Japanese stays in Japanese. This step is for prose; a comment in source takes the default for its kind, whatever the comments around it are written in. - The default for its kind, below.
The first step that answers settles it. A later step is never consulted to overturn an earlier one.
The default for each kind
| Kind | Default | Why |
|---|---|---|
| Code and identifiers | English, ASCII only (see /hoc-naming) |
Code is read by whoever maintains it, in any language |
| Comments, in source, in generated tests and in code examples | English | A code example illustrates the very code the rule governs |
SKILL.md and its references/ |
English | Every skill in a package reads the same way |
A new file without a language code, such as README.md or docs/en/ |
English | It is the default language file the others are translated from |
| A document written for a reader — a requirement definition, a progress document, a review or audit report, an acceptance report, a deployment runbook | The language the reader is using | A document nobody can read has not been delivered |
LICENSE |
The original text, unchanged | The text is the licence; a translation is not |
- The reader's language is the language of the request. Someone who asks for a requirement definition in Japanese gets it in Japanese; asked in English, it is in English.
- The reason the reader's language decides it. Writing a requirement definition in English for a team that works in Japanese means the one person who has to approve it reads it slowest — and approval is the step the document exists for.
Where this stops
- Which language files a README keeps, and when another one is added, belong to
/hoc-readme. Once a file exists, the language it is written in is resolved here. - How a comment is written, beyond its language, belongs to
/hoc-comments.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hoc-writing-language?
Which natural language a piece of writing is in — code, comments, a code example, a skill, a README, a document written for a reader — and the order that resolves it: an explicit instruction, then the language the artifact names for itself, then the language an existing document is already in, then the default for its kind. Use when about to write any of them, or when the language of one is in question. Which language files a README keeps belongs to the README convention.
Как установить скилл hoc-writing-language?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hoc-writing-language запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…