# Most Obvious Thing to Improve Prompt

> A single-line prompt for iterative code refactoring with AI

This is a minimalist prompt designed for Cursor and AI code assistants to spot easy refactoring wins. By asking for just the single most obvious issue across a set of files, you can incrementally improve code quality without overwhelming the model or introducing large bugs.

## The prompt

Prompt: "Within these X files, tell me the single most obvious thing that can be done better."

Usage: point it at a set of files, apply the fix it suggests, then repeat the prompt. Doing this often keeps the codebase clean and makes AI less frequently stuck.

## What it is for

- Clean up messy files before committing code
- Identify easy refactoring opportunities across a small group of files
- Prevent AI coding assistants from hallucinating by keeping review scopes narrow

## Key points

- Scopes AI context down to a specific set of active files
- Forces the assistant to prioritize only the single highest-impact fix
- Designed to be repeated iteratively after applying each suggestion
- Helps reduce code complexity and AI confusion over time

## Pricing

Free

## Details

- Type: Prompt
- Category: [Development](https://xiry.app/topics/development.md)
- Topic: [AI Prompts](https://xiry.app/topics/ai/ai-prompts.md)
- Open source: no
- Platforms: other
- For: Developers using AI code editors like Cursor
- Tags: cursor, prompts, refactoring, code quality, developer tools

## Why it was saved

- [@scheemunai, 13 March 2025](https://x.com/scheemunai/status/1900022306531139680): Cheap, repeatable way to surface code quality issues and let AI improve the codebase incrementally.

## Related

- [agency-agents](https://xiry.app/resources/agency-agents): Curated library of specialized AI agent personas and workflows for Claude Code (GitHub repo, Open source)
- [Senior Product Manager PRD Prompt](https://xiry.app/resources/prd-prompt-for-llms): System prompt to convert rough software ideas into structured, agent-ready PRDs (Prompt, Free)
- [15 ChatGPT Prompts by Topic (Atul Kumar)](https://xiry.app/resources/15-chatgpt-prompts-by-topic-atul-kumar): A cheat sheet of 15 business and marketing prompts for ChatGPT. (Prompt, Free)
- [5-Year Life Prediction Prompt Sequence](https://xiry.app/resources/5-year-life-prediction-prompt-sequence): Three-step transactional analysis prompt sequence for forecasting your future life trajectory (Prompt, Free)
- [9 ChatGPT Prompts for Accelerated Learning](https://xiry.app/resources/9-chatgpt-prompts-for-accelerated-learning): A collection of reusable ChatGPT prompts designed for studying and mastering topics (Prompt, Free)
- [Absolute Mode](https://xiry.app/resources/absolute-mode): A system prompt that removes conversational fluff and engagement-seeking behaviors from LLMs (Prompt, Free)

Updated 11 October 2026. Page: https://xiry.app/resources/most-obvious-thing-to-improve-prompt

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
