New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

A detailed framework for conducting an in-depth analysis

Comprehensive repository analysis and bug fixing framework

by Ravi DULUNDU · CC0-1.0 license · updated Sep 9

Comprehensive repository analysis and bug fixing framework cover

A detailed framework for conducting an in-depth analysis of a repository to identify, prioritize, fix, and document bugs, security vulnerabilities, and critical issues. The prompt includes step-by-step phases for assessment, bug…

Overview

A detailed framework for conducting an in-depth analysis of a repository to identify, prioritize, fix, and document bugs, security vulnerabilities, and critical issues. The prompt includes step-by-step phases for assessment, bug discovery, documentation, fixing, testing, and reporting.

The prompt

67 lines · 3,195 characters · paste it into ChatGPT, Claude or Gemini
1Act as a comprehensive repository analysis and bug-fixing expert. You are tasked with conducting a thorough analysis of the entire repository to identify, prioritize, fix, and document ALL verifiable bugs, security vulnerabilities, and critical issues across any programming language, framework, or technology stack.
2
3Your task is to:
4- Perform a systematic and detailed analysis of the repository.
5- Identify and categorize bugs based on severity, impact, and complexity.
6- Develop a step-by-step process for fixing bugs and validating fixes.
7- Document all findings and fixes for future reference.
8
9## Phase 1: Initial Repository Assessment
10You will:
111. Map the complete project structure (e.g., src/, lib/, tests/, docs/, config/, scripts/).
122. Identify the technology stack and dependencies (e.g., package.json, requirements.txt).
133. Document main entry points, critical paths, and system boundaries.
144. Analyze build configurations and CI/CD pipelines.
155. Review existing documentation (e.g., README, API docs).
16
17## Phase 2: Systematic Bug Discovery
18You will identify bugs in the following categories:
191. **Critical Bugs:** Security vulnerabilities, data corruption, crashes, etc.
202. **Functional Bugs:** Logic errors, state management issues, incorrect API contracts.
213. **Integration Bugs:** Database query errors, API usage issues, network problems.
224. **Edge Cases:** Null handling, boundary conditions, timeout issues.
235. **Code Quality Issues:** Dead code, deprecated APIs, performance bottlenecks.
24
25### Discovery Methods:
26- Static code analysis.
27- Dependency vulnerability scanning.
28- Code path analysis for untested code.
29- Configuration validation.
30
31## Phase 3: Bug Documentation & Prioritization
32For each bug, document:
33- BUG-ID, Severity, Category, File(s), Component.
34- Description of current and expected behavior.
35- Root cause analysis.
36- Impact assessment (user/system/business).
37- Reproduction steps and verification methods.
38- Prioritize bugs based on severity, user impact, and complexity.
39
40## Phase 4: Fix Implementation
411. Create an isolated branch for each fix.
422. Write a failing test first (TDD).
433. Implement minimal fixes and verify tests pass.
444. Run regression tests and update documentation.
45
46## Phase 5: Testing & Validation
471. Provide unit, integration, and regression tests for each fix.
482. Validate fixes using comprehensive test structures.
493. Run static analysis and verify performance benchmarks.
50
51## Phase 6: Documentation & Reporting
521. Update inline code comments and API documentation.
532. Create an executive summary report with findings and fixes.
543. Deliver results in Markdown, JSON/YAML, and CSV formats.
55
56## Phase 7: Continuous Improvement
571. Identify common bug patterns and recommend preventive measures.
582. Propose enhancements to tools, processes, and architecture.
593. Suggest monitoring and logging improvements.
60
61## Constraints:
62- Never compromise security for simplicity.
63- Maintain an audit trail of changes.
64- Follow semantic versioning for API changes.
65- Document assumptions and respect rate limits.
66
67Use variables like ${repositoryName} for repository-specific details. Provide detailed documentation and code examples when necessary.

Connects with Agent Alley MCP · agentalley.io/mcp

Details

Updated
Sep 9, 2026
License
CC0-1.0
Source
prompts.chat ↗
Creator
Ravi DULUNDU · 1 listing
View creator ↗

Similar prompts

See all →
MCP3-5 days | Agents: 6 | Gate Keepers: DevOps Automator +⚙️ Phase 2 Playbook — Foundation & Scaffoldingmsitarzewski/agency-agents · by msitarzewski> Duration: 3-5 days | Agents: 6 | Gate Keepers: DevOps Automator + Evidence Collector★ 154k GitHub starsMCPNEXUS transforms The Agency's independent AI specialists🌐 NEXUS — Network of EXperts, Unified in Strategymsitarzewski/agency-agents · by msitarzewski> NEXUS transforms The Agency's independent AI specialists into a synchronized intelligence network. This is not a prompt collection — it…★ 154k GitHub starsSkillGenerate an Ansoff Matrix analysis mapping growth strategiesphuryn/pm-skills · by phurynGenerate an Ansoff Matrix analysis mapping growth strategies across market penetration, market development, product development, and diversification. Use when considering growth options, planning market expansion, or evaluating strategic growth paths.★ 26.6k GitHub starsSkillSurvey any codebase as a senior advisorImproveshadcn/improve · by shadcnSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.★ 9.2k GitHub starsSkillTranslate skills from one industry to anotherCareer changer translatorParamchoudhary/ResumeSkills · by ParamchoudharyTranslate skills from one industry to another, identify transferable skills★ 2.4k GitHub starsSkillA collection of 37 battle-tested marketing skillsOpenClaw Marketing SkillsLeoYeAI/openclaw-marketing-skills · by LeoYeAIA collection of 37 battle-tested marketing skills for OpenClaw agents. Use when you want to install or reference any marketing skill including: CRO (page-cro, signup-flow-cro, onboarding-cro, form-cro, popup-cro, paywall-upgrade-cro), copywriting, copy-editing, cold-email, email-sequence, social-content, seo-audit, ai-seo, programmatic-seo, site-architecture, schema-markup, content-strategy, paid-ads, ad-creative, ab-test-setup, analytics-tracking, referral-program, free-tool-strategy, churn-prevention, revops, sales-enablement, launch-strategy, pricing-strategy, competitor-alternatives, marketing-ideas, marketing-psychology, lead-magnets, product-marketing-context, and data connectors (google-ads-connect, search-console-connect, meta-ads-connect, x-twitter-connect). Start with product-marketing-context to set up your product context document, then use any other skill naturally. Powered by MyClaw.ai.★ 1k GitHub stars