Some monasteries traditionally worked on a “from each according to his abilities, to each according to his needs,” basis. It worked to a degree, in as much as they had taken vows of poverty...but even in such cases, I believe there was some barter commerce or outside sales of goods and services to surrounding communities. Also, such systems worked because they were God-centered, which is the antithesis of Marxist communism.
Under the Rule of Benedict, no one was allowed to starve but if you did not work you did not get meat. Nor beer nor wine I would presume.