Conversation
parser.ts — buildBehaviorSummary 레이블 개선: - await 호출 → (API 호출) `fn(arg)` → `result` 형태로 명시 - setState → (상태 변경) `setFoo(value)` - hook assign → (상태) `x` ← `useHook()` - 조건문 → (조건) `expression` - 에러 처리 → (에러 처리) catch `e` - guard clause 신규 감지: if (!x) return → (방어) `!x` 이면 조기 반환 gemini.ts — buildPrompt 로직 중심 개선: - 제거된 라인도 diff에 포함해 before/after 맥락 제공 - 프롬프트: "비즈니스 로직의 변화" + "부수 효과(API 호출, 상태 변경, UI 피드백)" 명시 - "변경 전후의 동작 차이를 명확히" 요구 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 출력 예시: ### 헤딩 → bold 인라인 형식으로 교체, 부수 효과 레이블 반영 - Features: 부수 효과 레이블(API 호출/상태 변경/방어 등), guard clause 감지 항목 추가 - Output Format: 새 형식 예시 + 줄 prefix 의미표 추가 (영/한 모두) - Gemini 설명: "비즈니스 로직 + 부수 효과 중심 요약"으로 업데이트 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
parser.ts: - (방어) → (guard) ... early return - (API 호출) → (API) - (상태 변경) → (setState) - (상태) → (state) - (조건) → (cond) - (에러 처리) → (catch) - 반환값 → (return) - 일반 함수 호출: "호출" 제거, 백틱만 표시 README.md / README.ko.md: - 출력 예시 및 prefix 표 동일하게 반영 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
📖 PR #10 — feat: 부수 효과 레이블 도입 및 Gemini 로직 중심 프롬프트 개선
📄
|
3rdflr
added a commit
that referenced
this pull request
Feb 23, 2026
feat: 부수 효과 레이블 도입 및 Gemini 로직 중심 프롬프트 개선
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buildBehaviorSummary의 각 동작 줄에(API 호출),(상태 변화),(상태 변경),(조건),(에러 처리),(방어)레이블을 인라인으로 추가if (!x) return패턴 →(방어) \!x` 이면 조기 반환` 으로 표시Test plan
npx ts-node src/test.ts— 34/34 passednpm run build:all— 빌드 성공🤖 Generated with Claude Code