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

code-review

Self-review local changes before creating a PR. Use when the user says "review", "review my code", "check my changes", or wants confidence before submitting.

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

ayunis-core/ayunis-core스타 34(GitHub 34 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.1 KB

SKILL.md(원문)

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

Code Review — Local Self-Assurance

Review your own uncommitted or committed-but-not-pushed changes locally. The goal is to catch real issues before creating a PR, so you submit with confidence.

This is a local-only review — nothing is posted to GitHub.

Input

The user invokes /code-review optionally with a scope:

  • /code-review — review all local changes (staged + unstaged + unpushed commits)
  • /code-review staged — only staged changes
  • /code-review <path> — only changes in specific files or directories

Steps

1. Determine the diff

Identify what to review based on the scope:

# Default: all local changes vs the merge base
git diff $(git merge-base HEAD main)..HEAD
git diff HEAD

# Staged only
git diff --cached

# Specific path
git diff $(git merge-base HEAD main)..HEAD -- <path>

If there are no changes, tell the user and stop.

2. Gather context

In parallel, collect:

  • The list of changed files and their directories
  • Any CLAUDE.md files in the repo root and in affected directories
  • A short summary of what the changes do (read the diff)

If the persistence-query-review skill is available and the diff changes repositories, finders, QueryBuilder code, or database calls in loops, load it. Trace the affected call paths and include the resulting SQL statements and round-trip count in the review context.

If the scalability-review skill is available and the diff touches list endpoints, queries on growing tables, @Cron tasks, BullMQ producers/consumers, process-local state, external provider calls, or upload/document/file processing, load it and include its Scale notes line in the review context.

3. Launch review agents

Launch 5 parallel agents, each with a different review lens. Provide each agent with the diff, changed file list, and relevant CLAUDE.md content.

Agent 1 — CLAUDE.md & Convention Compliance

Check whether the changes follow project conventions defined in CLAUDE.md files:

  • Naming patterns, coding style, comment style
  • Architecture boundaries and module rules
  • Any explicit "do" / "don't" instructions

Agent 2 — Bug Scan

Shallow scan for obvious bugs in the changed lines only:

  • Null/undefined risks, off-by-one errors, missing awaits
  • Incorrect conditions, wrong variable references
  • Broken error handling, silent failures
  • Focus on real bugs — skip anything a linter or type checker would catch

Agent 3 — Logic & Completeness

Read the changed files more broadly (not just the diff) to check:

  • Does the change do what it claims? Any missing cases?
  • Are there partial implementations (TODO left behind, half-wired features)?
  • Do new code paths have matching cleanup, rollback, or error handling?

Agent 4 — DRY & Simplicity

Check for unnecessary complexity in the changes:

  • Duplicated logic that should be extracted
  • Over-engineering (abstractions for single use, premature generalization)
  • Code that could be simplified without losing clarity
  • Dead code or unused imports introduced by the change
  • When persistence-query-review is available, apply it to persistence changes: flag avoidable reads or reloads, check-then-act races, N+1 access, and writes that could use one atomic database operation
  • When scalability-review was loaded, apply its checklist: flag unbounded reads, replica-unsafe crons or process-local state, request-path work that belongs on a queue, and connection or provider budget risks

Agent 5 — Security & Data Integrity

Check the changes for security and data concerns:

  • Injection risks (SQL, command, XSS)
  • Secrets or credentials in code
  • Missing input validation at system boundaries
  • Unsafe data handling (unvalidated casts, unchecked access)

4. Score each finding

For each issue found across all agents, assign a confidence score (0–100):

ScoreMeaning
0–25Likely false positive or pre-existing issue
26–50Might be real but could be a nitpick
51–75Probably real, worth a look
76–100High confidence — real issue that should be fixed

Discard anything scoring below 60.

5. Present findings

Group the surviving findings by severity:

## Code Review — Local

Reviewed N files, M lines changed.

### Critical (must fix)
- [Bug] Missing null check in `src/service.ts:42` — `user.org` can be undefined
  when called from the public endpoint (confidence: 92)

### Important (should fix)
- [Convention] CLAUDE.md requires early returns, but `handleRequest` uses
  nested if/else at `src/handler.ts:18-34` (confidence: 81)

### Suggestions (consider)
- [Simplicity] Lines 50-62 in `src/utils.ts` duplicate the pattern at line 12 —
  extract to a shared helper (confidence: 65)

### Looks Good
- No security issues found
- Error handling is consistent with existing patterns

If no issues survive the confidence filter, say so clearly:

## Code Review — Local

Reviewed N files, M lines changed.
No significant issues found. Good to submit.

6. Offer to fix

After presenting findings, ask:

"Want me to fix any of these before you create the PR?"

If the user says yes, fix the issues and re-run only the affected review agents to verify.

Guidelines

  • Local only — never post to GitHub, never read PR comments, never interact with remote
  • Changes only — review what the user changed, not pre-existing code (unless needed for context)
  • Real issues only — the confidence scoring exists to kill false positives; be aggressive about filtering
  • Actionable — every finding must include the file, line, and what's wrong; no vague warnings
  • Fast — use parallel agents; the user is waiting to submit
  • Respect the codebase — always check CLAUDE.md conventions before calling something an issue

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Query Ayunis deployed-environment telemetry in AppSignal — incidents, occurrence counts and error traces via the `appsignal-cli` binary; structured log attributes (user.id, org.id, nestjs.context, custom metadata) via the v2 logs API. Use when investigating a production/staging incident or log data — NOT for local dev logs (see backend-debugging).

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

ayunis-core/ayunis-core342026년 10월 26일 업데이트

Ayunis Core backend specifics — module boundaries, key files, and project conventions. Complements the nestjs-hexagonal-backend skill.

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

ayunis-core/ayunis-core342026년 10월 26일 업데이트

Frontend development in ayunis-core. Use when creating, modifying, or debugging frontend code (React, Feature-Sliced Design, API client).

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

ayunis-core/ayunis-core342026년 10월 26일 업데이트

Debug backend runtime errors (500s, crashes, unexpected behavior). Use when something is broken at runtime — not for writing new code.

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

ayunis-core/ayunis-core342026년 10월 26일 업데이트

Shared test fixtures for backend specs — port mock factories, domain builders, and shared IDs in a per-module testing/ folder. Use when a module's *.use-case.spec.ts files repeat the same mock-repository literal, inline entity construction, or hardcoded UUIDs across files.

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

ayunis-core/ayunis-core342026년 10월 26일 업데이트

Analyze Cursor Bugbot PR comments through a root-cause lens: is the finding valid, and is the suggested fix the real fix or a bandaid over a deeper problem? Use when the user asks to check, assess, or triage bugbot comments.

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

ayunis-core/ayunis-core342026년 10월 26일 업데이트

ayunis-core의 스킬 모두 보기

이 스킬의 문제 신고