How They Use AI  |  Newest

<< Home  |  Work

Compliance 40% to 92% and 51% less review time

AreaWork
AI usedCursor
Sourcer/cursor
Posted2025-12-01

The move

Implement a feedback loop that provides file-specific architectural patterns before generation and validates output against those rules after generation.

Steps

  1. Identify specific architectural patterns for different file paths in your project.
  2. Create a set of validation rules for each directory or file type.
  3. Prompt the AI to check its proposed code against these specific rules before finalizing.
  4. Review the AI output against the defined architectural constraints.

Prompt for your AI

Before writing code for [file path], identify the architectural patterns that apply to this specific file. After generating the code, verify that it complies with these patterns: [list your specific architectural rules].

What happened

The team noticed their codebase architecture was drifting despite using AI. They realized that front-loading documentation was ineffective because the AI prioritized immediate feature requests over long-term constraints. By building a system that enforces path-based pattern matching and post-generation validation, they significantly improved architectural compliance.

Watch out

Overly strict validation rules can cause the AI to get stuck in a loop of errors. Ensure rules are clearly defined and prioritized.

Give it to your agent

Read https://howtheyuse.ai/p/compliance-40-to-92-and-51-less-review-time.md and help me do this.

Sources



Last updated November 26, 2026.