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

deterministic-checks

Use before committing, opening a PR, or reporting a task done — when you want ground-truth confirmation there are no conflict markers, live-looking credentials, debug leftovers, untracked TODOs, or oversized files, without spending a model turn re-reading every file yourself.

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

설치 방법 보기

포함된 파일(2)

  • SKILL.md4.0 KB
  • scripts/scan.sh3.3 KB

SKILL.md(원문)

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

Deterministic Checks

Overview

A shell script that scans a repository for five specific, mechanically-detectable problems and reports file:line locations. Zero model cost — it never asks Claude to "be careful" about something a regex can already prove.

Core principle: If a check can be regex or wc -c, it should never be a paragraph of instructions asking the model to look carefully. Reserve judgment calls for the model; hand mechanical checks to the script.

What it checks

CheckCatchesMisses (by design)
Conflict markers<<<<<<<, =======, >>>>>>> at line startMarkers inside a fenced code block that's documenting conflict markers (a known false-positive class — see below)
Live-looking credentialsAWS keys, GitHub tokens, PEM private keys, sk--style API keysAnything not matching those four shapes — this is not a general secret scanner
Debug leftoversconsole.log/console.debug, debugger;, pdb.set_trace(), binding.pry in JS/TS/Python/Go/Ruby filesDebug prints in languages/patterns not listed
Untracked TODO/FIXMETODO/FIXME/XXX with no #123 or TICKET-123 reference nearbyTODOs that reference a ticket — those are considered tracked
Oversized filesAny file over 5MB, excluding lockfiles and .min.jsNothing — this one has no heuristic gap

Usage

bash ${CLAUDE_SKILL_DIR}/scripts/scan.sh [path]   # defaults to .

Exit code 0 = clean, 1 = findings printed to stdout, 2 = usage error. In a Git repo it scans tracked + untracked-but-not-ignored files (via git ls-files); outside Git it walks the filesystem, skipping node_modules, .git, .claude/worktrees, dist, build, and vendor.

Set SCAN_NO_GIT=1 when project policy forbids even read-only Git commands. The script then uses the filesystem walk regardless of repository state:

SCAN_NO_GIT=1 bash ${CLAUDE_SKILL_DIR}/scripts/scan.sh .

Excluding a path (e.g. a docs file that intentionally shows conflict-marker syntax):

SCAN_EXCLUDE='path/to/docs-with-examples\.md' bash ${CLAUDE_SKILL_DIR}/scripts/scan.sh .

SCAN_EXCLUDE is a grep -Ev pattern matched against each file path.

Known false-positive class

Any file that documents these patterns — a git tutorial showing <<<<<<< HEAD, a security post pasting a fake AKIA... example, this skill's own README — will trigger a match. The script cannot distinguish "this is a real conflict" from "this is prose about conflicts" with a line-oriented regex. When a finding is a documentation example, exclude that path with SCAN_EXCLUDE rather than trying to make the regex smarter — a regex that understands fenced-code-block context is not worth the fragility it adds. This is the same trade every pre-commit secret scanner makes.

When to use vs. when not to

Use before: committing, opening a PR, reporting "done" on a task that touched files, merging a branch.

Don't use for: language-specific type checking, style/formatting (use the project's linter), security review beyond the four credential shapes above (use agents/security-audit-prompt.md for judgment-requiring review), or as a substitute for tests.

Wiring it as a hook instead of running it manually

This is also usable as a Stop hook so it runs automatically instead of you remembering to invoke it — see the hooks/hooks.json pattern in agents/hooks-automation-prompt.md. A Stop hook that exits 1 blocks the turn from ending until the findings are addressed or explicitly accepted.

Remember

This script proves the absence of five specific problems. It proves nothing else. Don't report "clean" as "reviewed" — it's a floor, not a review.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Use when evaluating, comparing, installing, or recommending a Claude Code plugin, Agent Skill, MCP server, agent toolkit, or GitHub-hosted AI extension, especially when popularity is weak evidence or the candidate requests shell, network, filesystem, or credential access.

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

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when cutting a release, writing a CHANGELOG entry, or summarizing what changed since a tag — when the repo's commits follow (or mostly follow) Conventional Commits and a mechanically-accurate section breakdown beats a model's reading of the diff.

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

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use before publishing documentation, merging a docs PR, or reporting a Markdown-heavy repo's navigation as complete — when you want ground-truth confirmation that internal links, heading anchors, and directory links resolve, without opening every file yourself.

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

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when the user names a coding or Claude Code task ("add OAuth", "set up hooks", "review this PR", "pick a model"), asks which prompt to use, says to "use the right prompt", or when you enter this repo and need to orient without reading every file.

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

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when the user names a coding, Claude Code, research, documentation, or technology-selection task; asks which prompt to use; says to use the right prompt; or when an agent enters this repository and needs to orient without reading every file.

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

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when a skill isn't triggering as expected, before adding a new skill (to check for a name collision), during periodic cleanup of an accumulated skills directory, or when asked to review skill quality — checks frontmatter validity, description quality against Skill Discovery Optimization conventions, body size, and cross-scope name collisions.

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

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Rtur2003의 스킬 모두 보기

이 스킬의 문제 신고