A Shabbat that falls during Chol HaMoed, for Arvit, Shacharit, and Mincha one prays as on all Shabbats, except that he says "Ya'aleh V'Yavo" in the "Avodah." And if he did not say it—we return him. And so too in Birkat HaMazon, because on Shabbat it is an obligation to eat bread. And in Musaf he says the Musaf of all of Chol HaMoed, and adds "this Shabbat day," and says "And You gave us, Hashem our G-d, this Shabbat day, and this festival of Matzot." And so too in "Umipnei Chata'einu" he says "the Musaf offerings of...", and concludes "Who sanctifies the Shabbat and Israel and the seasons." But the one who reads the Haftarah does not conclude except with that of Shabbat, for were it not for Shabbat there would be no Haftarah on Chol HaMoed (Taz, subsection 5). And for this reason, even on Shabbat Chol HaMoed Sukkot it should be so, but the custom is not so, for on Shabbat Chol HaMoed Sukkot we mention "the festival of Sukkot," because they are distinct in their Musaf offerings, and we complete the Hallel, which is not the case on Pesach (Magen Avraham, subsection 7). And we read the Haftarah in Yechezkel "The hand of Hashem was upon me...", because it deals there with the resurrection of the dead, which is destined to be in Pesach. And on Sukkot we read the Haftarah "On the day that Gog comes," because the victory over Gog and Magog will be in Tishrei (Tur). And we are accustomed to say Shir HaShirim, because Shir HaShirim speaks of the love between the Assembly of Israel and their Father in Heaven, which had its beginning in the Exodus from Egypt. And on Shavuot we read Ruth, and on Sukkot, Kohelet. And if all of Chol HaMoed is on weekdays, we read this on one of the latter days when it falls on Shabbat. And the people are accustomed not to recite a blessing over them, even if they read from a Megillah, for we have not found an enactment of the sages of the Shas regarding this. And there are some of the great authorities who wrote to recite a blessing, but we do not practice so (and the Taz wrote that it would be a blessing in vain).
שבת שחל בחול המועד, ערבית שחרית ומנחה מתפלל כבכל השבתות, אלא שאומר "יעלה ויבוא" ב"עבודה". ואם לא אמר – מחזירין אותו. וכן בברכת המזון, מפני שבשבת חובה לאכול פת. ובמוסף אומר מוסף של כל החול המועד, ומוסיף "את יום השבת הזה", ואומר "ותתן לנו ה' אלהינו את יום השבת הזה, ואת יום חג המצות הזה". וכן ב"ומפני חטאינו" אומר "את מוספי…", וחותם "מקדש השבת וישראל והזמנים". אבל המפטיר אינו חותם רק בשל שבת, דאלמלי שבת אין הפטרה בחול המועד (ט"ז סעיף קטן ה). ולטעם זה גם בשבת חול המועד סוכות כן, אבל אין המנהג כן, דבשבת חול המועד סוכות מזכירין "חג הסוכות", משום דחלוקים במוספים, וגומרין את ההלל מה שאין כן בפסח (מגן אברהם סעיף קטן ז). ומפטירין ביחזקאל "היתה עלי יד ה'…", משום דמיירי שם בתחיית המתים, שעתידה להיות בפסח. ובסוכות מפטירין "ביום בא גוג", משום דנצחון גוג ומגוג יהיה בתשרי (טור). ונוהגין לומר שיר השירים, מפני ששיר השירים מדבר על האהבה שבין כנסת ישראל לאביהם שבשמים, שהיתה ההתחלה ביציאת מצרים. ובשבועות קורין ברות, ובסוכות בקהלת. ואם כל החול המועד הוא בימות החול, קורין זה באחד מימים האחרונים כשחל בשבת. והעם נהגו שלא לברך עליהם, אפילו אם קוראין במגילה, כי לא מצינו תקנת חכמי הש"ס בזה. ויש מן הגדולים שכתבו לברך, ואין נוהגין כן (והט"ז כתב דהוי ברכה לבטלה).