⚡
AI Fix Prompts for Liftlog
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 'keeper92__liftlog' 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.
Repobility's GitHub App fixes findings like these · https://github.com/apps/repobility-bot
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/app/(app)/workout/[id]/page.tsx, src/app/(app)/exercises/page.tsx, src/app/(app)/trainer/page.tsx, src/components/workout/ExercisePickerOverlay.tsx, src/app/api/chat/route.tsPrompt (copy this into your AI assistant)
These files in 'keeper92__liftlog' have high cyclomatic complexity: - **src/app/(app)/workout/[id]/page.tsx**: complexity=279, max nesting=9, longest function=231 lines - **src/app/(app)/exercises/page.tsx**: complexity=162, max nesting=6, longest function=216 lines - **src/app/(app)/trainer/page.tsx**: complexity=155, max nesting=7, longest function=383 lines - **src/components/workout/ExercisePickerOverlay.tsx**: complexity=145, max nesting=6, longest function=254 lines - **src/app/api/chat/route.ts**: complexity=143, max nesting=6, longest function=193 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