haskell-pro
Skill này làm gì
Skill này cung cấp cho AI của bạn hướng dẫn chuyên sâu để viết chương trình Haskell. Nó dành cho lập trình viên muốn code có kiểu dữ liệu mạnh, theo phong cách hàm, an toàn và dễ suy luận.
Khi nào nên dùng
- ✓Khi bạn viết hoặc xem lại code Haskell.
- ✓Khi bạn cần mô hình hóa một miền nghiệp vụ bằng kiểu dữ liệu nâng cao.
- ✓Khi bạn cần trợ giúp về concurrency, hiệu năng hoặc cấu trúc dự án Haskell.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/haskell-pro/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy viết một module Haskell phân tích file cấu hình và mô hình hóa lỗi bằng kiểu dữ liệu mạnh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng kiểu dữ liệu giàu biểu cảm và hàm thuần, giữ đầu vào và đầu ra ở các ranh giới rõ ràng, và khuyên dùng các giải pháp an toàn thay cho hàm bán phần (partial functions). Nó cũng giúp cấu trúc dự án Cabal hoặc Stack.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Use expressive types, newtypes, and invariants to model domain logic
- Prefer pure functions and isolate IO to explicit boundaries
- Recommend safe, total alternatives to partial functions
- Use typeclasses and algebraic design only when they add clarity
- Keep modules small, explicit, and easy to reason about
- Suggest language extensions sparingly and explain their purpose
- 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.
Câu hỏi thường gặp
Skill nhắc đến những thư viện Haskell nào?
Nó nhắc đến Aeson cho JSON, Megaparsec cho phân tích cú pháp và STM cho concurrency.
Nó có giúp về hiệu năng không?
Có. Nó bao gồm strictness, profiling và fusion để tinh chỉnh hiệu năng.
Đây có phải cho người mới không?
Nó dành cho lập trình viên đã quen lập trình hàm, vì nó bao gồm hệ thống kiểu nâng cao.
Chi tiết
Mô tả gốc của tác giả
Expert Haskell engineer specializing in advanced type systems, pure
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8770
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.