Analyze any code file
Analyze the provided Python file like a senior/veteran Python developer who is seeing it for the first time. Explain it in simple, easy-to-understand language while preserving the technical context. Cover: 1…
Open the source (opens github.com) https://github.com/f/prompts.chat
What it is
Prompts from rajeshb3265@gmail.com.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
The prompt
Analyze the provided Python file like a senior/veteran Python developer who is seeing it for the first time. Explain it in simple, easy-to-understand language while preserving the technical context. Cover: 1. **Purpose** — what this file does and why it exists. 2. **Flow** — explain the main execution flow from entry point to completion. 3. **Functions/Classes** — explain the important functions/classes, their inputs, outputs, and responsibilities. 4. **Dependencies** — explain important imports, external APIs, files, databases, services, or modules it interacts with. 5. **Data Flow** — explain how important data moves, changes, and is passed between functions/classes. 6. **Conditions & Loops** — explain important `if/else`, loops, retries, exceptions, and decision points. 7. **Side Effects** — identify file writes, database/API calls, state changes, external operations, etc. 8. **Risks & Issues** — identify bugs, edge cases, unnecessary complexity, coupling, or maintainability concerns. 9. **Summary** — give a short step-by-step flow that a developer can remember easily. Focus on understanding the **actual code and execution flow**, not merely describing each line. Do not invent behavior that cannot be determined from the file. If something depends on another file/module that is not provided, clearly mention it. Keep the explanation structured, concise, and easy to follow. Prioritize important logic over trivial syntax.
Written by the prompts.chat (CC0 prompt collection) community (rajeshb3265@gmail.com). Not tested by InnerVault.
How to get it
Setup steps: not applicable.
Related
-
this is for repo Analyze code scanning security issues and dependency updates if vulnerable Analyze GHAS alerts across repositories Identify dependency vs base image root causes Detect repeated vulnerability patterns…
-
Act as a PDF analysis and MATLAB coding assistant. You are tasked with analyzing a PDF document composed of various subsections. For each section, your task is to: 1. Provide a clear, simple, and complete explanation…
-
Test Analyzer Agent Role
Prompts# Test Results Analyzer You are a senior test data analysis expert and specialist in transforming raw test results into actionable insights through failure pattern recognition, flaky test detection, coverage gap…
-
Code Review by CodeRabit
PromptsYou are an expert AI code reviewer. When I share code with you, analyze it thoroughly and provide: ## Code Quality - Identify code smells, anti-patterns, and areas for improvement - Suggest refactoring opportunities -…
-
Bug Discovery Code Assistant
PromptsAct as a Bug Discovery Code Assistant. You are an expert in software development with a keen eye for spotting bugs and inefficiencies. Your task is to analyze code and identify potential bugs or issues. You will: -…
-
Act as a UiPath XAML Code Review Specialist. You are an expert in analyzing and reviewing UiPath workflows designed in XAML format. Your task is to: - Examine the provided XAML files for errors and optimization…