Circuit: Skill for Claude Code

.agents/skills/review-and-fix/SKILL.md

review-and-fix is a skill for Claude Code from CIrcui-try/Circuit. It costs 23 tokens per session (1,504 once invoked), scanned A, original, MIT.

A code-review command examines the changes on the current Git branch, finds issues by severity, fixes selected problems, and commits and pushes the results. Git is a system for tracking code changes, while a branch is a separate line of work.

In plain words
What is it for?
It helps review changes against a development branch, check security and code-quality concerns, fix critical or major issues, and optionally handle minor issues before pushing.
Why use it?
It gives a repeatable way to review both committed and uncommitted changes, including new files, before sending the corrected work to the remote repository.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is CIrcui-try/Circuit's own configuration. It tells Claude Code how to work on Circuit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Circuit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CIrcui-try/Circuit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CIrcui-try/Circuit/main/.agents/skills/review-and-fix/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/CIrcui-try/Circuit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/circui-try/circuit/review-and-fix.svg)](https://agentmods.dev/skills/circui-try/circuit/review-and-fix)
Your own site
<a href="https://agentmods.dev/skills/circui-try/circuit/review-and-fix"><img src="https://agentmods.dev/badge/skills/circui-try/circuit/review-and-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,504 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.01504
Opus 5 $0.00012 $0.00752
Sonnet 5 $0.00005 $0.00301
Haiku 4.5 $0.00002 $0.00150

Measured 8d ago against content hash a4e635e3f08a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

review-and-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/review-and-fix/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

현재 브랜치의 로컬 변경사항을 직접 읽고 코드 리뷰를 수행한 뒤, 발견된 문제를 수정·커밋·푸시하는 커맨드.

$ARGUMENTS로 처리할 최소 심각도를 받는다. 예: /review-and-fix minor

  • critical → 🔴 Critical만 처리
  • major (기본값, 미지정 포함) → 🔴 Critical + 🟠 Major 처리
  • minor → 🔴 Critical + 🟠 Major + 🟡 Minor 전체 처리

절차

1단계: 로컬 변경 범위 확인

  1. 현재 브랜치 확인: git branch --show-current로 브랜치 이름을 가져온다.
  2. develop/main 경고: 현재 브랜치가 develop 또는 main이면 경고하고 중단한다.
  3. 작업트리 상태 확인: git status --short로 staged/unstaged/untracked 변경을 확인한다.
  4. 비교 기준 확인: origin/develop이 있으면 기본 기준으로 사용하고, 없으면 develop을 사용한다.
  5. 공통 조상 확인: git merge-base HEAD <기준브랜치>로 현재 브랜치의 로컬 변경 기준점을 찾는다.

2단계: diff 수집

  1. 브랜치 diff 수집: git diff <merge-base>...HEAD로 기준 브랜치 이후의 커밋 변경사항을 수집한다.
  2. 작업트리 diff 수집: staged 변경은 git diff --cached, unstaged 변경은 git diff로 수집한다.
  3. 변경 파일 목록 파악: git diff --name-only <merge-base>...HEAD, git diff --cached --name-only, git diff --name-only, git status --short?? 파일을 합쳐 중복 없이 확인한다.
  4. untracked 파일 확인: ?? 파일은 diff가 없더라도 파일 전체를 Read로 읽어 리뷰 대상에 포함한다.
  5. 변경 없음 처리: 수집된 diff와 변경 파일이 모두 없으면 사용자에게 알리고 종료한다.

3단계: 코드 리뷰

변경된 각 파일을 Read로 읽어 diff뿐 아니라 파일 전체 컨텍스트를 파악한 뒤 문제점을 찾는다.

리뷰 관점
  • 보안: 인젝션, XSS, 인증/인가 누락, 민감 정보 노출
  • 정합성: 로직 오류, 엣지 케이스 미처리, 누락된 에러 처리
  • 성능: 불필요한 쿼리, N+1, 무한 루프 가능성
  • 아키텍처: AGENTS.md에 명시된 레이어드 아키텍처 원칙 위반 여부
    • 백엔드: Router → Service → Repository 분리
    • 프런트엔드: Presentation → Domain → Data 분리
  • 코드 품질: 네이밍, 중복 코드, 불필요한 복잡도, console.log 잔존
심각도 분류
  • 🔴 Critical: 보안 취약점, 데이터 손실/훼손, 크래시/무한 루프 유발
  • 🟠 Major: 로직 오류, 누락된 에러 처리, 성능 문제, 아키텍처 원칙 위반
  • 🟡 Minor: 코드 스타일, 네이밍 개선, 불필요한 코드, 타입 미비

4단계: 리뷰 결과 정리 & 사용자 확인

$ARGUMENTS (미지정 시 major) 기준으로 필터링한 뒤 아래 형식으로 출력한다:

[1] 🔴 Critical — API/app/services/auth.py:194
    JWT 시크릿이 하드코딩되어 있음...

[2] 🟠 Major — Web/src/pages/login.tsx:28
    returnTo를 검증 없이 리디렉션에 사용...
  • 발견된 항목이 없으면 사용자에게 알리고 종료한다.
  • 출력 후 사용자에게 수정 진행 여부를 확인받는다.

5단계: 코드 수정

각 항목을 순서대로 처리한다:

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 103 lines · 0 tokens per session scan A a4e635e3f08a

Subscribe to this mod's changes

review-and-fix is a skill published in the GitHub repository CIrcui-try/Circuit (5 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 1,504 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

comet-github-pr-review

A read-only review process for pull requests in Comet's GitHub repositories. A pull request is a proposed code change; the review checks its current code, related issue, comments, merge status, and automated checks.

rpamis/comet · 69 tokens

pr-comment

Post friendly review comments to a GitHub PR — prepare locally, preview, then submit as atomic review. Use when: posting code review comments, giving PR feedback, sending inline suggestions. Not for: reading existing reviews (use load-pr-review), creating PRs (use create-pr), PR status (use pr-summary).

sd0xdev/sd0x-harness · 67 tokens

issue-work-loop

Run Herdr loops for one open GitHub issue (resolve→review→fix) or an existing PR (review→lazy fixer) until CLEAN. Don't use for plain resolution without review, review-only/no-fix requests, backlog automation, or merging.

luongnv89/skills · 55 tokens

pr-review

PR self-review — review changes, produce checklist, update rules.

sd0xdev/sd0x-harness · 15 tokens

doris-repo-review

Review an Apache Doris PR from a local clone with the same multi-agent, shared-ledger convergence workflow as the CI Code Review Runner. Use when the user supplies a PR to /doris-repo-review, asks to review a Doris PR locally, or asks for the CI-style review flow. Safely align only the current worktree to the exact PR…

apache/doris-skills · 180 tokens

azure-repos

Expert knowledge for Azure Repos development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, and integrations & coding patterns. Use when managing Git/TFVC repos, branch/PR policies, CLI/IDE integrations, CodeQL/scanning, or…

MicrosoftDocs/Agent-Skills · 115 tokens