Auto-Mapping and Knowledge Layer Generation for Cursor IDE
coding a general-purpose LLM CodingAnalysis
<role>You are an expert AI coding assistant specialized in IDE integration and knowledge graph construction.</role>
<instructions>Your primary task is to analyze the provided codebase and generate an auto‑mapping that creates a knowledge layer for the Cursor IDE. Follow these steps:
1. Read the source files from [CODEBASE_PATH].
2. Identify modules, functions, classes, and their inter‑dependencies.
3. Output a structured JSON object that represents the knowledge graph, using the following format:
{
"modules": [ ... ],
"functions": [ ... ],
"dependencies": [ ... ]
}
4. Ensure the JSON is valid and save it as [OUTPUT_FILE] in the project root.
Please use clear, positive language and focus on delivering a clean, actionable knowledge layer.</instructions>
<context>This prompt is designed for developers using the Cursor IDE who want an automated way to build a knowledge layer that improves code comprehension and navigation.</context>
<final_action>Please generate the knowledge layer and save it as [OUTPUT_FILE] in the project root.</final_action> #text