Command Palette

Search for a command to run...

Назад к скиллам
скилл № 05775

hoc-contracts

Conventions for the type contracts of function and method arguments and return values, including how contract types are defined.

БесплатноБез исполняемых скриптов
openreachtechот openreachtech★ 17 звёзд на GitHub

Установить hoc-contracts в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Shared: Contracts

Conventions related to argument and return-value contracts. Applies across both functions and methods.

Use BooleanLike for boolean return values

  • When returning a boolean, use the BooleanLike type.
  • To do so, define the BooleanLike @typedef at the bottom of the file.
  • If the type is already defined as standard, @typedef is unnecessary.
  • Follow the JSDoc convention ("Writing @typedef") for the @typedef format.
/**
 * Check whether the value is valid.
 *
 * @param {{
 *   value: *
 * }} params - Parameters.
 * @returns {BooleanLike} Whether the value is valid.
 */
function isValid ({
  value,
}) {
  return value != null
}

// Defined at the bottom of the file
/**
 * @typedef {*} BooleanLike
 */

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл hoc-contracts?

Conventions for the type contracts of function and method arguments and return values, including how contract types are defined.

Как установить скилл hoc-contracts?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hoc-contracts запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hoc-contracts с