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

fact-check

Audit code for correctness and rigor — logic errors, silent error swallowing, wishful thinking, and unjustified fallbacks. This is not a style review; it's a logic review. Use when you want a focused correctness audit separate from the full code-police pass.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.5 KB

SKILL.md(원문)

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

Fact-Check

Audit code for correctness and rigor. This is not a style review — it's a logic review. Find places where the code lies to itself.

0. Determine Scope

Scope comes from $ARGUMENTS:

  • branch (default when $ARGUMENTS is empty) — audit only changes in the current branch/PR. Use git diff main...HEAD (or the appropriate base branch) to identify changed files and limit all subsequent steps to those files.
  • all — audit the whole codebase.
  • Anything else — treat the argument as the target itself (a file path, a diff range like origin/main...HEAD, or inline text/output to audit, e.g. when invoked by hickey to audit its own evaluation). Limit the audit to that target.

Do not use AskUserQuestion. This skill runs in a fork and is routinely invoked autonomously (e.g. from /do via hickey).

What to flag

1. Silent error swallowing

  • Bare try/except: pass, empty catch {}, || true hiding real failures.
  • Errors caught and logged but not propagated when callers depend on failure signals.
  • Result/Option/Maybe types silently defaulted without justification.

2. Inaccurate fallbacks

  • Default values that mask misconfiguration (e.g., falling back to "" or null when the real fix is to fail loud).
  • "Sensible defaults" that aren't actually sensible for the failure case.
  • Fallback paths that silently degrade correctness (e.g., returning stale data without indicating staleness).

3. Wishful thinking

  • Assumptions about input shape/type without validation at system boundaries.
  • Code that "can't fail" but actually can (network, filesystem, permissions).
  • Race conditions papered over with comments like "this should be fine".

4. Logic errors

  • Conditions that are always true/false.
  • Off-by-one errors, wrong comparison operators.
  • Variables shadowed or unused in a way that changes behavior.

5. Slow leaks

  • Collections that grow without bound, event handlers doing heavy work on every fire without debounce, watchers/listeners registered per-caller instead of shared, buffers sized to the full input when streaming would work.

Workflow

  1. Read the diff (or full files if scoped to whole codebase).
  2. For each changed file, read enough surrounding context to understand intent.
  3. List every finding with file, line, and a one-line explanation of the risk.
  4. For each finding, propose a concrete fix (code snippet or direction).
  5. If no issues found, say so — don't invent problems.

Principles

  • Fail loud over fail silent: Code should scream when something is wrong, not quietly do the wrong thing.
  • No wishful thinking: If it can fail, handle the failure explicitly.
  • Fallbacks must be justified: Every default/fallback needs a reason why that value is correct for the failure case, not just convenient.
  • Precision over coverage: Better to catch 3 real issues than flag 20 maybes.

Anti-patterns in YOUR review (strictly banned)

You are an LLM reviewing code. LLMs have a strong bias toward declaring code "acceptable" to avoid conflict. This command exists precisely to counteract that. Follow these rules absolutely:

  • NEVER talk yourself out of a finding. If you identified a problem, it IS a problem. Do not follow up with "However..." or "Verdict: acceptable tradeoff" or "practically safe." If the code has a bogus fallback, say so and propose a fix. Period.
  • NEVER use "theoretically X but practically Y" to dismiss. "Theoretically fragile but practically safe" is exactly the kind of wishful thinking this command is supposed to catch. If it's fragile, flag it and fix it.
  • NEVER issue a verdict of "no action needed" on a finding you just described. If it wasn't worth acting on, you shouldn't have listed it. Every finding you report MUST have a concrete fix.
  • NEVER end with reassurance. No "the logic is sound", no "the approach correctly targets the root cause", no "no other issues found" unless you genuinely found zero issues. Your job is to find problems, not to make the author feel good.
  • Assume the code is wrong until proven right. The default posture is skepticism, not charity. You are a prosecutor, not a defense attorney.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Review code for quality, simplicity, and common mistakes before declaring work complete.

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

juspay/vira202026년 5월 15일 업데이트

do

무료

Do a task end-to-end — implement, PR, CI loop, ship. ONLY invoke when the user explicitly types `/do` or `$do`; never auto-select from a natural-language request, even one that sounds like an end-to-end task.

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

juspay/vira202026년 5월 15일 업데이트

elegance

무료

Iteratively study and apply elegant coding patterns. Each iteration - understand the code, research what simple and elegant code looks like, apply learnings, verify with CI. Use as a standalone refactoring pass or when the user asks to make code more elegant, simple, or idiomatic.

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

juspay/vira202026년 5월 15일 업데이트

forge-pr

무료

Write engaging PR titles and descriptions for any forge (GitHub today; Bitbucket planned). Use when creating or updating PRs. Leads with narrative paragraphs and reaches for lists, tables, and diagrams when content is genuinely structured.

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

juspay/vira202026년 5월 15일 업데이트

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

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

juspay/vira202026년 5월 15일 업데이트

haskell

무료

Use this when writing or reviewing Haskell code. Covers error handling, type safety, idiomatic patterns, HLint compliance, Aeson usage, and testing.

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

juspay/vira202026년 5월 15일 업데이트

juspay의 스킬 모두 보기

이 스킬의 문제 신고