While there are rules of general applicability like the Federal Rules of Civil Procedure, each court has its own local rules, too. Be sure to check these before drafting litigation documents.
Federal Local Court Rules
California Local Court Rules
When engaged in litigation, it is helpful to gather as much information as you can about your opponent and the judge who will be hearing your case. Use a litigation analytics tool to locate data on:
Pursuant to the California Rules of Court, citations in documents submitted to Superior Courts may follow either the Bluebook or the California Style Manual, but must be consistent throughout. The California Courts of Appeal, however, "encourage" that brief writers follow the California Style Manual.
Drafting litigation documents can be scary, but there are lots of helpful resources available!