ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 Vatroslav

cc-mod-suggestion-sentence-case

Claude Code 모드입니다. prompt.suggest hook이 Tab으로 받은 흐린 프롬프트 제안을 다시 써서 대문자로 시작하고 마침표로 끝나게 하며, 슬래시 명령은 그대로 둡니다.

Vatroslav@Vatroslav

Vatroslav/cc-mod-suggestion-sentence-case/tree/main/plugin

번역 완료

이 mod 소개

Claude Code 모드입니다. 한 턴이 끝나면 Claude Code가 빈 프롬프트 상자에 다음 프롬프트를 흐린 글씨로 제안하고 Tab으로 받을 수 있게 합니다. 제안은 대개 소문자로 시작하고 마침표가 없어서, 프롬프트를 문장으로 쓴다면 받을 때마다 보내기 전에 고쳐야 합니다. 이 모드는 제안이 표시되기 전에 다시 써서 대문자로 시작하고 마침표로 끝나게 합니다.

| Suggested | Shown | |---|---| | run the tests | Run the tests. | | why did it fail? | Why did it fail? | | čekaj da završi | Čekaj da završi. | | `npm test` again | `npm test` again. | | /commit | /commit |

규칙

  • 첫 문자가 글자일 때만 대문자로 바꿉니다. 코드, 인용부호, 숫자로 시작하는 제안은 시작 부분을 유지합니다.
  • ., ?, !, …, : 뒤에는 마침표를 붙이지 않습니다.
  • 슬래시 명령은 그대로 둡니다.
  • 양쪽 끝의 공백을 제거합니다.
  • 바뀌는 것은 제안뿐입니다. 입력하거나 보낸 내용은 건드리지 않습니다.

작동 방식

plugin/hooks/register.ts의 prompt.suggest hook 하나가 텍스트를 다시 쓰고 next({ ...e, text })로 넘깁니다. $에서는 아무것도 호출하지 않습니다. 파일, 프로세스, 네트워크, 모델 호출이 없습니다.

Claude Code 자체의 제안과 다른 플러그인이 $.prompt.suggest를 통해 제안한 것 모두를 처리합니다.

설치

claude plugin marketplace add <path-to-this-repo>
claude plugin install cc-mod-suggestion-sentence-case@cc-mod-suggestion-sentence-case --scope user

2.1.287 이전 Claude Code 빌드에서는 설치된 플러그인의 함수 hook에 ~/.claude/settings.json의 env 블록에 "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1"을 추가해야 할 수 있습니다. Claude Desktop의 Code 탭에서 실제로 확인했습니다.

확인 및 테스트: claude plugin validate ./plugin 및 claude plugin test ./plugin.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add Vatroslav/cc-mod-suggestion-sentence-case
claude plugin install cc-mod-suggestion-sentence-case
원문 / README

cc-mod-suggestion-sentence-case

A Claude Code mod. After a turn, Claude Code proposes your next prompt as dim text in the empty prompt box, and Tab accepts it. The suggestion often comes in lowercase and without a full stop, so if you write your prompts as sentences, every accepted suggestion needs fixing before you send it. This mod rewrites the suggestion before it is shown: it starts with a capital letter and ends with a full stop.

| Suggested | Shown | |---|---| | run the tests | Run the tests. | | why did it fail? | Why did it fail? | | čekaj da završi | Čekaj da završi. | | `npm test` again | `npm test` again. | | /commit | /commit |

Rules

  • The first character is capitalized only if it is a letter. A suggestion that starts with code, a quote or a digit keeps its start.
  • No full stop is added after ., ?, !, … or :.
  • A slash command stays exactly as it is.
  • Spaces at either end are trimmed.
  • Only the suggestion changes. Nothing you type or send is touched.

How it works

One prompt.suggest hook in plugin/hooks/register.ts rewrites the text and passes it on with next({ ...e, text }). It calls nothing on $: no files, processes, network or model calls.

It handles every suggestion, both Claude Code's own and any that another plugin proposes through $.prompt.suggest.

Install

claude plugin marketplace add <path-to-this-repo>
claude plugin install cc-mod-suggestion-sentence-case@cc-mod-suggestion-sentence-case --scope user

On Claude Code builds before 2.1.287, function hooks of installed plugins may need "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1" in the env block of ~/.claude/settings.json. Verified live in the Code tab of Claude Desktop.

Check and test: claude plugin validate ./plugin and claude plugin test ./plugin.

비슷한 프로젝트