מצות עשה להסיר כל מכשול שיש בו סכנת נפשות ועשיית מעקה לגגו. ובו י' סעיפים:
מצות עשה לעשות אדם מעקה לגגו, שנא' "ועשית מעקה לגגך". והוא שיהיה בית דירה, אבל בית אוצרות ובית הבקר וכיוצא בהן, אינו זקוק לו:
לעשות אדם מעקה. וכתב הרמב"ם פי"א מה' ברכות דצריך לברך אקב"ו לעשות מעקה, ושם כתב דמברך ג"כ שהחיינו ע"ש. אך בספר נשמת אדם כלל ט"ו כתב דהרמב"ם לשיטתו, דכתב דגם על ציצית ותפילין מברכין שהחיינו. אבל למאן דקיי"ל בא"ח סי' כ"ב גבי ציצית דאין מברכין, ה"ה במעקה אין מברכין "שהחיינו" רק "לעשות מעקה" ע"ש...
ועיין בספר מחנה אפרים ה' שלוחין סימן י"א במי שרוצה לעשות מעקה ע"י אומן גוי אי יברך עליו ומצדד שם דשפיר יכול לברך כיון דיד פועל כיד בעה"ב...
דירה. תימא על המחבר! דגבי מזוזה ביו"ד ר"ס רפ"ו סתם וכת' דרפת בקר ולולין ובית אוצרות שמן ויין חייבים במזוזה וכדעת הרי"ף והרא"ש ודלא כהרמב"ם וכמ"ש שם, וכאן במעקה סתם דאינן חייבין במעקה ודין מעקה נלמד מדין מזוזה וכמ"ש הכ"מ. ונראה דהמחבר הכריע וס"ל דלענין מעקה כיון דאין דרך בני אדם להיות להן בית תשמיש ע"ג בית הבקר ובית האוצר ובית העצים מש"ה אף אם לפעמים יקרה דידור שם אדם מ"מ אין שם יוצאים ונכנסים כל כך למיחש שיפול משם ולהצטרך מעקה. משא"כ במזוזה דחייבה התורה בשביל הדר להיות מצות ה' נגד עיניו בביאתו וביציאתו בזה פסק דהדר שם צריך לקבוע מזוזה באותו פתח עכ"ל הסמ"ע:
בית של שני שותפים חייבים במעקה שנאמר "כי יפול הנופל ממנו", לא תלה אלא בנופל. א"כ למה נאמר "גגך"? למעט בתי כנסיות ובתי מדרשות, לפי שאינם עשוים לדירה:
היתה רשות הרבים גבוה מגגו, אינו זקוק למעקה, שנאמר "כי יפול הנופל ממנו":
גובה המעקה אין פחות מי' טפחים, כדי שלא יפול ממנו הנופל. וצריך להיות המחיצה חזקה כדי שישען אדם עליה ולא תפול:
כל המניח גגו בלא מעקה ביטל מצות עשה, ועבר על לא תעשה, שנא' "ולא תשים דמים בביתך":
אחד הגג ואחד כל דבר שיש בו סכנה וראוי שיכשול בה אדם וימות, כגון שהיתה לו באר (או בור) בחצירו, בין שיש בו מים בין שאין בו מים, חייב לעשות חוליא גבוה י' טפחים, או לעשות לה כיסוי, כדי שלא יפול בה אדם וימות:
וכן כל מכשול שיש בו סכנת נפשות, מצות עשה להסירו ולהשמר ממנו ולהזהר בדבר יפה, שנאמר "השמר לך ושמור נפשך". ואם לא הסיר, והניח המכשולות המביאים לידי סכנה, ביטל מצות עשה ועובר ב"לא תשים דמים":
הרבה דברים אסרו חכמים מפני שיש בהם סכנת נפשות וקצתם נתבארו בטור י"ד סי' קט"ז ועוד יש דברים אחדים...: הגה וכבר כתבתי דברים אלו סימן קי"ו ביורה דעה וע"ש:
צריך ליזהר מליתן מעות בפיו שמא יש עליהן רוק יבש של מוכי שחין ולא יתן פס ידו תחת שחיו שמא נגע ידו במצורע או בסם רע ולא יתן ככר לחם תחת השחי מפני הזיעה ולא יתן תבשיל ולא משקים תחת המטה מפני שרוח רעה שורה עליהם ולא ינעוץ סכין בתוך אתרוג או בתוך צנון שמא יפול אדם על חודה וימות: הגה וכן יזהר מכל דברים המביאים לידי סכנה כי סכנתא חמירא מאיסורא ויש לחוש יותר לספק סכנה מלספק איסור (ב"י בשם הש"ס) ולכן אסרו לילך בכל מקום סכנה כמו תחת קיר נטוי או יחידי בלילה (שם) וכן אסרו לשתות מים מן הנהרות בלילה או להניח פיו על קלוח המים לשתות כי דברים אלו יש בהן חשש סכנה (רמב"ם) ומנהג פשוט שלא לשתות מים בשעת התקופה וכן כתבו הקדמונים ואין לשנות (אבודרהם ומרדכי ס"פ כל שעה רוקח סימן ער"ה ומהרי"ל ומנהגים) עוד כתבו שיש לברוח מן העיר כשדבר בעיר ויש לצאת מן העיר בתחילת הדבר ולא בסופו (תשובת מהרי"ל סי' ל"ה) וכל אלו הדברים הם משום סכנה ושומר נפשו ירחק מהם ואסור לסמוך אנס או לסכן נפשו בכל כיוצא בזה ועיין בחושן משפט סימן תכ"ז:
כל העובר על דברים אלו וכיוצא בהם, ואמר "הריני מסכן בעצמי ומה לאחרים עלי בכך?" או "איני מקפיד בכך", מכין אותו מכת מרדות. והנזהר מהם, עליו תבא ברכת טוב :
לשון המחבר כדי לסיים בדבר טוב