Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

switch-pattern

النجوم٣
التفرعات٠
آخر تحديث١٧ يوليو ٢٠٢٦ في ٠٣:٠٤

Convert `if`-based discriminated-value matching (HTTP status codes, event/action `type` fields, mode strings) to exhaustive `switch` statements. Use when refactoring existing code to the project style or when reviewing a file for `if (x === ...) / if (x !== ...)` clusters that should be flattened to switch.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly