One who curses is not liable for death until he curses them with one of the unique names, and they are the Tetragrammaton and Adonut, as the Rambam wrote in the second chapter of the Laws of Foreign Worship, see there. But if he cursed them with an epithet—he is exempt from stoning, and is lashed in the manner that one is lashed for cursing any upright person of Israel. And the epithets are "Shaddai," "Tzevaot," "Gracious," and "Merciful." And it appears that regarding this matter, "Eki" and "Elohim" are also epithets, and he is not liable for death. And know that one should not err regarding one who strikes or curses, because it is written "his father and his mother," that we require specifically both of them. For it is not so, as it implies his father or his mother. Furthermore: regarding one who curses, it is written in Kedoshim: "And any man who curses his father and his mother etc. his father and his mother he cursed, his blood is upon him," and the verse placed the curse adjacent to his father at the beginning of the verse and to his mother at its end, to teach you that he is liable for each one individually (ibid. 66a). And one who strikes we derive from one who curses (Mechilta Mishpatim). And likewise there is a derivation regarding one who strikes itself (ibid.) from the verse "one who strikes a man shall be put to death" which comes for this, see there. And one who curses his father's father, or his mother's mother—he is only like one who curses any one of Israel (Rambam, and so it is in Torat Kohanim, Parshat Kedoshim).
המקלל אינו חייב מיתה עד שיקללם בשם משמות המיוחדים, והם הוי"ה ואדנות, כמו שכתב הרמב"ם בפרק שני מהלכות עבודת כוכבים (רמב"ם הלכות עבודה זרה וחוקות הגויים ב), עיין שם. אבל אם קללם בכינוי – פטור מן הסקילה, ולוקה כדרך שלוקה על קללת כל אדם כשר מישראל. והכינוים המה "שדי", "צבאות", "חנון" ו"רחום". ונראה דלעניין זה גם אקי' ו"אלקים" כינויין נינהו, ואינו חייב מיתה. ודע דאין לטעות במכה ומקלל, מדכתיב "אביו ואמו", דבעינן שניהן דווקא. דאינו כן, דמשמע אביו או אמו. ועוד: דבמקלל ב"קדושים" כתיב" "ואיש איש אשר יקלל את אביו ואת אמו וגו' אביו ואמו קלל דמיו בו", והסמיך הכתוב בראש הפסוק קללה לאביו ובסופו לאמו, ללמדך דחייב על כל אחד בפני עצמו (שם ס"ו א). ומכה ילפינן ממקלל (מכילתא משפטים). וכן יש לימוד על מכה עצמו (שם) מקרא ד"מכה אדם יומת" דאתי לזה, עיין שם. והמקלל אבי אביו, ואבי אמו – אינו אלא כמקלל אחד מישראל (רמב"ם, וכן הוא בתורת כהנים פרשת קדושים).