Is it permissible to take the shells off of eggs before Shabbos and store them in a closed box to be eaten on Shabbos?
Peeled eggs left overnight (even covered) may not be eaten, even when in a covered and closed box. This applies on Shabbos as well.
If the eggs were left over after Shabbos, they may be eaten Motzaei Shabbos, as long as the night hasn’t passed.
The sources base the law on the Gemara in Niddah 17a, which applies even when the food was put in a basket and tied and sealed, and also cite the Alter Rebbe's Shulchan Aruch. They reject lenient views that allow it in a refrigerator or in a utensil, or for a Shabbos meal because of the principle that one who guards a mitzvah is protected. They also bring Rishonim, such as Tosafos and the Rosh, to show that the law applies on Shabbos and Yom Tov.This is a generative summary and should not be relied upon for practical halachic rulings. Report an error or leave us a comment.
נדה יז, א: אע״ג דמנח בסילתא ומציירי וחתימי. וכ״ה בשו״ע אדה״ז שמירת גוף ונפש ז. ומש״כ ברבבות אפרים ג, תצה להקל בתוך מקרר – אי״מ כלל. (וראה שם ד, נא. ה, תקכג. ו, תלג). ועד״ז מה שחידש בשו״ת ויען דוד ח, קיט, בכלי בתוך מקרר – אין שום מקור לד״ז. ופירוקא לסכנתא לא עבדינן. וראה מש״כ בזה בשו״ת יבי״א י יו״ד ט. צי״א יח, מו, א.
גם בשבת – להעיר מתוספות שבת קמא, א, ד״ה הני בסופו בנוגע ליו״ט שאא״פ לדוך מערב יו״ט משום רו״ר. וכן בתוס׳ ביצה יד, א ד״ה איכא. רא״ש שם פ״א סכ״א. ועוד. וכן מוכח בהגהות מרדכי שבת פ״ח (פב, א) דקאי בשבועות.
וצע״ג מש״כ בישכיל עבדי יו״ד יד, ד להקל בסעודת שבת משום שומר מצוה. ועד״ז בשו״ת ויען דוד שם. תשוה״נ ד יו״ד קפו. (נוסף לזה שכמה עיקולי ופשורי בדין שומר מצוה וגדרי ד״ז).
וכן מפורש בסמ״ק קעא דמיירי בסעודת שבת שחרית. וכ״ה בארחות חיים הלכות מעקה. וכן מצינו באחרונים – ראה גם בית שלמה יו״ד קפט. שדה הארץ ג או״ח סוסי׳ יח. וכן מובא בכ״מ בטעם שהקלו בדין לישה בעשיית מאכל מביצים ובצלים בשבת מה״ט. וראה גם שו״ת יבי״א שם. שדה אלחנן א, יא. וצע״ק ב אגודה שבת קג. וי״ל.
שיעור לינת לילה – ראה דו״ת דגל אפרים כח בהגהות עוללות משה. צביון העמודים על הסמ״ק שם טו. שו״ת דברי יציב או״ח רכז, ה. יו״ד ג לא, יג.. שם לב. שבט הקהתי ב יו״ד רמז, ד. שרגא המאיר ח, צ, ז. בחצרות החיים גליון נו תמוז תשס״ט. קובץ העו״ב וישלח תשע״ה.
#1638

How does this apply to egg salad that’s sold in containers in grocery stores?
Those are in that state for more than one day.
If it is from a reliable hechsher, presumably they add oil and salt which mitigate the problem.