⚡
AI Fix Prompts for Elearning
Copy any prompt below into Claude, ChatGPT, or your AI coding assistant to automatically fix the issue. Each prompt includes full context, code location, and step-by-step fix instructions.
2
Total Prompts
0
Critical (P0)
0
High (P1)
2
Medium (P2)
0
Low (P3)
Download All (Markdown)
Download All (JSON)
Feed these prompts to any AI coder: Claude Code, Cursor, Copilot, GPT, Ollama
MEDIUM
⚡ quick-fix
#1
Add a LICENSE file
license legal
Expected outcome: LICENSE file added
Files to modify: Will be determined by the AI
Prompt (copy this into your AI assistant)
Repository 'phanmaikienhung__eLearning' has no detectable license. Add a LICENSE file. For open-source projects, MIT is recommended unless dependencies require a specific license. Create the full file.
Want this analysis on your repo? https://repobility.com/scan/
MEDIUM
⚒ significant
#2
Simplify 5 high-complexity files
complexity refactoring quality
Expected outcome: All listed files reduced to medium or low complexity
Files to modify:
src/components/student/course-player.tsx, src/app/(main)/courses/[slug]/page.tsx, src/app/(dashboard)/dashboard/courses/[id]/edit/page.tsx, src/app/(main)/my-learning/page.tsx, src/app/(admin)/admin/page.tsxPrompt (copy this into your AI assistant)
These files in 'phanmaikienhung__eLearning' have high cyclomatic complexity: - **src/components/student/course-player.tsx**: complexity=40, max nesting=7, longest function=272 lines - **src/app/(main)/courses/[slug]/page.tsx**: complexity=38, max nesting=9, longest function=446 lines - **src/app/(dashboard)/dashboard/courses/[id]/edit/page.tsx**: complexity=28, max nesting=5, longest function=189 lines - **src/app/(main)/my-learning/page.tsx**: complexity=27, max nesting=6, longest function=89 lines - **src/app/(admin)/admin/page.tsx**: complexity=17, max nesting=7, longest function=170 lines For each file: 1. Break large functions into smaller, focused functions 2. Reduce nesting depth (extract early returns, use guard clauses) 3. Simplify conditional logic 4. Extract complex expressions into named variables