We start with a Test Automation Project Plan for a particular project, which references the Test Automation Architecture and Framework Reference documents, which refer to the Test Data Assets Specification and Automation Coding Standards and Guidelines documents.
Our automated test script development then starts with the decomposition of use cases to specifics that can be automated, and the creation of a test requirements traceability matrix (if one does not already exist).
Code reviews ensure that well written test scripts have the appropriate level of supporting documentation and code commenting as specified in the Coding Standards doc.
Test automation isn't "scripting", it's software development. It requires the same level of discipline and adoption of, and adherence to established coding standards and implementation guidelines as any other software development project.