The following provides some examples how you can achieve certain goals with Governors. They also serve to get a better understanding of how Governors work in, and can be used as a foundation to write more complex Governors.
Say you want your population to always be distributed by 30% Farmers, 50% Workers and the remainder (20%) should be assigned to Scientists.
The first rule plays a special role: it makes sure that however the citizens are assigned before the Governor is run, they will all be converted to Farmers regardless. This produces a “clean slate”, and makes sure the following rules produces the desired result.
This is a good governor for starting out. As you become more familiar with the game you will probably want to customize this to suit your tastes but this governor is battle-tested and will work.
Rules #1 and #2 assign production queues to your planets. It is up to you to set these queues up. Rule #3 is actually a group of rules. This rule will automatically switch over to a Max Population governor once it has achieved its maximum population. It also stops processing the rules so that no more of this governor is processed. Rule #4 has already been explained, it forms a homogenized population base to make the following rules perform in a predictable manner. Rule #5 does the same but for stationed military. This is vital if you are using Breeder Planets. Rule #6 makes your planet all farmers until it reaches it’s 6th citizen. This gives your planet a nice boost in the beginning. Rule #7 makes sure you have enough farmers assigned to keep your planet growing. Rule #8 makes sure your base 4 science planets are researching when they are not building. Rule #9 is your safety net to make sure your planet does not starve.
A governor for a planet that has reached maximum population will need to start concentrating on maximum production since population growth is no longer an issue.
As you can see this is a pretty simple rule set. Rules #1 and #2 are to create a homogenized population. Rule #2 may seem strange since the planet has already reached its maximum population so there should be no more need to convert military to citizens. Adding this rule allows you to manually switch planets that are receiving population from a breeder planet to this governor so that they will build their infrastructure more efficiently. Rule #3 is self-explanatory. Rule #4 maximizes production(and research) by using Controlled Starving. Rule #5 makes sure your base 4 science planets are researching when they are not building.
This is a somewhat complicated governor that will automatically build all facilities necessary for a breeder planet. It is a good demonstration of how to automatically build facilities with a governor.
Note: Rule #4 is a group of rules. You can find more details on the Governors Page of the manual. Grouping is specifically covered here.