As a Cape Verde citizen, you can get visa-free entry into South Africa for a maximum of 30 days.
Since extensions need to be applied for 60 days before expiration of the visa, that probably means you can't apply for an extension. Alternatively, if you want to stay longer than 30 days, you may want apply for a visa from your local consulate.
Remember that you need to be a genuine visitor (i.e. coming for tourism, business, etc., NOT to work or live in South Africa -- there are other visas for that) and that you need to have a return ticket or sufficient funds to buy one.
People coming from Cape Verde do not need a yellow fever vaccination certificate, though you may need one if you transit for a long enough time (>12 hours!) through a country which is on the list (which includes many other African countries).