⚡
AI Fix Prompts for Whisperjav
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.
1
Total Prompts
0
Critical (P0)
0
High (P1)
1
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
⚒ significant
#1
Simplify 5 high-complexity files
complexity refactoring quality
Expected outcome: All listed files reduced to medium or low complexity
Files to modify:
whisperjav/webview_gui/assets/app.js, whisperjav/translate/local_backend.py, whisperjav/webview_gui/api.py, whisperjav/main.py, whisperjav/ensemble/pass_worker.pyPrompt (copy this into your AI assistant)
These files in 'meizhong986__WhisperJAV' have high cyclomatic complexity: - **whisperjav/webview_gui/assets/app.js**: complexity=1292, max nesting=9, longest function=130 lines - **whisperjav/translate/local_backend.py**: complexity=463, max nesting=10, longest function=192 lines - **whisperjav/webview_gui/api.py**: complexity=393, max nesting=9, longest function=274 lines - **whisperjav/main.py**: complexity=390, max nesting=10, longest function=475 lines - **whisperjav/ensemble/pass_worker.py**: complexity=213, max nesting=7, longest function=267 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