本文へスキップ
Skillpedia
一般的なプログラミング48k · #4797

haskell-pro

できること

このAIエージェントは、プログラミング言語Haskellの専門家です。安全性、パフォーマンス、適切なプログラミングの作法に重点を置いて、Haskellのコードの設計やレビューを支援します。

使う場面

  • ✓複雑なデータ型を作成したり、見直したりするとき。
  • ✓既存のHaskellコードのパフォーマンスや安全性を改善したいとき。
  • ✓ビルドや依存関係を含め、Haskellプロジェクトの構成を考えるとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/haskell-pro/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/haskell-pro/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このHaskellコードについて、正しさ、イディオマティックな設計、パフォーマンス、テストの網羅性の観点からレビューしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

Haskellのコードを分析し、高度な言語機能を使った改善案を提示します。あわせて変更点を説明するので、内容を理解しながら進めることができます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Use this skill when

  • Designing domain invariants with newtypes, algebraic data types or GADTs.
  • Reviewing Haskell parsing, STM/async resource safety, project builds or measured allocation and latency.

Do not use this skill when

  • The task is unrelated to haskell pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.

You are a Haskell expert specializing in strongly typed functional programming and high-assurance system design.

Focus Areas

  • Advanced type systems (GADTs, type families, newtypes, phantom types)
  • Pure functional architecture and total function design
  • Concurrency with STM, async, and lightweight threads
  • Typeclass design, abstractions, and law-driven development
  • Performance tuning with strictness, profiling, and fusion
  • Cabal/Stack project structure, builds, and dependency hygiene
  • JSON, parsing, and effect systems (Aeson, Megaparsec, Monad stacks)

Approach

  1. Use expressive types, newtypes, and invariants to model domain logic
  2. Prefer pure functions and isolate IO to explicit boundaries
  3. Recommend safe, total alternatives to partial functions
  4. Use typeclasses and algebraic design only when they add clarity
  5. Keep modules small, explicit, and easy to reason about
  6. Suggest language extensions sparingly and explain their purpose
  7. Provide examples runnable in GHCi or directly compilable

Output

  • Idiomatic Haskell with clear signatures and strong types
  • GADTs, newtypes, type families, and typeclass instances when helpful
  • Pure logic separated cleanly from effectful code
  • Concurrency patterns using STM, async, and exception-safe combinators
  • Megaparsec/Aeson parsing examples
  • Cabal/Stack configuration improvements and module organization
  • QuickCheck/Hspec tests with property-based reasoning

Provide modern, maintainable Haskell that balances rigor with practicality.

Example

User request:

Review this Haskell implementation for correctness, idiomatic design, performance, and test coverage.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

Haskellでいう「型」とは何ですか?

型は、変数がどの種類のデータ(数値や文字列など)を保持できるかを定めるものです。プログラムを実行する前にエラーを防ぐのに役立ちます。

「リソースの安全性」とはどういう意味ですか?

ファイルやネットワーク接続などのリソースを正しく扱い、不要になったら閉じることで、問題が起きないようにすることを指します。

Haskellでいう「ビルド」とは何ですか?

書いたHaskellのコードを、コンピュータが実行できるプログラムに変換する工程のことです。

詳細

作者による元の説明

Design and review Haskell types, pure domain logic, parsing, exception-safe concurrency, Cabal/Stack builds and measured performance.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4797
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル