المهارات Angular Expert
📦

Angular Expert

آمن

بناء تطبيقات Angular الحديثة مع الإشارات

هل تواجه صعوبات مع أنماط Angular القديمة ووحدات NgModules المعقدة؟ يوفر هذا الدليل إرشادات خبيرة حول Angular الحديثة (v20+) مع الإشارات والمكونات المستقلة وهندسة Zoneless.

يدعم: Claude Codex Code(CC)
📊 71 كافٍ
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "Angular Expert". Create a user card component with signal inputs

النتيجة المتوقعة:

A standalone UserCardComponent using input() for id, name, and role properties with defaults, output() for select events, and a computed signal for display formatting.

استخدام "Angular Expert". How do I migrate from @Input() to signal inputs?

النتيجة المتوقعة:

Replace @Input() decorator with input() function. For required inputs use input.required<T>(), for optional use input<T>(defaultValue). Update template references to call signals as functions: {{ name() }} instead of {{ name }}.

التدقيق الأمني

آمن
v1 • 2/24/2026

All static analysis findings were false positives. The skill contains documentation-only content (markdown and JSON configuration) with no executable code. URL references point to official Angular documentation. Markdown code formatting was incorrectly flagged as shell execution. No actual security risks detected.

2
الملفات التي تم فحصها
56
الأسطر التي تم تحليلها
0
النتائج
1
إجمالي عمليات التدقيق
لا توجد مشكلات أمنية
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
50
المجتمع
100
الأمان
65
الامتثال للمواصفات

ماذا يمكنك بناءه

إعداد مشروع Angular جديد

احصل على إرشادات خبيرة حول إعداد تطبيق Angular حديث مع الإشارات والمكونات المستقلة والتكوين الأمثل من البداية.

تحديث Angular القديم

خطط ونفذ الترحيل التدريجي من NgModules إلى المكونات المستقلة، مع تبني أنماط الإشارات وZoneless تدريجياً.

تحسين الأداء

نفذ أنماط متقدمة مثل التحميل المؤجل وhydration التزايدي وكشف التغيير OnPush لأقصى أداء.

جرّب هذه الموجهات

Beginner: Create a Signal-Based Component
Create a new Angular component using Signals for state management. The component should display a counter with increment and decrement buttons, using signal inputs for initial value and signal outputs for events.
Intermediate: Convert NgModule to Standalone
Help me convert this existing NgModule-based Angular component to a Standalone Component. Update all imports, remove module dependencies, and ensure the component uses modern signal-based inputs and outputs.
Advanced: Implement Zoneless Architecture
Guide me through converting an existing Angular application to Zoneless mode. Explain the configuration changes needed, how to handle change detection triggers, and what patterns to use for async operations without zone.js.
Expert: SSR with Incremental Hydration
Set up server-side rendering with incremental hydration for an Angular application. Configure defer blocks with appropriate triggers (on viewport, on interaction, on idle) for optimal Core Web Vitals scores.

أفضل الممارسات

  • Use Signals for local component state and RxJS for async streams like HTTP requests
  • Enable OnPush change detection and let Signals trigger updates automatically
  • Prefer Standalone Components with direct imports over SharedModules for better tree-shaking

تجنب

  • Using RxJS BehaviorSubject for simple local state when Signals are sufficient
  • Loading entire feature modules eagerly instead of using loadComponent and defer blocks
  • Mixing legacy decorator patterns with Signals causing inconsistent change detection

الأسئلة المتكررة

What Angular version does this skill support?
This skill focuses on Angular v20 and above, covering Signals (stable), Standalone Components (default), Zoneless mode, and modern SSR with hydration patterns.
Should I use Signals or RxJS for state management?
Use Signals for local component state and derived values. Use RxJS for HTTP requests, event streams, and complex async flows. They complement each other with toSignal() and toObservable() interop.
Is Zoneless mode production-ready?
Yes, Zoneless is stable in Angular v20+. It provides better performance and debugging. However, test thoroughly as some third-party libraries may still depend on zone.js.
Do I need to rewrite my entire app to use Standalone Components?
No. Standalone Components can coexist with NgModule-based components. Migrate gradually, starting with new components and leaf components, then move up the component tree.
What is the benefit of SSR with incremental hydration?
SSR provides fast initial page load and SEO benefits. Incremental hydration loads interactive JavaScript progressively, improving Time to Interactive and reducing main thread blocking.
Can I use this skill for AngularJS (1.x) projects?
No. This skill covers modern Angular (v20+). For AngularJS migration, use the dedicated angular-migration skill which handles the significant architectural differences.

تفاصيل المطور

المؤلف

sickn33

الترخيص

MIT

مرجع

main

بنية الملفات