It is a perfectly good plan, and one that is not unusual. Be sure to do well to have the best chance of transfer admission. But also be aware that community colleges are under heavy budget cut pressure, so that getting into classes can be difficult. You can take courses at more than one community college before transfer. I assume you know about Welcome to ASSIST
for transfer credit articulation.
Note that CSUs do give some admission preference to "local" students. If you do most of your credit units at community colleges in Santa Clara County, you may gain a small admission preference at the CSU campuses in San Jose, San Francisco, and East Bay, but attending CCSF would gain the preference only in San Francisco and East Bay (see Publications and Resources | Student Academic Support | CSU
). UCs do not give any "local" preference.
For transfer to Berkeley EECS, you may find that Diablo Valley and Laney community colleges in the east bay have the best coverage of freshmen and sophomore level computer science courses needed for the major.