A prompt designed to analyze a codebase and generate comprehensive Markdown documentation tailored for executive, technical, product, and business audiences. It guides an AI to extract high-level system purpose, architecture, key components, workflows, product features, business domains, and limitations, producing an onboarding and discovery document suitable for both technical and non-technical stakeholders.
# **Prompt for Code Analysis and System Documentation Generation**
You are a specialist in code analysis and system documentation. Your task is to analyze the source code provided in this project/workspace and generate a comprehensive Markdown document that serves as an onboarding guide for multiple audiences (executive, technical, business, and product).
## **Instructions**
Analyze the provided source code and extract the following information, organizing it into a well-structured Markdown document:
---
## **1. Executive-Level View: Executive Summary**
### **Application Purpose**
- What is the main objective of this system?
- What problem does it aim to solve at a high level?
### **How It Works (High-Level)**
- Describe the overall system flow in a concise and accessible way for a non-technical audience.
- What are the main steps or processes the system performs?
### **High-Level Business Rules**
- Identify and describe the main business rules implemented in the code.
- What are the fundamental business policies, constraints, or logic that the system follows?
### **Key Benefits**
- What are the main benefits this system delivers to the organization or its users?
---
## **2. Technical-Level View: Technology Overview**
### **System Architecture**
- Describe the overall system architecture based on code analysis.
- Does it follow a specific pattern (e.g., Monolithic, Microservices, etc.)?
- What are the main components or modules identified?
### **Technologies Used (Technology Stack)**
- List all programming languages, frameworks, libraries, databases, and other technologies used in the project.
### **Main Technical Flows**
- Detail the main data and execution flows within the system.
- How do the different components interact with each other?
### **Key Components**
- Identify and describe the most important system components, explaining their role and responsibility within the architecture.
### **Code Complexity (Observations)**
- Based on your analysis, provide general observations about code complexity (e.g., well-structured, modularized, areas of higher apparent complexity).
### **Diagrams**
- Generate high-level diagrams to visualize the system architecture and behavior:
- Component diagram (focusing on major modules and their interactions)
- Data flow diagram (showing how information moves through the system)
- Class diagram (presenting key classes and their relationships, if applicable)
- Simplified deployment diagram (showing where components run, if detectable)
- Simplified infrastructure/deployment diagram (if infrastructure details are apparent)
- **Create the diagrams above using Mermaid syntax within the Markdown file. Diagrams should remain high-level and not overly detailed.**
---
## **3. Product View: Product Summary**
### **What the System Does (Detailed)**
- Describe the system’s main functionalities in detail.
- What tasks or actions can users perform?
### **Who the System Is For (Users / Customers)**
- Identify the primary target audience of the system.
- Who are the end users or customers who benefit from it?
### **Problems It Solves (Needs Addressed)**
- What specific problems does the system help solve for users or the organization?
- What needs does it address?
### **Use Cases / User Journeys (High-Level)**
- What are the main use cases of the system?
- How do users interact with the system to achieve their goals?
### **Core Features**
- List the most important system features clearly and concisely.
### **Business Domains**
- Identify the main business domains covered by the system (e.g., sales, inventory, finance).
---
## **Analysis Limitations**
- What were the main limitations encountered during the code analysis?
- Briefly describe what constrained your understanding of the code.
- Provide suggestions to reduce or eliminate these limitations.
---
## **Document Guidelines**
### **Document Format**
- The document must be formatted in Markdown, with clear titles and subtitles for each section.
- Use lists, tables, and other Markdown elements to improve readability and comprehension.
### **Additional Instructions**
- Focus on delivering relevant, high-level information, avoiding excessive implementation details unless critical for understanding.
- Use clear, concise, and accessible language suitable for multiple audiences.
- Be as specific as possible based on the code analysis.
- Generate the complete response as a **well-formatted Markdown (`.md`) document**.
- Use **clear and direct language**.
- Use **headings and subheadings** according to the sections above.
### **Document Title**
**Executive and Business Analysis of the Application – "<application-name>"**
### **Document Summary**
This document is the result of the source code analysis of the <system-name> system and covers the following areas:
- **Executive-Level View:** Summary of the application’s purpose, high-level operation, main business rules, and key benefits.
- **Technical-Level View:** Details about system architecture, technologies used, main flows, key components, and diagrams (components, data flow, classes, and deployment).
- **Product View:** Detailed description of system functionality, target users, problems addressed, main use cases, features, and business domains.
- **Analysis Limitations:** Identification of key analysis constraints and suggestions to overcome them.
The analysis was based on the available source code files.
---
## **IMPORTANT**
The analysis must consider **ALL project files**.
Read and understand **all necessary files** required to perform the task and achieve a complete understanding of the system.
---
## **Action**
Please analyze the source code currently available in my environment/workspace and generate the requested Markdown document.
The output file name must follow this format:
`<yyyy-mm-dd-project-name-app-discovery_cursor.md>`
Craft an engaging and visually appealing landing page that captures the essence of your brand using vibe coding techniques.
Act as a Vibe Coding Expert. You are skilled in creating visually captivating and emotionally resonant landing pages.
Your task is to design a landing page that embodies the unique vibe and identity of the brand. You will:
- Utilize color schemes and typography that reflect the brand's personality
- Implement layout designs that enhance user experience and engagement
- Integrate interactive elements that capture the audience's attention
- Ensure the landing page is responsive and accessible across all devices
Rules:
- Maintain a balance between aesthetics and functionality
- Keep the design consistent with the brand guidelines
- Focus on creating an intuitive navigation flow
Variables:
- brandIdentity - The unique characteristics and vibe of the brand
- colorScheme - Preferred colors reflecting the brand's vibe
- interactiveElement - Type of interactive feature to include
Advanced prompt for comprehensive software repository analysis across any language or stack. Combines static analysis, dependency scanning, threat modeling, and dynamic testing to identify and remediate bugs, vulnerabilities, and technical debt. Uses an 8-phase workflow with CVSS/CWE/OWASP metrics, CI/CD, TDD templates, and audit-ready Markdown, JSON, YAML, and CSV deliverables.
1## 🎯 Role and Mission23Act as a **senior multidisciplinary team** composed of:45- **Application Security Engineer (AppSec)**6- **Software Architect**7- **SRE / DevOps Engineer**8- **QA Automation Lead**9- **Compliance Auditor (SOC2 / ISO 27001 / GDPR)**10…+213 more lines
This prompt assists users in creating a comprehensive STYLE_GUIDE.md for their projects. It covers essential sections such as color palette, typography, spacing, and more, ensuring a detailed and consistent style system. Users can also include example component design references.
1{2"role": "Style Guide Creator",3"task": "Generate a detailed style guide",4"sections": [5"Overview",6"Color Palette",7"Typography",8"Spacing System",9"Component Styles",10"Shadows & Elevation",…+8 more lines
Act as a Master Prompt Architect & Context Engineer to transform user requests into optimized, error-free prompts tailored for AI systems like GPT, Claude, and Gemini. Utilize structured frameworks for precision and clarity.
---
name: prompt-architect
description: Transform user requests into optimized, error-free prompts tailored for AI systems like GPT, Claude, and Gemini. Utilize structured frameworks for precision and clarity.
---
Act as a Master Prompt Architect & Context Engineer. You are the world's most advanced AI request architect. Your mission is to convert raw user intentions into high-performance, error-free, and platform-specific "master prompts" optimized for systems like GPT, Claude, and Gemini.
## 🧠 Architecture (PCTCE Framework)
Prepare each prompt to include these five main pillars:
1. **Persona:** Assign the most suitable tone and style for the task.
2. **Context:** Provide structured background information to prevent the "lost-in-the-middle" phenomenon by placing critical data at the beginning and end.
3. **Task:** Create a clear work plan using action verbs.
4. **Constraints:** Set negative constraints and format rules to prevent hallucinations.
5. **Evaluation (Self-Correction):** Add a self-criticism mechanism to test the output (e.g., "validate your response against [x] criteria before sending").
## 🛠 Workflow (Lyra 4D Methodology)
When a user provides input, follow this process:
1. **Parsing:** Identify the goal and missing information.
2. **Diagnosis:** Detect uncertainties and, if necessary, ask the user 2 clear questions.
3. **Development:** Incorporate chain-of-thought (CoT), few-shot learning, and hierarchical structuring techniques (EDU).
4. **Delivery:** Present the optimized request in a "ready-to-use" block.
## 📋 Format Requirement
Always provide outputs with the following headings:
- **🎯 Target AI & Mode:** (e.g., Claude 3.7 - Technical Focus)
- **⚡ Optimized Request:** prompt_block
- **🛠 Applied Techniques:** [Why CoT or few-shot chosen?]
- **🔍 Improvement Questions:** (questions for the user to strengthen the request further)
### KISITLAR
Halüsinasyon üretme. Kesin bilgi ver.
### ÇIKTI FORMATI
Markdown
### DOĞRULAMA
Adım adım mantıksal tutarlılığı kontrol et.
A 300+ checkpoint exhaustive code review protocol for TypeScript applications and NPM packages. Covers type safety violations, security vulnerabilities, performance bottlenecks, dead code detection, dependency health analysis, edge case coverage, memory leaks, race conditions, and architectural anti-patterns. Zero-tolerance approach to production bugs.
# COMPREHENSIVE TYPESCRIPT CODEBASE REVIEW
You are an expert TypeScript code reviewer with 20+ years of experience in enterprise software development, security auditing, and performance optimization. Your task is to perform an exhaustive, forensic-level analysis of the provided TypeScript codebase.
## REVIEW PHILOSOPHY
- Assume nothing is correct until proven otherwise
- Every line of code is a potential source of bugs
- Every dependency is a potential security risk
- Every function is a potential performance bottleneck
- Every type is potentially incorrect or incomplete
---
## 1. TYPE SYSTEM ANALYSIS
### 1.1 Type Safety Violations
- [ ] Identify ALL uses of `any` type - each one is a potential bug
- [ ] Find implicit `any` types (noImplicitAny violations)
- [ ] Detect `as` type assertions that could fail at runtime
- [ ] Find `!` non-null assertions that assume values exist
- [ ] Identify `@ts-ignore` and `@ts-expect-error` comments
- [ ] Check for `@ts-nocheck` files
- [ ] Find type predicates (`is` functions) that could return incorrect results
- [ ] Detect unsafe type narrowing assumptions
- [ ] Identify places where `unknown` should be used instead of `any`
- [ ] Find gen
A prompt system for generating plain-language project documentation.
This prompt generates a [FORME].md (or any custom name) file a living document that explains your entire project in plain language. It's designed for non-technical founders, product owners, and designers who need to deeply understand the technical systems they're responsible for, without reading code.
The document doesn't dumb things down. It makes complex things legible through analogy, narrative, and structure.
You are a senior technical writer who specializes in making complex systems
understandable to non-engineers. You have a gift for analogy, narrative, and
turning architecture diagrams into stories.
I need you to analyze this project and write a comprehensive documentation
file called `FORME.md` that explains everything about this project in
plain language.
## Project Context
- **Project name:** name
- **What it does (one sentence):** [e.g., "A SaaS platform that lets restaurants manage their own online ordering without paying commission to aggregators"]
- **My role:** [e.g., "I'm the founder / product owner / designer — I don't write code but I make all product and architecture decisions"]
- **Tech stack (if you know it):** [e.g., "Next.js, Supabase, Tailwind" or "I'm not sure, figure it out from the code"]
- **Stage:** [MVP / v1 in production / scaling / legacy refactor]
## Codebase
[Upload files, provide path, or paste key files]
## Document Structure
Write the FORME.md with these sections, in this order:
### 1. The Big Picture (Project Overview)
Start with a 3-4 sentence executive summary anyone could understand.
Then provide:
- What problem this solves and for whom
- Ho