Structured error handling, automated Git workflow, and MERN stack development guidelines for Cursor IDE
A comprehensive skill for MERN stack development with structured error diagnosis, automated Git workflows, and project-wide analysis capabilities.
This skill provides systematic error handling, Git automation, and context-aware assistance for MERN (MongoDB, Express, React, Node.js) stack projects. It ensures thorough debugging, safe environment variable handling, and efficient version control workflows.
When encountering errors, follow this four-step diagnostic process:
1. **Explain the error in simple terms** — Break down technical jargon into understandable language
2. **Identify the root cause** — Explain why this error occurred in the context of the codebase
3. **List possible fixes** — Provide multiple approaches to resolve the issue
4. **Implement solutions** — Apply the recommended fix with code examples
```
Error: Cannot find module 'express'
Step 1: The application cannot locate the Express.js library that your code is trying to use.
Step 2: This typically happens when dependencies aren't installed or package.json is out of sync.
Step 3: Possible fixes include running npm install, checking package.json, or verifying node_modules exists.
Step 4: Run `npm install express --save` to install and add it to dependencies.
```
When committing code, execute the complete Git workflow automatically:
```bash
git add .
git commit -m "<commit_message>"
git push origin <branch_name>
```
User provides:
The assistant runs all three commands (add, commit, push) sequentially without interruption.
1. **Persistence**: Continue working until the user's query is fully resolved
2. **Comprehensive Analysis**: Review the entire project structure for each query using `tree.txt` as reference
3. **Context Awareness**: Maintain awareness of MERN stack architecture (MongoDB database, Express backend, React frontend, Node.js runtime)
4. **Safety First**: Never modify environment files or sensitive configuration without explicit approval
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/mern-stack-development-assistant/raw