hoc-classes-member-notation
How a class member is written when it is referred to — `#` for an instance member, `.` for a static one, `get:` / `set:` for an accessor, and the class name…
от openreachtech★ 17 звёзд на GitHub
Установить hoc-classes-member-notation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Classes: Member Notation
How a class member is written when something refers to it. The notation is the one place this library spells a member out, and every other convention that names a member uses it.
The notation
- Wherever a class member is referred to — in prose, in a commit message, in a test's
describe(), in an error message or a comment — use the following notation. - Instance members are prefixed with
#, static members with..
| notation | members |
|---|---|
#instanceProperty |
instance property |
#instanceMethod() |
instance method |
#get:instanceGetter |
instance getter |
#set:instanceSetter |
instance setter |
.staticProperty |
static property |
.staticMethod() |
static method |
.get:staticGetter |
static getter |
.set:staticSetter |
static setter |
- Where the kind of member does not matter, write
#instanceMember/.staticMember. A rule that holds for every member alike turns on the prefix alone, and naming a kind it does not depend on would narrow it. - When attaching the class name, write it as in
SampleClass#extractValue().
| notation | member |
|---|---|
SampleClass#extractValue() |
instance method of SampleClass |
SampleClass.createValue() |
static method of SampleClass |
It applies beyond prose
- This notation applies not only to Markdown prose, but to any text within implementation code that refers to a class member. Specifically, this includes the following.
- Error messages (message strings in
throw new Error(...), etc.) - JSDoc / comments (places within a member's description that refer to a member)
- Error messages (message strings in
- When dynamically embedding a class name, use the same notation. Prefix instance members with
#and static members with..
// OK: instance method (the class name is resolved via this.constructor.name)
throw new Error(`${this.constructor.name}#normalize() must be inherited`)
// OK: static getter / static method (the class name is resolved via this.name)
throw new Error(`${this.name}.get:rawSchema must be inherited`)
throw new Error(`${this.name}.generateCredential() must be inherited`)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hoc-classes-member-notation?
How a class member is written when it is referred to — `#` for an instance member, `.` for a static one, `get:` / `set:` for an accessor, and the class name in front where it is needed. Use whenever a member is named outside its own declaration: in a document, a commit message, a test's `describe()`, an error message or a comment.
Как установить скилл hoc-classes-member-notation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hoc-classes-member-notation запускает скрипты?
Нет, скилл состоит только из инструкций (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…