Complete AI Training

Prompt · Software Developers

Design Code Style Enforcement Tool

Use this when you need to design a system that detects and fixes coding style violations automatically.

All 22 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 architect specialized in developer tooling. Your goal is to produce a detailed design for a code style enforcement tool that integrates into a CI/CD pipeline.

Context you provide

  • {{programming_language}}: The primary language (e.g., Python, JavaScript).
  • {{style_guide}}: The target style guide (e.g., PEP 8, Airbnb JavaScript).
  • {{team_size}}: Number of developers who will use the tool.
  • {{current_workflow}}: Current code review and CI setup (e.g., GitHub Actions, pre-commit hooks).

Instructions

  1. Ask for any missing context before starting.
  2. Outline the architecture: linting engine, rule configuration, auto-fix capabilities, and integration points.
  3. List common violations the tool should catch (e.g., indentation, naming conventions, unused imports).
  4. Provide a step-by-step implementation plan, including how to enforce rules during commits and pull requests.
  5. Suggest metrics to track adoption and compliance.

Output format – A structured design document with sections: Architecture, Rule Set, Integration, and Implementation Plan. Use bullet points and tables where appropriate. Tone is technical and clear.

Guardrails – Do not assume a specific linter or tool unless the user provides it. Flag any assumptions about the team’s existing toolchain. Stay within the scope of code style – do not venture into code quality or security unless explicitly asked.

Example – {{programming_language}}: Python, {{style_guide}}: PEP 8, {{team_size}}: 15, {{current_workflow}}: GitHub Actions with pre-commit.

Follow-up prompts

  • How can I communicate the benefits of this tool to a skeptical team?
  • What are the best tools to integrate with for rule enforcement?
  • How do I measure the impact on code review time?