Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #4797

haskell-pro

Skill này làm gì

Agent AI này là chuyên gia về Haskell, một ngôn ngữ lập trình. Nó giúp thiết kế và rà soát code Haskell, tập trung vào an toàn, hiệu năng và thực hành lập trình tốt.

Khi nào nên dùng

  • ✓Khi tạo hoặc rà soát các kiểu dữ liệu phức tạp trong Haskell.
  • ✓Khi tối ưu hiệu năng hoặc độ an toàn của code Haskell hiện có.
  • ✓Khi tổ chức dự án Haskell, bao gồm việc build và các phụ thuộc.

Liên kết skill

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

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/haskell-pro/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy rà soát code Haskell này về tính đúng đắn, thiết kế theo cách viết chuẩn của Haskell, hiệu năng và độ phủ test.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent phân tích code Haskell của bạn, đề xuất cải tiến bằng các tính năng nâng cao của ngôn ngữ và giải thích các thay đổi để bạn hiểu rõ.

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

  • 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.
Câu hỏi thường gặp

“Types” trong Haskell là gì?

Kiểu dữ liệu xác định loại dữ liệu mà một biến có thể chứa (như số hoặc chữ), giúp ngăn lỗi trước cả khi chương trình chạy.

“Resource safety” nghĩa là gì?

Đảm bảo chương trình xử lý đúng các tài nguyên như tệp hoặc kết nối mạng, và đóng chúng khi không còn dùng để tránh sự cố.

“Building” trong Haskell là gì?

Đó là quá trình biến code Haskell bạn viết thành chương trình mà máy tính có thể chạy.

Chi tiết

Mô tả gốc của tác giả

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

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4797
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự