angular-developer
ما الذي تفعله
تساعد هذه المهارة على كتابة شيفرة إطار Angular. تستطيع إنشاء مشاريع جديدة ومكونات وخدمات، وتقدم نصائح عن تنظيم الشيفرة.
متى تستخدمها
- ✓عندما تبدأ مشروع Angular جديدًا.
- ✓عندما تنشئ مكونًا أو خدمة جديدة.
- ✓عندما تحتاج إلى مساعدة في أفضل ممارسات Angular.
رابط المهارة
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/angular-developer/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ مشروع Angular جديدًا باسم «my-app» بأحدث إصدار.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تفهم المهارة أوامر Angular CLI وأفضل ممارسات التطوير. وعندما تطلب شيئًا، تولّد الشيفرة اللازمة أو تشرح طريقة تنفيذه وفق قواعد Angular.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Angular Developer Guidelines
When to Activate
- Working in any Angular project or codebase
- Creating or scaffolding a new Angular project, application, or library
- Generating components, services, directives, pipes, guards, or resolvers
- Implementing reactivity with Angular Signals,
linkedSignal, orresource - Working with Angular forms (signal forms, reactive forms, or template-driven)
- Setting up dependency injection, routing, lazy loading, or route guards
- Adding accessibility (ARIA), animations, or component styling
- Writing or debugging Angular-specific tests (unit, component harness, E2E)
- Configuring Angular CLI tooling or the Angular MCP server
Always analyze the project's Angular version before providing guidance, as best practices and available features can vary significantly between versions. If creating a new project with Angular CLI, do not specify a version unless prompted by the user.
When generating code, follow Angular's style guide and best practices for maintainability and performance. Use the Angular CLI for scaffolding components, services, directives, pipes, and routes to ensure consistency.
Once you finish generating code, run
ng buildto ensure there are no build errors. If there are errors, analyze the error messages and fix them before proceeding. Do not skip this step, as it is critical for ensuring the generated code is correct and functional.
Creating New Projects
If no guidelines are provided by the user, use these defaults when creating a new Angular project:
- Use the latest stable version of Angular unless the user specifies otherwise.
- Prefer Signal Forms for new projects only when the target Angular version supports them. Find out more.
Execution Rules for ng new:
When asked to create a new Angular project, you must determine the correct execution command by following these strict steps:
Step 1: Check for an explicit user version.
- IF the user requests a specific version (e.g., Angular 15), bypass local installations and strictly use
npx. - Command:
npx @angular/cli@<requested_version> new <project-name>
Step 2: Check for an existing Angular installation.
- IF no specific version is requested, run
ng versionin the terminal to check if the Angular CLI is already installed on the system. - IF the command succeeds and returns an installed version, use the local/global installation directly.
- Command:
ng new <project-name>
Step 3: Fallback to Latest.
- IF no specific version is requested AND the
ng versioncommand fails (indicating no Angular installation exists), you must usenpxto fetch the latest version. - Command:
npx @angular/cli@latest new <project-name>
Components
When working with Angular components, consult the following references based on the task:
- Fundamentals: Anatomy, metadata, core concepts, and template control flow (@if, @for, @switch). Read components.md
- Inputs: Signal-based inputs, transforms, and model inputs. Read inputs.md
- Outputs: Signal-based outputs and custom event best practices. Read outputs.md
- Host Elements: Host bindings and attribute injection. Read host-elements.md
If you require deeper documentation not found in the references above, read the documentation at https://angular.dev/guide/components.
Reactivity and Data Management
When managing state and data reactivity, use Angular Signals and consult the following references:
- Signals Overview: Core signal concepts (
signal,computed), reactive contexts, anduntracked. Read signals-overview.md - Dependent State (
linkedSignal): Creating writable state linked to source signals. Read linked-signal.md - Async Reactivity (
resource): Fetching asynchronous data directly into signal state. Read resource.md - Side Effects (
effect): Logging, third-party DOM manipulation (afterRenderEffect), and when NOT to use effects. Read effects.md
Forms
In most cases for new apps, prefer signal forms. When making a forms decision, analyze the project and consider the following guidelines:
- If the application version supports Signal Forms and this is a new form, prefer signal forms.
…
الأسئلة الشائعة
كيف يعرف الوكيل أي إصدار من Angular يستعمل؟
يتحقق مما إذا طلبت إصدارًا محددًا. وإن لم تطلب، يحاول استعمال الإصدار المثبت على حاسوبك أو أحدث إصدار متاح.
ما «Signals» في Angular؟
هي طريقة حديثة لإدارة البيانات التي تتغير مع الوقت، مما يجعل الشيفرة أكفأ وأسهل فهمًا.
هل يكتب الوكيل اختبارات لشيفرتي؟
نعم، يساعد في كتابة اختبارات تتأكد من أن شيفرة Angular تعمل بشكل صحيح.
التفاصيل
الوصف الأصلي من المؤلف
Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.
repo: affaan-m/ECC
الشعبية
- نجوم GitHub
- 280k
- الترتيب
- #136
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
accessibility
280kيساعد وكيلك على بناء واجهات يستطيع الجميع استعمالها، ويضمن عمل المواقع والتطبيقات جيدًا لذوي الإعاقة، كالمكفوفين وذوي الحركة المحدودة.
agent-architecture-audit
280kيتأكد وكيلك من أن كل شيء يعمل بشكل صحيح، ويجد مشكلات أنظمة الذكاء الاصطناعي ويصلحها، ليؤدي كما هو متوقع.
agent-eval
280kيساعد وكيلك على مقارنة أدوات البرمجة بالذكاء الاصطناعي المختلفة، ويقيس أيها أسرع وأرخص وأكثر موثوقية لمهام محددة.
agent-harness-construction
280kيساعد وكيلك على فهم طريقة إنجاز المهام بشكل أفضل، عبر تحسين الأدوات والتعليمات التي يستعملها لزيادة فرص نجاحه.
مهارات مشابهة
dream-loop
260kيدفع وكيلك مشهدًا ثلاثي الأبعاد أو تطبيقًا بصريًا نحو جودة رسومية عالية، بمقارنة لقطات الشاشة بالتصميم الفني وتكرار التحسين.
pretext
260kيبني عروضًا تفاعلية على المتصفح يلتف فيها النص حول أشكال متحركة، أو يشكّل مستويات لعبة، أو يتفكك إلى جزيئات.
page-agent
260kيساعد وكيلك على إضافة مساعد ذكاء اصطناعي مدمج إلى تطبيق ويب، فيستطيع المستخدمون إعطاء أوامر بلغة عادية تنفذها الصفحة.