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

haskell-pro

できること

このスキルにより、AIはHaskellプログラムを書くための専門的な指針を使えます。安全で理解しやすい、型が強い関数型のコードを求める開発者向けです。

使う場面

  • ✓Haskellのコードを書いたり、レビューしたりするとき。
  • ✓高度な型を使ってドメインをモデル化する必要があるとき。
  • ✓Haskellの並行処理、性能、プロジェクト設定について助けが必要なとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/haskell-pro/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“設定ファイルを読み込み、強い型でエラーをモデル化するHaskellのモジュールを書いてください。”

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

仕組み

エージェントは、表現力のある型と純粋関数を使い、入力と出力を明確な境界に保ちます。また、部分関数の代わりに安全な代替手段を勧めます。CabalやStackのプロジェクト構成についても手伝います。

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

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

Use this skill when

  • Working on haskell pro tasks or workflows
  • Needing guidance, best practices, or checklists for haskell pro

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.
  • If detailed examples are required, open resources/implementation-playbook.md.

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.

よくある質問

どのHaskellのライブラリに触れていますか?

JSON用のAeson、パース用のMegaparsec、並行処理用のSTMに触れています。

性能の助けになりますか?

はい。性能調整のために、厳密性、プロファイリング、フュージョンを扱います。

初心者向けですか?

高度な型システムを扱うため、関数型プログラミングに慣れた開発者向けです。

詳細

作者による元の説明

Expert Haskell engineer specializing in advanced type systems, pure

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8770
ライセンス
MIT
更新日
2026/11/2

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

0

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

コメント

  • …

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

似ているスキル