AI Fix Prompts for Sestool

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)
1
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
HIGH ⚙ moderate #1

Review high-risk license: GPL-2.0

license legal compliance
Expected outcome: License risk assessed and documented
Files to modify: LICENSE
Prompt (copy this into your AI assistant)
Repository 'razinkele__SESTool' uses GPL-2.0 which is classified as high-risk (copyleft/proprietary). Review whether this is intentional. If distributing commercially, consider re-licensing or isolating copyleft dependencies.
Repobility · open methodology · https://repobility.com/research/
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: MarineSABRES_SES_Shiny/modules/ai_isa_assistant_module.R, MarineSABRES_SES_Shiny/modules/ai_isa_knowledge_base.R, MarineSABRES_SES_Shiny/functions/report_generation.R, MarineSABRES_SES_Shiny/functions/network_analysis.R, MarineSABRES_SES_Shiny/functions/visnetwork_helpers.R
Prompt (copy this into your AI assistant)
These files in 'razinkele__SESTool' have high cyclomatic complexity:

- **MarineSABRES_SES_Shiny/modules/ai_isa_assistant_module.R**: complexity=442, max nesting=10, longest function=425 lines
- **MarineSABRES_SES_Shiny/modules/ai_isa_knowledge_base.R**: complexity=308, max nesting=8, longest function=61 lines
- **MarineSABRES_SES_Shiny/functions/report_generation.R**: complexity=271, max nesting=4, longest function=201 lines
- **MarineSABRES_SES_Shiny/functions/network_analysis.R**: complexity=268, max nesting=9, longest function=636 lines
- **MarineSABRES_SES_Shiny/functions/visnetwork_helpers.R**: complexity=225, max nesting=9, longest function=600 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