MiguelMachado-dev/miguel-mods/tree/main/prompt-enhancer
prompt-enhancer
Claude Code에서 높은 effort의 Sonnet 5.5로 프롬프트를 다시 작성하고, 보내기 전에 검토할 수 있도록 결과를 프롬프트 상자에 돌려놓는 모드입니다. [Opus 5.5 prompting guide](https://claude.dev/blog/getting-the-most-out-of-opus-5-5/)를 따라 전체 작업을 한 메시지에 담고, 변경의 완료 기준, 멈추고 물어볼 시점, 「think step by step」이나 강조 없는 형식을 사용합니다. 프롬프트의 언어를 유지하며 작업 디렉터리와 최근 몇 메시지만 읽어 「그 버그」 같은 참조를 구체적인 이름으로 바꿉니다.
이 mod 소개
Claude Code 2.1.287 이상이 필요합니다.
개인정보: 모드가 무엇을 어디로 보내는지 설명합니다.
사용법
- 프롬프트 끝에
++를 붙이고 Enter를 누르면 프롬프트가 전송되지 않고 다시 작성된 내용이 상자로 돌아옵니다. 대화에는 아무것도 들어가지 않습니다. /enhance <prompt>도 같은 일을 하지만 명령과 출력은 대화에 남습니다./enhance-undo는 원래 프롬프트를 되돌립니다.
호출이 실패하면 작성한 프롬프트가 그대로 상자로 돌아옵니다.
++를 잡기 위해 모드는 prompt.submit 훅을 사용합니다. 프롬프트 상자에 입력되어 ++로 끝나는 프롬프트만 보류하고 전송하지 않습니다. 다른 모든 프롬프트(다른 모드가 제출한 프롬프트 포함)는 변경 없이 통과합니다.
보내는 내용과 대상
각 개선은 Claude Code를 통해 이루어지는 claude-sonnet-5-5 모델 호출 1회입니다. 자신의 요금제나 API 키를 사용하므로 사용량에 포함됩니다. 호출에는 다음이 들어갑니다.
- 개선을 요청한 프롬프트
- 세션 작업 디렉터리 경로
- 텍스트가 있는 대화의 최근 6개 메시지. 각 메시지는 1,200자로, 전체는 6,000자로 잘립니다
다른 곳에는 아무것도 보내지 않습니다. 모드는 /enhance-undo로 복원할 수 있도록 마지막 원본 프롬프트와 다시 작성한 결과를 자체 상태에 보관하며 파일은 읽지 않습니다.
설치
Claude Code에서:
/plugin marketplace add MiguelMachado-dev/miguel-mods
/plugin install prompt-enhancer@miguel-mods
/reload-plugins
/enhance가 나타나지 않으면 Claude Code를 다시 시작하세요.
모드는 Claude Code와 같은 접근 권한으로 사용자의 컴퓨터에서 Claude Code 안에서 실행됩니다. 설치 전에 hooks의 소스 코드를 읽으세요.
라이선스
MIT. 자세한 내용은 LICENSE를 참조하세요.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add MiguelMachado-dev/miguel-mods claude plugin install prompt-enhancer
원문 / README
prompt-enhancer
A Claude Code mod that rewrites a prompt with Sonnet 5.5 at high effort and puts the result back in the prompt box, so you review it before sending. The rewrite follows the Opus 5.5 prompting guide: the whole task in one message, a "done means" line for changes, when to stop and ask, and no "think step by step" or emphasis. It keeps the language of your prompt, and reads the working directory and the last few messages only to turn references like "that bug" into concrete names.
Needs Claude Code 2.1.287 or later.
Privacy: what the mod sends and where.
Usage
- End a prompt with
++and press Enter: the prompt is not sent, and the rewrite comes back to the box. Nothing enters the conversation. /enhance <prompt>does the same, but the command and its output stay in the conversation./enhance-undoputs the original back.
If the call fails, your prompt comes back to the box as you wrote it.
To catch ++, the mod hooks prompt.submit. It acts only on a prompt typed in the prompt box that ends with ++, which it holds back instead of sending. Every other prompt, including one that another mod submits, passes through unchanged.
What it sends and where
Each enhancement is one model call to claude-sonnet-5-5 made through Claude Code, on your own plan or API key, so it counts toward your usage. The call carries:
- the prompt you asked to enhance
- the path of the session's working directory
- up to the last 6 messages of the conversation that have text, each cut at 1,200 characters and 6,000 in total
Nothing is sent anywhere else. The mod keeps the last original prompt and its rewrite in its own state so /enhance-undo can restore it, and it reads no files.
Install
In Claude Code:
/plugin marketplace add MiguelMachado-dev/miguel-mods
/plugin install prompt-enhancer@miguel-mods
/reload-plugins
If /enhance doesn't show up, restart Claude Code.
A mod runs inside Claude Code on your machine with the same access Claude Code has. Read the source in hooks before installing.
License
MIT. See LICENSE.
