[DOCS] timo-refactor 스킬에 공통 유틸 배치 기준 추가 - #150
Conversation
- 공통 유틸 추출 시 공통/도메인 종속 판단 기준과 JSDoc 작성 규칙을 추가했습니다 - 예시를 오래된 lib/format.ts 경로에서 실제 코드베이스 경로(apps/timo-web/utils, constants)로 갱신했습니다
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 48 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Walkthrough
Changes유틸리티 추출 지침
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Timo Performance ReportBundle Size — timo-web
Lighthouse — timo-web
Image Optimization — timo-web
측정 커밋: |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.agents/skills/quality/timo-refactor/SKILL.md:
- Around line 73-77: Update the JSDoc requirement in the
transformation/formatting placement guidance to distinguish functions from
constants: require functions to include a description, `@param`, `@returns`, and
`@example`, while requiring constants to document their description, unit where
applicable, and usage scope. Keep the existing common-versus-domain-specific
placement rules unchanged.
- Around line 80-83: Update the Before/After example to describe the current
convertDurationToTimeText flow: reference the local convertDurationToTimeText
definition in duration.ts and its shared destination at
`@/utils/convert-duration-to-time-text`, replacing convertDurationToMinutes and
convert-duration-to-minutes.ts. Keep the shared constant example and JSDoc
guidance unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 22f8ea96-843d-437a-9767-7d6d3f0131ce
📒 Files selected for processing (1)
.agents/skills/quality/timo-refactor/SKILL.md
- JSDoc 규칙을 함수(utils)/상수(constants)로 나눠 구체화했습니다 - Before/After 예시를 convertDurationToTimeText/convert-duration-to-time-text.ts 기준으로 수정했습니다
ISSUE 🔗
close #148
What is this PR? 🔍
유틸/상수를 어디에 둘지 판단 기준이 없어 반복되던 리뷰 코멘트를 스킬 문서에 고정했습니다. 이슈에서는 새
timo-util스킬 생성을 계획했지만, 검토 결과 기존timo-refactor스킬에 이미 겹치는 섹션이 있어 새 파일 대신 그 섹션을 갱신하는 방향으로 바꿨습니다.배경
timo-refactor스킬의 "공통 유틸 추출" 섹션이 이미 있었지만, 판단 기준 없이 "3곳 이상 중복되면 추출"이라고만 되어 있었고, 예시 경로도 실제 코드베이스에 없는lib/format.ts를 가리키고 있었습니다.feat/web/136-connect-modal작업 중 시간 관련 상수·유틸(SECONDS_PER_MINUTE등)이 여러 파일에 중복 정의된 것을 발견해 사람이 직접 판단해 공통 위치로 옮겼는데, 이 판단 기준이 문서화돼 있지 않아 다음에도 같은 논의가 반복될 상황이었습니다. 이슈를 만들 때는 새timo-util스킬을 만드는 것으로 계획했습니다.timo-refactor의 기존 "공통 유틸 추출" 섹션과 트리거·내용이 겹치므로, 새 파일 대신 그 섹션 자체를 갱신해 중복 스킬이 생기지 않도록 했습니다.timo-refactor 스킬
lib/format.ts)는 실제로 존재하지 않는 경로라 참고가 되지 않았습니다.apps/timo-web/utils/constants, 도메인 종속(단일 기능 전용) → 해당 도메인_utils폴더라는 2단계 기준을 추가했습니다. Before/After 예시는 이번에 실제로 진행한 리팩터링(focus/_utils/duration.ts→constants/time.ts+utils/convert-duration-to-minutes.ts)을 그대로 반영했습니다.AGENTS.md의 트리거 매핑은 파일 경로·트리거가 그대로라 변경하지 않았습니다.To Reviewers
이슈 #148은 새 스킬 파일 생성을 전제로 작성됐지만, 실제로는 기존 스킬 갱신으로 방향을 바꿨습니다. 이슈 본문과 실제 변경 사항이 다르다는 점 참고해주세요. 판단 기준(공통 vs 도메인 종속)이 실제 팀 컨벤션과 맞는지 확인 부탁드립니다.
Screenshot 📷
Test Checklist ✔
pnpm check-types통과pnpm lint통과