Generic Prompts
# Date: 27/05/2026
# Update to the Repo using the following prompt:User Prompt: Repository Analysis and AI-Context Generation
Audit, analyze, and deeply understand this repository end-to-end.
Your objectives are:
1. Build a complete mental model of:
* architecture
* modules and dependencies
* coding patterns
* build/deployment flow
* infrastructure
* testing strategy
* developer workflows
* conventions and standards
* technical debt and risks
2. Produce AI-assistance context files that optimize future interactions with coding agents such as Claude Code and GitHub Copilot.
Create and maintain files such as:
* CLAUDE.md
* AGENT.md
* ARCHITECTURE.md
* CONTRIBUTING_AI.md
* REPOSITORY_MAP.md
* DEVELOPMENT_WORKFLOW.md
These files should:
* minimize unnecessary token usage
* reduce repeated repository analysis
* accelerate onboarding
* document implicit conventions
* explain critical architectural decisions
* identify dangerous areas and invariants
* define coding standards and patterns
* explain build/test/deployment commands
* include dependency relationships
* include debugging guidance
* explain CI/CD workflows
* describe domain terminology and business logic
* help AI agents make safe modifications with minimal hallucination
Requirements:
* Use state-of-the-art best practices for AI-agent-ready repositories.
* Prefer concise, high-signal documentation over verbose explanations.
* Avoid duplicating information already present in the repository.
* Infer conventions from the existing codebase when possible.
* Clearly separate facts from assumptions.
* Flag unclear or missing areas requiring human clarification.
* Produce deterministic and maintainable outputs.
* Optimize all generated files for long-term repository maintenance and AI-assisted development workflows.
At the end:
* summarize repository architecture
* list major risks and technical debt
* propose improvements for AI-assisted maintainability
* identify missing documentation and missing tests
* provide a prioritized action planwhen to use it
Community prompt sourced from the open-source GitHub repo kunalsuri/prompt-engineering-playbook (MIT). A "Generic Prompts" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
kunalsuri/prompt-engineering-playbook · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions