A social code extends the idea of a personal code, to describe the appropriate behaviors for groupings of individuals. These groupings can have different sizes and constructions. For example, the code for a small society such as a tribe or a nuclear family would differ from the code for a large society such as a modern democratic market economy.
Examples of social codes include workplace codes of conduct, religious rules, etiquette, and municipal laws. We can also create new societies with codes designed to achieve the goal or purpose in question.