Westminster Larger Catechism
Question 135: What are the duties required in the sixth commandment?
Answer: The duties required in the sixth commandment are all careful studies, and lawful endeavors, to preserve the life of ourselves and others by resisting all thoughts and purposes, subduing all passions, and avoiding all occasions, temptations, and practices, which tend to the unjust taking away the life of any; by just defence thereof against violence, patient bearing of the hand of God, quietness of mind, cheerfulness of spirit; a sober use of meat, drink, physic, sleep,labour, and recreations; by charitable thoughts, love, compassion, meekness, gentleness, kindness; peaceable, mild and courteous speeches and behaviour; forbearance, readiness to be reconciled, patient bearing and forgiving of injuries, and requiting good for evil; comforting and succouring the distressed and protecting and defending the innocent.
Q 136: What are the sins forbidden in the sixth commandment?
Answer: The sins forbidden in the sixth commandment are, all taking away the life of ourselves, or of others, except in case of public justice, lawful war, or necessary defence; the neglecting or withdrawing the lawful and necessary means of preservation of life; sinful anger, hatred, envy, desire of revenge; all excessive passions, distracting cares; immoderate use of meat, drink, labor, and recreations; provoking words, oppression, quarreling, striking, wounding, and whatsoever else tends to the destruction of the life of any.
Note that while the catechism mentions a number of things not directly related to life and self-defense, many of those things, if practiced, might avert a situation that could otherwise develop into a self-defense situation.