Hoc classes member notation

From openreachtech/hora-skills-ort-core · View interactive version

Hoc classes member notation is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. 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()`

How to use this skill

Skill file

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

| 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 |

| notation | member |

| :-- | :-- |

| SampleClass#extractValue() | instance method of SampleClass |

| SampleClass.createValue() | static method of SampleClass |

It applies beyond prose

// 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`)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.