| Project Overview/Requirements Doc | High-level description: goals, scope, user stories, business logic, key features, and non-functional requirements (e.g., performance targets). | Gives the AI a "big picture" so it can align code suggestions with your project's purpose—e.g., avoiding suggestions that contradict core requirements. | Paste excerpts into prompts: “Using our project overview, implement a user authentication flow that supports OAuth.” Or upload as a reference file in AI tools like GitHub Copilot Chat. |
| Architecture Diagrams | Visuals like flowcharts, component diagrams (e.g., UML), data flow maps, or system boundaries. Tools: Draw.io, Lucidchart, or PlantUML code. | Helps the AI understand system interactions, dependencies, and modular structure, reducing off-topic suggestions (e.g., proposing a microservice when your app is monolithic). | Describe diagrams in text or share images in AI chats: “Based on this architecture diagram, add a caching layer to the API.” AI tools like Cursor can interpret images in some cases. |
| Codebase Documentation | README.md files, API specs (e.g., OpenAPI/Swagger), data models, database schemas, and module guides. Include code examples and change logs. | Teaches the AI your coding style, existing patterns, and tech stack, so suggestions fit seamlessly (e.g., matching your Python conventions). | Reference in prompts for specific tasks: “Referring to our API docs, extend the endpoint for user profiles with validation.” Use AI to auto-generate or update this doc based on your code. |
| Style Guide and Conventions | Coding standards (e.g., PEP8 for Python), naming conventions, formatting rules, and best practices (e.g., “always use async for I/O”). Include linter configs. | Ensures AI-generated code is consistent, readable, and maintainable—preventing "style drift" that could cause merge conflicts. | Set as a default context in AI settings (e.g., Copilot's custom instructions) or prompt: “Write code following our style guide—no camelCase, use snake_case.” |
| Glossary or Domain-Specific Terms | Definitions of jargon, acronyms, custom terms (e.g., “What is a 'widget' in our system?”), and business rules. | Avoids confusion in domain-heavy projects (e.g., finance or healthcare), where AI might misinterpret terms like “account” or “patient.” | Include in initial prompts or as a pinned chat message: “Use this glossary when suggesting code for our e-commerce backend.” |
| Test Cases and Specifications | Unit/integration test examples, test coverage reports, and acceptance criteria. Tools: pytest docs, JUnit specs, or Cucumber features. | Guides the AI to write testable code and helps with TDD (Test-Driven Development) in vibe coding—e.g., generating tests alongside code. | Prompt style: “Based on our test specs, write a function that passes these cases.” Or use AI to generate missing tests from existing code. |
| Error Logs and Common Issues | Historical bug reports, error traces, and known antipatterns (e.g., “Avoid using regex for email validation—use a library instead”). | Speeds up debugging by helping the AI recognize and fix recurring problems without you explaining from scratch. | Share in debug sessions: “Analyze this error log using our common issues doc and suggest a fix.” Keep it updated as a living document. |