Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

neohaskell-code-guidelines

БесплатноЗапускает вложенные скриптыНе проверен

NeoHaskell code style guidelines for writing and reviewing .hs code in this repository.

neohaskellот neohaskell★ 349 звёзд на GitHub

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

Use Never
x |> foo |> bar bar $ foo x, $
do let y = expr let..in, where
case x of patterns in function head
if cond then a else b case cond of True -> …
Named helpers with one abstraction level; orchestration reads top-to-bottom nested control-flow pyramids, orchestration mixed with branch mechanics
Comments that explain constraints or intent comments narrating what code does; extract a named function instead
Early-exit sentinel guards in Task validation nested if/case pyramids
[fmt|Hello #{name}!|] <> / ++ for strings
Result err val; convert foreign Either with Result.fromEither, then match Ok/Err matching foreign Left/Right outside the Result conversion owner
Task err val IO
Task.yield v pure, return
forall element result. single-letter type params
import Foo (Foo); import Foo qualified unqualified imports
nhcore Core modules (Text, Array, Char, File, Path…) raw Data.* / System.* / Ghc* imports

For every new Haskell module, follow module documentation. Before changing source pragmas or Cabal extension settings, follow language extensions.

Readable service code

Read Name for the reader before choosing module, type, or operation names. For service orchestration, exception boundaries, outcome types, serialization, or test resources, read service design.

Run the static checks after changing Haskell or tracked application and test code. These checks own the executable subset of the rules. Review the remaining design decisions against their owning skills.

Application examples

Write generated starters, testbed modules, documentation examples and fixtures that represent user applications in NeoHaskell's application dialect. Use the framework markers for the instances they generate. Use newtype when it models the domain. Never use explicit stock or via deriving strategies in these application examples.

Keep each deriving clause only for a concrete framework constraint or an operation the example actually performs. Remove unused Eq, Ord and Show instances. GHC supplies Typeable automatically, so omit explicit Typeable deriving. Keep Generic and serialization instances when an actual codec needs them and a framework marker does not supply them. Apply Minimize Reader Load to declarations, imports and annotations as well as control flow.

Framework implementation and compiler fixtures that test GHC integration can use the GHC machinery their internal contracts require. Keep that machinery inside the owning framework boundary.

Полный SKILL.md на GitHub

Установить neohaskell-code-guidelines в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

references/static-checks.mdscripts/cabal_extensions.pyscripts/check.pyscripts/source_rules.py

FAQ

Что делает скилл neohaskell-code-guidelines?

NeoHaskell code style guidelines for writing and reviewing .hs code in this repository.

Как установить скилл neohaskell-code-guidelines?

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

Скилл neohaskell-code-guidelines запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить neohaskell-code-guidelines с