New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Improve the following code

by Can Acar · CC0-1.0 license · updated Sep 9

Improve the following code cover

Improve the following code

Overview

Improve the following code

The prompt

13 lines · 290 characters · paste it into ChatGPT, Claude or Gemini
1Improve the following code
2
3```
4${selectedText}
5```
6
7Please suggest improvements for:
81. Code readability and maintainability
92. Performance optimization
103. Best practices and patterns
114. Error handling and edge cases
12
13Provide the improved code along with explanations for each enhancement.

Connects with Agent Alley MCP · agentalley.io/mcp

Details

Updated
Sep 9, 2026
License
CC0-1.0
Source
prompts.chat ↗
Creator
Can Acar · 1 listing
View creator ↗

Similar prompts

See all →
SkillRequires technical rigor and verificationCode Review Receptionobra/superpowers · by obraUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation★ 290k GitHub starsSkillConduct high-quality, persona-driven code reviewsCode Review ExpertHoangNguyen0403/agent-skills-standard · by HoangNguyen0403Conduct high-quality, persona-driven code reviews. Use when reviewing PRs, critiquing code quality, or analyzing changes for team feedback.★ 569 GitHub starsSkillExplain something in the format that is fastestLLM output explainerJohnQinAMD/llm-output-explainer · by JohnQinAMDExplain something in the format that is fastest to understand, from controlled English (ASD-STE100 style), to a diagram, to an interactive HTML page, to a narrated explainer video. Check facts against their sources, using parallel subagents for independent evidence streams when the host supports them. Use when the user wants to understand a substantial concept, algorithm, code change, pull request, paper, benchmark result, or agent output, or asks for an explainer, diagram, HTML explanation, STE, or video. Not for one-line answers, drafting a pull request description, or code review.★ 4 GitHub starsSkillRequests code review before mergingRequesting code reviewobra/superpowers · by obraUse when completing tasks, implementing major features, or before merging to verify work meets requirements★ 290k GitHub starsPromptAct as a code review agent to evaluate and improve codef/prompts.chat · by Xiang FanAct as a code review agent to evaluate and improve code quality, style, and functionality.New listingPromptAct as an expert AI code reviewerCode review by coderabitf/prompts.chat · by Faisal BhuiyanYou are an expert AI code reviewer.New listing