شعار Dev.Code

Dev.Code

المجتمع
kevinslin
dev.code

Implement, fix, refactor, or otherwise modify source code.

نظرة عامة

الناشرkevinslin
المستودعagstack
اسم المهارةdev.code
النجوم
26
التفريعات
1
الملفات المرفقة
2
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها kevinslin على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Dev.Code في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/kevinslin/agstack/tree/main/active/dev.code
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/dev.code .claude/skills/dev.code
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Dev.Code في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Dev.Code تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Dev.Code بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Code Development Skill

This skill provides a structured approach to coding tasks with emphasis on quality, security, and maintainability.

When to Use This Skill

Use this skill for any coding task including:

  • Implementing new features or functionality
  • Fixing bugs or issues
  • Refactoring existing code
  • Optimizing performance
  • Adding or modifying tests
  • Making any changes to source code

Core Development Workflow

1. Understand Before Coding

Before making changes:

  • Read relevant existing code to understand current implementation
  • Identify the scope of changes needed
  • Ground requirements and invariants in the user's latest explicit decisions, current authoritative contracts, and actual enforcement boundaries
  • Consider edge cases and potential side effects
  • Check for existing patterns and conventions in the codebase
  • Choose the smallest complete implementation; do not invent requirements, compatibility layers, configuration knobs, or speculative abstractions

2. Plan the Implementation

For non-trivial tasks:

  • Use TodoWrite to break down the work into clear steps
  • Identify files that need to be modified
  • Consider the order of operations (e.g., tests before implementation, or vice versa)
  • Plan for both happy path and error handling
  • Identify every test or end-to-end outcome the user explicitly requested and the real runtime, credentials, or infrastructure needed to verify it
  • Identify new components that need user-facing documentation and temporary implementation paths that need an explicit removal condition

3. Write Quality Code

Follow these principles:

Code Style & Conventions:

  • Follow existing code style and patterns in the codebase
  • Use spaces not tabs (per user configuration)
  • Choose descriptive variable and function names
  • Keep functions focused and single-purpose
  • Add comments for complex logic, but prefer self-documenting code
  • Reuse existing architecture and one canonical source of truth; remove unnecessary helpers, state machinery, duplicate configuration, and defenses not required by a real current contract

Documentation and Deferred Work:

  • When introducing a component, load $docy guidance and add or update its user-facing guide in the same change. Cover its purpose, setup, configuration, supported boundaries, verification, and troubleshooting.
  • Update relevant README links, navigation, and adjacent documents that would otherwise describe outdated behavior.
  • Keep active specifications and user-facing documentation synchronized with implemented behavior, approved limitations, and remaining verification gaps.
  • Mark temporary placeholders, compatibility drains, feature filters, or deferred behavior with a nearby concise TODO naming the missing capability, responsible milestone or owner, and replacement or removal condition.
  • Explicitly mark temporary authentication, credential, transport, or network exceptions beside their implementation and explain their replacement path.
  • Keep permanent security boundaries and intentional architecture free of misleading temporary markers.

Security Considerations:

  • NEVER introduce security vulnerabilities
  • Watch for: command injection, XSS, SQL injection, path traversal, insecure deserialization
  • Validate and sanitize all user inputs
  • Use parameterized queries for database operations
  • Avoid hardcoding secrets or credentials
  • Use secure defaults and principle of least privilege
  • For detailed security guidance, consult ./references/security-guidelines.md

Error Handling:

  • Handle errors gracefully with appropriate error messages
  • Avoid exposing sensitive information in error messages
  • Clean up resources properly (close files, connections, etc.)
  • Consider failure modes and recovery strategies

Performance:

  • Avoid unnecessary computations or database queries
  • Consider time and space complexity for data structures and algorithms
  • Use caching appropriately
  • Profile before optimizing (don't prematurely optimize)

4. Testing

Prefer integration tests over unit tests. Integration tests:

  • Test the full application as users would interact with it
  • Catch more bugs (import issues, config problems, integration bugs)
  • Are easier to maintain during refactoring
  • Provide confidence that the actual user experience works

When changing program behavior:

  • Add tests (per user configuration)
  • Write integration tests first - test the full application/CLI
  • Run the actual application process, don't import functions directly
  • Write tests that cover both happy path and edge cases
  • Ensure existing tests still pass
  • Add unit tests sparingly - only for complex logic that needs isolation
  • Test error handling and boundary conditions
  • Use the repository's existing test runner and conventions; do not introduce Jest, snapshots, dependencies, or snapshot updates unless the repository and requested behavior actually require them
  • Exercise supported routes, realistic ownership and persisted state, real authorization, and observable outcomes at their authoritative boundary
  • Reject tests that assert behavior invented by their own mocks, monkeypatches, fixtures, adapters, nonexistent endpoints, or impossible application states
  • Add concise comments before non-obvious integration setup and assertions to explain the scenario and the business or security invariant being verified
  • Distinguish real runtime or infrastructure execution from rendering-only checks, substitutes, and skipped cases; report unavailable prerequisites honestly instead of presenting a substitute as equivalent proof
  • Run every test the user explicitly requested. If any requested test fails, skips, or cannot run, report that exact acceptance criterion as unverified and do not claim the requested outcome is complete

Test-driven development approach:

  1. Write failing integration test first (recommended)
  2. Implement the minimal code to make tests pass
  3. Refactor while keeping tests green
  4. Add unit tests only if needed for complex logic

For detailed testing guidance, consult ./references/testing-guidelines.md

5. Review Your Work

Before marking a task complete:

  • Re-read the changes you made
  • Check for introduced bugs or regressions
  • Verify security considerations are addressed
  • Ensure tests pass
  • Confirm each user-requested test actually ran and passed at the requested boundary; name any remaining infrastructure or acceptance-proof blocker
  • Verify new component documentation, its links and examples, and explanations for every intentionally temporary implementation path
  • Look for opportunities to simplify
  • Remove debug code, console.logs, or temporary changes

6. Iterate and Improve

If errors or issues arise:

  • Don't mark tasks as complete if there are failures
  • Debug systematically (check error messages, add logging, isolate the issue)
  • Fix the root cause, not just symptoms
  • Verify the fix works with tests

Common Patterns

When Editing Files

  • Always use Read before Edit or Write
  • Preserve exact indentation when using Edit tool
  • Use Edit for targeted changes, Write for new files or complete rewrites

When Searching Code

  • Use Grep for content search
  • Use Glob for finding files by pattern
  • Use Task tool with Explore agent for open-ended exploration

When Working with Git

  • Check git status before committing
  • Write clear, concise commit messages
  • Don't commit secrets, credentials, or sensitive data
  • Follow the repository's commit message conventions

Anti-Patterns to Avoid

  • Don't write code without reading existing implementation
  • Don't mark tasks complete when tests are failing
  • Don't skip error handling or edge cases
  • Don't introduce security vulnerabilities
  • Don't hardcode values that should be configurable
  • Don't duplicate code instead of extracting common functionality
  • Don't leave commented-out code or debug statements
  • Don't make changes without understanding the full impact

Language-Specific Considerations

When working in different languages, adapt to their idioms and best practices:

JavaScript/TypeScript:

  • Use const/let, never var
  • Prefer async/await over raw promises
  • Handle promise rejections
  • Use TypeScript types effectively
  • Use the repository's existing test framework and scripts
  • Write integration tests that run the actual CLI/application process

Python:

  • Follow PEP 8 style guidelines
  • Use type hints for better code clarity
  • Properly handle exceptions with try/except
  • Use context managers (with statements) for resources

Go:

  • Handle errors explicitly (don't ignore them)
  • Use defer for cleanup
  • Follow Go conventions (e.g., early returns)

Rust:

  • Handle Result and Option types properly
  • Use borrowing and ownership correctly
  • Leverage the type system for safety

Java:

  • Use appropriate exception handling
  • Follow naming conventions (camelCase for methods/variables, PascalCase for classes)
  • Properly close resources (use try-with-resources)

Best Practices Summary

  1. Read first, code second - Understand before changing
  2. Security by default - Never introduce vulnerabilities
  3. Test your changes - Write integration tests first, unit tests sparingly
  4. Follow conventions - Match the existing codebase style
  5. Handle errors properly - Don't let exceptions crash the system
  6. Review before submitting - Catch issues early
  7. Iterate on feedback - Fix problems until tests pass

For more detailed information on specific topics:

  • Security best practices: ./references/security-guidelines.md
  • Testing strategies: ./references/testing-guidelines.md

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Dev.Code؟

Implement, fix, refactor, or otherwise modify source code.

لماذا تستخدم Dev.Code على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Dev.Code عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Dev.Code في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/kevinslin/agstack/tree/main/active/dev.code. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Dev.Code؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Dev.Code؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Dev.Code معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Dev.Code مجانية؟

نشرها kevinslin على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇