We hold that a person's agent is like himself according to the Torah. It appears that there are four principles in this matter: Regarding a voluntary matter, such as buying and selling and the like, a person can appoint an agent for anything. Regarding a matter of a mitzvah, anything that is a preparation for a mitzvah, one can appoint an agent, such as to build a sukkah for him, or to buy him an etrog, shofar, tefillin, mezuzah, and tzitzit, and to attach them to the tallit, and to fix the mezuzah to the door. Similarly, to betroth a woman for him, for this too is like a preparation for a mitzvah, as the essence of the mitzvah is procreation [the Rosh, first chapter of Ketubot, siman 12, and the Ran ibid.]. Therefore, only regarding betrothal with money or a document can one appoint an agent, but not regarding betrothal through cohabitation, as that is the mitzvah itself. Even a matter of a mitzvah itself, if it is not an obligation but rather the mitzvah comes to him by his will, it too is like a voluntary matter, such as to separate on his behalf terumot, ma'asrot, and challah, and to bring bikkurim [see Rashi, Gittin 47b], for the Torah did not obligate one to buy a field and sow it or to bake bread, but rather when he voluntarily buys, sows, and bakes bread, he is obligated in them. Similarly, the redemption of a firstborn donkey, the sending away of the mother bird, and the making of a parapet—one can appoint an agent for these reasons, because he voluntarily brought himself into the obligation. And there are two matters regarding the mitzvah itself where it is an obligation upon him to perform the mitzvah and yet he can appoint an agent, and they are circumcision and the redemption of the son; for even though the obligation is cast upon him to take a wife, bear sons, circumcise them, and redeem the firstborn, nevertheless, since the mitzvah is not upon his own body but upon the body of his son, he can appoint an agent in his place. But a mitzvah that is upon his own body and is the completion of the mitzvah, such as to don tefillin, to sit in a sukkah, to take a lulav, and to eat matzah, or a mitzvah of speech, such as to pray, to recite the grace after meals, and to study Torah, or a mitzvah of hearing, such as to hear the reading of the Torah and to hear the shofar and the like—since the Torah obligated this specific body, he cannot appoint an agent in his place; and furthermore, the other person is occupied with his own mitzvot. And to divorce his wife, he can appoint an agent, for this is voluntary, as the Torah did not obligate him to divorce her; and even when she is promiscuous and it is a mitzvah to divorce her, nevertheless, the essence of divorce is voluntary. And there are matters that the Torah excluded from agency [Tosafot, beginning of Arachin].
קיי"ל דשלוחו של אדם כמותו מן התורה ונראה שיש בזה ד' כללים והוא דבדבר הרשות כמו לקנות ולמכור וכיוצא בזה יכול האדם לעשות שליח בכל דבר ובדבר מצוה כל מה שהוא הכנה למצוה יכול לעשות שליח כמו לבנות לו סוכה ולקנות לו אתרוג ושופר ותפילין ומזוזה וציצית ולעשותם בהטלית ולקבוע המזוזה בדלת וכן לקדש לו אשה דגם זהו כהכנה למצוה דעיקר המצוה היא פריה ורביה [רא"ש פ"ק דכתובות סי' י"ב ור"ן שם] ולכן רק בקידושי כסף ושטר יכול לעשות שליח ולא בקידושי ביאה דהיא המצוה עצמה ואפילו דבר מצוה עצמה אם אינה חובה אלא שברצונו באה לו המצוה גם היא כרשות כגון להפריש בעדו תרומות ומעשרות וחלה ולהביא ביכורים [ערש"י גיטין מ"ז:] דלא חייבה התורה לקנות שדה ולזורעה ולאפות פת אלא כשמרצונו קונה וזורע ואופה פת חייב בהם וכן פדיון פטר חמור ושילוח הקן ועשיית מעקה יכול לעשות שליח מטעם זה משום דברצונו הביא עצמו לידי חיוב ושני דברים יש במצוה עצמה וחובה עליו לעשות המצוה ומ"מ יכול לעשות שליח והם מילה ופדיון הבן דאף שחיוב מוטל עליו ליקח אשה ולהוליד בנים ולמולם ולפדות הבכור מ"מ כיון שהמצוה אינו על גופו אלא על גוף בנו יכול לעשות שליח במקומו אבל מצוה שעל גופו והיא גמר המצוה כמו להניח תפילין ולישב בסוכה וליטול לולב ולאכול מצה או מצוה שבדיבור כמו להתפלל ולברך ברכת המזון וללמוד תורה או מצוה שבשמיעה כמו לשמוע קריאת התורה ולשמוע שופר וכיוצא בזה כיון שהתורה חייבה גוף זה אינו יכול לעשות שליח במקומו ועוד דעל האחר מוטל מצות עצמו ולגרש אשתו יכול לעשות שליח דזהו רשות דלא חייבה התורה לגרשה ואף כשהיא פרוצה ומצוה לגרשה מ"מ עיקרא דגירושין רשות היא ויש דברים שהתורה מיעטתן משליחות [תוס' ריש ערכין]: