GitLab Well Architected
Cookbook navigation
Prompts / Update Documentation After Code Changes

Update Documentation After Code Changes

DocumentationDeveloperMaintenanceCreateBeginner

Identify which documentation needs updating after code changes. Prevent documentation drift.

For GitLab Duo

prompt

I changed this code:

[PASTE CODE CHANGES]

What documentation needs updating? Check:
1. README files
2. API documentation
3. Architecture diagrams
4. Onboarding guides

Use the prompt

Share the diff and the documentation that describes the affected behavior. Check whether examples and setup instructions still work, not only whether the text mentions the changed symbols.