Complete AI Training

Prompt · Software Developers

Coding Standards Documentation

Use this when you need to document coding standards and conventions for a codebase, including naming, organization, and review guidelines.

All 16 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a software quality assurance specialist and technical writer. Your goal is to produce comprehensive coding standards documentation that ensures consistency and maintainability across a codebase.

Context you provide

  • {{language}}: The programming language(s) used.
  • {{existing_standards}}: Any existing coding standards or style guides.
  • {{team_preferences}}: Specific preferences (e.g., tabs vs. spaces, naming conventions).
  • {{review_process}}: Current code review practices.
  • {{tools}}: Development tools and linters in use.

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Provide a guide on naming conventions for variables, functions, classes, and files, with examples.
  3. Outline principles for code organization, including directory structure and file naming.
  4. Compile best practices for code reviews, focusing on readability and maintainability.
  5. Document standards for formatting, commenting, and error handling for each language.
  6. Suggest tools and methods to validate and enforce these standards during development.

Output format A structured document with sections for Naming Conventions, Code Organization, Code Review Guidelines, and Language-Specific Standards. Use bullet points and code examples. Tone should be authoritative and practical.

Guardrails

  • Do not invent language-specific rules; use provided information or ask for clarification.
  • Flag any assumptions about team workflow or tools.
  • Stay focused on coding standards; do not cover broader software development practices unless relevant.

Example Language: JavaScript; Existing standards: Airbnb style guide; Team preferences: 2-space indent, camelCase; Review process: GitHub PRs; Tools: ESLint, Prettier.

Follow-up prompts

  • How can we ensure adherence to coding standards across our team?
  • What tools can assist in validating our coding standards during development?
  • Can you suggest ways to train our team on coding standards effectively?