No slash command · from haskell-tasuke
Explicitly enumerate Haskell module exports instead of exporting everything implicitly, and use re-export sparingly. Use when writing or reviewing Haskell module export lists.
Ships in haskell-tasuke. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
exportでモジュールの全てのシンボルを暗黙的に公開するのは原則禁止です。
外部に公開しないといけないシンボルだけをexportしてください。
結果的に全てのシンボルをexportすることになっても、 明示的に列挙してください。
明示的に列挙することで公開しているAPIが明確になり、 デッドコードの検出なども簡単になります。
ただしTemplate Haskellでシンボルを大量に生成して、 それを全てexportしないといけない場合で、 大量生成されたシンボルを把握するのが困難な場合は、 短縮された全てをexportする構文を許可します。
importしたモジュールを再度exportするre-exportは慎重に使ってください。
re-exportをすることでimportの依存関係が複雑になり、 循環参照のcycle importが起きた時に原因を特定するのが難しくなります。
また本来必要のない依存関係が発生していることに気が付かなくて、 インクリメンタルビルドの効率に悪影響を与えることもあります。
ライブラリやレイヤーのimportされるトップレベルモジュールの場合は、 慣習的にも問題ないことが多いです。
その他の場合は、 このモジュールを使うなら、 ほぼ絶対にセットでimportするだろうというモジュールのみをre-exportしてください。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ncaq/konoka --plugin haskell-tasuke19 skills in this plugin
/bracketUse bracket or with-style functions to guarantee resource cleanup even on exceptions instead of separate do blocks. Use when writing or reviewing Haskell code that acquires and releases resources./bump-cabal-index-stateUpdate Cabal project index-state to the latest timestamp. Use when it needs to bump the cabal index-state./cabal-commandUse cabal with --disable-optimization for development builds and tests, and add --enable-tests to avoid rebuilds. Use when running or suggesting cabal build or test commands in Haskell development./exceptionDo not throw exceptions from pure code with error or throw, give exceptions structured types, and never silently swallow errors in IO. Use when writing or reviewing Haskell error handling, exceptions, or IO code./function-resultDo not discard a function's final value with return (), pure (), or void; adjust the type to return the value and let the caller discard it when unneeded. Use when writing or reviewing Haskell functions that return unit or discard results./himarihimari is ncaq's rio-like custom Haskell Prelude. Import it with a single `import Himari`, never `import Himari.Prelude` or other submodules directly. Use when writing or reviewing Haskell code in a project that depends on the himari package.