Hoc modules exports

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

Hoc modules exports is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. Conventions for module exports. Don't define files that merely named-export a function; define a class per responsibility.

How to use this skill

Skill file

Modules: Exports

Conventions related to module exports.

Don't define files that merely named-export a function

/hoc-classes-principles.

// NG: a file that merely named-exports a function
export function normalizeColor ({
  value,
}) {
  // ...
}

// OK: define a class per responsibility
export default class ColorNormalizer {
  // ...
}
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.