neohaskell-code-guidelines
БесплатноЗапускает вложенные скриптыНе проверенNeoHaskell code style guidelines for writing and reviewing .hs code in this repository.
от 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.
Установить neohaskell-code-guidelines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic