Library

Volume 4 · AI-Assisted Development (AI SDLC)

Notebook
Sign in

Section 13

AI Conventions & Standards

300 words · about 1 min

13.1 .cursorrules (or .github/copilot-instructions.md)

The file the AI automatically reads before generating any code.

What goes in it:

  • “Use .NET 8, C# 12.”
  • “Strictly adhere to SOLID principles and Clean Architecture.”
  • “Never use throw new Exception, always use custom Domain Exceptions.”
  • “When generating tests, use xUnit and Moq.”

Why it matters: It stops the AI from hallucinating outdated syntax or violating enterprise coding standards.

13.2 IMPLEMENTATION_PLAN.md

Before generating code, the engineer uses the AI to generate an implementation plan — the step-by-step checklist of what files will be created and how they map back to the requirement/ticket. The human reviews and approves the plan, and only then does the AI generate code based on that plan. This is the concrete proof of “planning before implementation.”

13.3 PULL_REQUEST_TEMPLATE.md (AI-Updated)

Standard PR template updated with an AI checklist:

[ ] I have manually validated the error handling of the AI-generated code.
[ ] This code does not expose any hardcoded secrets or PII.
[ ] The AI-generated tests cover both happy and edge cases.

This forces the human to take ultimate accountability for the AI’s output.

13.4 Interview Script

“To move a team from ‘ad-hoc prompting’ to a true AI-SDLC, I focus on injecting constraints directly into the repository. First, I create a .cursorrules file in the project root — our global AI governance, mandating Clean Architecture, specifying logging frameworks, forbidding bad practices. The AI is forced to read this before generating anything. Second, I enforce a ‘Plan-First’ convention: engineers must generate an IMPLEMENTATION_PLAN.md, get it reviewed and approved, then execute layer-by-layer. Finally, I update our PR templates with an AI validation checklist — the developer must confirm they’ve manually validated error-handling and security. The core standard: AI accelerates typing, the human is 100% accountable for the architecture.”