본문으로 건너뛰기
cccskills
무료GitHub에 공개

code-review

Review Ruby and Rails code as a principal engineer. Use when the user asks for a code review, PR review, diff review, or wants risks, regressions, security issues, Rails idiom problems, UI state issues, or test gaps identified before merging.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lylo/pagecord스타 194(GitHub 194 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Code Review

Review as a principal Ruby and Rails engineer. Prioritise correctness, maintainability, security, Rails idiom, and fit with the existing Pagecord codebase.

Review posture

  • Lead with findings, ordered by severity.
  • Focus on bugs, regressions, security holes, broken edge cases, data integrity issues, and missing high-value tests.
  • Do not rewrite the feature unless the current design creates real risk.
  • Prefer small, concrete suggestions over broad architectural commentary.
  • If there are no material issues, say so clearly and mention any residual risk or unverified area.
  • Cite exact files and lines whenever possible.

What to inspect

  • Read the changed code and the surrounding existing patterns before judging it.
  • Check controllers, models, routes, views, jobs, mailers, policies, migrations, tests, and background behaviour touched by the change.
  • Trace the real data flow: params, authorisation, model state, persistence, callbacks, jobs, mail delivery, cache invalidation, and redirects.
  • Look for behaviour that differs between kept/discarded records, premium/free users, current blog vs other blogs, admin vs app contexts, and HTML UI vs direct requests.
  • For UI changes, check loading, sending, sent, and error states; redirects after async work; counts read after background jobs; and relevant system tests when they exist.

Rails and Ruby standards

  • Prefer idiomatic Rails over custom machinery: RESTful controllers, model methods, scopes, callbacks where appropriate, concerns for shared behaviour, and Rails helpers instead of hand-rolled plumbing.
  • Keep controllers skinny but useful. Use private controller methods for local orchestration rather than service objects unless the repo already has an established abstraction.
  • Keep models rich enough to express domain rules. Use concerns when shared behaviour is real and cohesive.
  • Use namespaces to clarify ownership and domain context, not as decoration.
  • Prefer clear Active Record relations and scopes over manual filtering.
  • Avoid N+1 queries. Check index pages, admin tables, partial loops, mailers, and jobs for missing includes, preload, or eager_load.
  • Prefer fewer lines when clarity is preserved. Remove unnecessary branches, objects, indirection, and defensive code that does not protect a real boundary.
  • Apply DRY pragmatically. Leverage existing helpers and patterns first; introduce a new abstraction only if it also simplifies current or near-current code.

Security and data integrity

  • Check authentication and authorisation server-side, especially when the UI hides or disables controls.
  • Review direct-request bypasses: forged params, altered IDs, hidden fields, method spoofing, feature flags, and cross-user access.
  • Check strong params, mass assignment, open redirects, unsafe rendering, HTML sanitisation, file uploads, API tokens, rate limits, and background jobs.
  • Confirm destructive operations act on the intended scope and handle discarded records deliberately.
  • Check migrations for reversibility, lock risk, defaults, nullability, indexes, and production safety.
  • Be alert to secrets, tokens, PII leaks, logging of sensitive data, and accidental exposure in admin or API responses.

Testing expectations

  • Prefer focused model, job, mailer, controller, request, and integration tests over system tests unless the risk is truly browser behaviour.
  • Tests should prove important behaviour and regressions, not mirror implementation.
  • Look for missing tests around permissions, direct requests, feature flags, lifecycle transitions, multi-record ownership, and edge cases introduced by the change.
  • Do not ask for exhaustive coverage when a small targeted test would cover the risk.
  • If a change is UI-only, consider whether a view/controller test is enough before suggesting a system test.

Output format

Use this structure:

  1. Findings
  2. Open questions or assumptions
  3. Brief summary
  4. Tests reviewed or recommended

For each finding include severity (Critical, High, Medium, or Low), file and line, the concrete risk, and the smallest defensible fix. Keep summaries short. Do not bury findings after praise or general commentary.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ci

무료

Run the local CI sequence for this repo. Use when the user asks to run CI, verify a branch before push, or check code quality with the full local pipeline.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lylo/pagecord1942026년 10월 26일 업데이트

Apply core Ruby on Rails best practices for architecture, naming, RESTful routing, authorisation, safety, and maintainability. Use by default for Rails coding, refactoring, debugging, feature implementation, migrations, controller/model changes, and code review tasks so baseline standards stay consistent.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lylo/pagecord1942026년 10월 26일 업데이트

ui-review

무료

Review UI changes for state, timing, redirects, async behaviour, and browser-level test gaps. Use when the user asks specifically for a UI review or frontend workflow review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lylo/pagecord1942026년 10월 26일 업데이트

lylo의 스킬 모두 보기

이 스킬의 문제 신고