Comprehensive Repository Analysis

ProgrammingData AnalysisCybersecurityCharacter Prompts

This page contains the complete prompt template, ready to copy into a compatible language model. Related and popular prompts appear alongside it.

An exhaustive analysis of an entire codebase to identify, prioritize, fix, and document every verifiable bug, security vulnerability, and critical issue across the stack, worked through in defined phases.

Prompt content

{
“Mission: Integrated repository analysis
“Objective: “to conduct a detailed analysis of the entire cod repository in order to identify, prioritize, repair and document all verifiable errors, security gaps and key issues in all technology stacks”.

“Analysis phase”:[
{
“Phase:1,
"name": "Repository Discovery and Map",
“Steps”:[
{
“Step:1.1”,
"title": "Structure and structural analysis",
“Actions:[
“Map complete directory structuresrc/、lib/、tests/、docs/、config/、scripts/、build/、deploy/)”,
“Identification of all technology stacks and frames in use.
“Parsing List of Dependenciespackage.json、requirements.txt、go.mod、pom.xml、Gemfile、Cargo.toml、composer.json)”,
“Document entry points, main execution paths and modular boundaries”
“Analyse build systemsWebpack、Gradle、Maven、Make、CMake)”,
“View CI/CD ConfigureGitHub Actions、GitLab CI、Jenkins、CircleCI)”,
“Check existing documents (self-presentation documents, contributions,API (d) “Analysts, architecture”
]
},
{
“Step:1.2”,
"title": "Develop an environmental inventory",
“Actions:[
“Establish a framework for testingJest、Mocha、pytest、PHPUnit、Go test、JUnit、RSpec、xUnit)”,
“View linter/formatter ConfigureESLint、Prettier、Black、Flake8、RuboCop、golangci-lint、Checkstyle)”,
“Scan Inline Problem Marker (Scanning)TODO、FIXME、HACK、XXX、BUG、NOTE)”,
“Analysis git History to find problematic patterns and recent patches”
“The current test coverage reports and indicators are extracted”
“Identify the code analysis tool already in use (SonarQube、CodeClimate )
]
}
]
},
{
“Phase:2,
"name": "System Error Discovery",
“Error category:[
{
“Category: “Key”,
“Seriousness:P0”,
“Type:[
“SQLIt's not like it's going to be a bad idea.
“Cross-Script()XSS)It's a defect.
“Cross-site request for forgery (CSRF)A leak.
“Organisation/This is the first time that the government has been able to do anything.
“Remote Code ExecutionRCE)Risks”
“Data damage or loss of permanent data”
“A system collapse, a dead lock or an infinite cycle”
“This is the first time that the government has been able to make a difference.
“Unsafe encryption takes place.
“Hard-coded secret or certificate”
]
},
{
“Category: “Function”,
“Seriousness:P1-P2”,
“Type:[
“Logical error (incorrect conditions, miscalculation, miscalculation),
“(c) State regulation (competition conditions, old state, undue mutation)
“API Contract or request/Reaction map incorrect.
“Enter authentication is missing or insufficient.
“Disruption of business logic or violation of workflow”,
“Uncorrect data conversion or serialization”
“The type does not match or the unsafe type is mandatory.”
“Incorrect abnormal handling or error transmission”
]
},
{
“Category "Integration",
“Seriousness:P2”,
“Type:[
“External API Use incorrect or outdated endpoints”
“Database query error,SQLSyntax:N+1Question:
“Message Queue Processor Failed (%1)RabbitMQ、Kafka、SQS)”,
"File system error (authorities, paths)",
“Network communication problems (overtime, retest, connect pool)
“Cache incoherence or invalidity”
“Misuse or uncompatibility of third-party libraries”
]
},
{
“Category:EDGE_CASES”,
“Seriousness:P2-P3”,
“Type:[
“Empty/Undefined/nil/No pointer cancels the reference.
“Empty array/List/A grouping process.
“Zero or negative margin scenarios”
“Boundary conditions (maximum)/Minimum integer, string length limit)”
“The lack of error processing or eating anomalies,
“Timeout and Retry Logical Failure”
“There are no properly locked side access questions.
“Excess in value operation/Surplus”
]
},
{
“Category "Code Quality",
“Seriousness:P3-P4”,
“Type:[
“Invalid API Use it.
“Dead code or unaccessible code path.
“"Cyclical dependence,"
“The performance bottlenecks (low-impact algorithms, redundant operations) are not the same as the ones used in the project.
“Type comment missing or incorrect”
“An inconsistent error-processing mode.
“Resource leakage (file handles, database connections, web patches)
“Misrecording (sensitive data)e