kosif199022-jpg/kosif-atlas/10031-export
Claude Code and agent skill by kosif199022-jpg/kosif-atlas
- community
Checking that the SKILL.md file is still in the repository.
Explicitly enumerate Haskell module exports instead of exporting everything implicitly, and use re-export sparingly. Use when writing or reviewing Haskell module export lists.
Install
npx vskill@latest install kosif199022-jpg/kosif-atlas/10031-exportSKILL.md
The same SKILL.md was published earlier as kosif199022-jpg/kosif-atlas/10031-export.
exportの原則
exportは明示的に列挙する
exportでモジュールの全てのシンボルを暗黙的に公開するのは原則禁止です。
外部に公開しないといけないシンボルだけをexportしてください。
結果的に全てのシンボルをexportすることになっても、 明示的に列挙してください。
明示的に列挙することで公開しているAPIが明確になり、 デッドコードの検出なども簡単になります。
ただしTemplate Haskellでシンボルを大量に生成して、 それを全てexportしないといけない場合で、 大量生成されたシンボルを把握するのが困難な場合は、 短縮された全てをexportする構文を許可します。
re-exportは控える
importしたモジュールを再度exportするre-exportは慎重に使ってください。
re-exportをすることでimportの依存関係が複雑になり、 循環参照のcycle importが起きた時に原因を特定するのが難しくなります。
また本来必要のない依存関係が発生していることに気が付かなくて、 インクリメンタルビルドの効率に悪影響を与えることもあります。
ライブラリやレイヤーのimportされるトップレベルモジュールの場合は、 慣習的にも問題ないことが多いです。
その他の場合は、 このモジュールを使うなら、 ほぼ絶対にセットでimportするだろうというモジュールのみをre-exportしてください。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/2643-haskell-tasuke/10031-export/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kosif199022-jpg/kosif-atlas/10031-export)