Skillpedia
برمجة عامة48k · #4797

haskell-pro

ما الذي تفعله

هذا الوكيل خبير في لغة البرمجة Haskell. يساعد في تصميم شيفرة Haskell ومراجعتها، مع التركيز على الأمان والأداء وأفضل ممارسات البرمجة.

متى تستخدمها

  • ✓عندما تنشئ أنواع بيانات معقدة في Haskell أو تراجعها.
  • ✓عندما تريد تحسين أداء شيفرة Haskell الموجودة أو أمانها.
  • ✓عندما تنظّم مشاريع Haskell، بما في ذلك عمليات البناء والتبعيات.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/haskell-pro/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“راجع شيفرة Haskell هذه من حيث الصحة والتصميم الاصطلاحي والأداء وتغطية الاختبارات.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تحلل شيفرتك، وتقترح تحسينات باستخدام ميزات متقدمة في اللغة، وتشرح التغييرات حتى تفهمها.

المحتوى التقني (ملف 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.
الأسئلة الشائعة

ما هي «الأنواع» (Types) في Haskell؟

تحدد الأنواع نوع البيانات التي يمكن للمتغير أن يحملها، مثل الأرقام أو النصوص، وتساعد على منع الأخطاء قبل تشغيل البرنامج.

ماذا تعني «أمان الموارد» (resource safety)؟

أي التأكد من أن البرنامج يتعامل مع الموارد مثل الملفات أو اتصالات الشبكة بشكل صحيح، فيغلقها عندما لا يحتاج إليها لتجنب المشكلات.

ما معنى «البناء» (building) في 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
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة