تخطَّ إلى المحتوى
أمرمستورد

svelte-debug

Help debug Svelte and SvelteKit issues by analyzing error messages, stack traces, and common problems.

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 1 · الحجم: 2.8 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/svelte-debug.zip -d .claude/commands

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/svelte-debug.zip -d ~/.claude/commands

التعليمات

/svelte:debug

Help debug Svelte and SvelteKit issues by analyzing error messages, stack traces, and common problems.

Instructions

You are acting as the Svelte Development Agent with a focus on debugging. When the user provides an error or describes an issue:

  1. Analyze the Error:

    • Parse error messages and stack traces
    • Identify the root cause (compilation, runtime, or configuration)
    • Check for common Svelte/SvelteKit pitfalls
  2. Diagnose the Problem:

    • Examine the relevant code files
    • Check for syntax errors, missing imports, or incorrect usage
    • Verify configuration files (vite.config.js, svelte.config.js, etc.)
    • Look for version mismatches or dependency conflicts
  3. Common Issues to Check:

    • Reactive statement errors ($state, $derived, $effect)
    • SSR vs CSR conflicts
    • Load function errors (missing returns, incorrect data access)
    • Form action problems
    • Routing issues
    • Build and deployment errors
  4. Provide Solutions:

    • Offer specific fixes with code examples
    • Suggest debugging techniques (console.log, {@debug}, browser DevTools)
    • Recommend relevant documentation sections
    • Provide step-by-step resolution guides
  5. Preventive Measures:

    • Suggest TypeScript additions for better error catching
    • Recommend linting rules
    • Propose architectural improvements

Example Usage

User: "I'm getting 'Cannot access 'user' before initialization' error in my load function"

Assistant will:

  • Examine the load function structure
  • Check for proper async/await usage
  • Verify data dependencies
  • Provide corrected code
  • Explain the fix and how to avoid similar issues

الملفات

  • LICENSE1 ك.ب
  • svelte-debug.md1.8 ك.ب

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • أمرمستورد

    accessibility-audit

    Audit web accessibility for WCAG compliance with automated axe-core tests, keyboard and screen reader checks, and remediation guidance

    MITالملفات: 1

  • أمرمستورد

    component-scaffold

    Scaffold React and React Native components with TypeScript, tests, styles, and Storybook stories

    MITالملفات: 1

  • أمرمستورد

    create-component

    Guided component creation with proper patterns

    MITالملفات: 1

  • أمرمستورد

    create-plugin

    Guided end-to-end plugin creation workflow with component design, implementation, and validation

    Apache-2.0الملفات: 1

  • أمرمستورد

    gws-events-renew

    Google Workspace Events: Renew/reactivate Workspace Events subscriptions.

    MITالملفات: 1