본문으로 건너뛰기
Skillpedia
테스트48k · #5099

logic-lens

하는 일

이 도구는 코드를 분석해 다른 도구가 놓칠 수 있는 논리 및 보안 오류를 찾습니다. 복잡한 상황에서도 코드가 기대대로 작동하는지 확인합니다.

사용하는 경우

  • ✓새 코드를 큰 프로젝트에 병합하기 전(PR 리뷰)일 때.
  • ✓버그를 찾기 어렵고 일반 도구가 도움이 되지 않을 때.
  • ✓로그인이나 결제처럼 보안이 중요한 코드 부분을 검토할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-lens/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-lens/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 코드에서 논리 및 보안 결함이 있는지 검토해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 코드를 읽고 데이터 흐름을 이해한 뒤, 논리 규칙을 적용해 문제를 찾습니다. 계산 오류나 보안 취약점 등 9가지 이상의 위험 유형을 점검합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Logic Lens

Overview

Logic Lens is a Claude Code skill that performs deep, logic-driven code review using formal reasoning frameworks. Unlike traditional linters that check syntax and style, Logic Lens analyzes your code for logical errors, race conditions, security vulnerabilities, type mismatches, and algorithmic flaws that only appear when you reason through the code's behavior.

Powered by structured AI analysis, Logic Lens applies systematic logical inspection across 9 risk categories: null/undefined handling, type safety, concurrency, resource management, security injection, boundary conditions, algorithm correctness, state management, and API contract violations.

When to Use This Skill

  • Use when you want a thorough logic review before merging a PR
  • Use when a bug seems hard to find and standard linters aren't helping
  • Use when reviewing security-sensitive code paths (auth, payments, file access)
  • Use when refactoring complex business logic
  • Use when onboarding to a new codebase and need to understand risk areas

How It Works

Logic Lens uses Claude Code's reasoning capabilities to:

  1. Parse code structure and build a mental model of data flow
  2. Apply formal logic checks across 9 risk categories
  3. Trace execution paths for edge cases and boundary conditions
  4. Identify security anti-patterns (injection, privilege escalation, data leakage)
  5. Report findings with severity levels and actionable fix suggestions

Installation

# Install via Claude Code plugin marketplace
# Search: "logic-lens" in Claude Code > Extensions

# Or install via NPX (Antigravity)
npx agentic-awesome-skills --claude
# Then invoke: @logic-lens

Examples

Example 1: Review a Single File

@logic-lens review src/auth/login.ts for security issues

Logic Lens output:

[CRITICAL] SQL Injection risk at line 42: user input concatenated into query string
[HIGH] Missing rate limiting on login attempts
[MEDIUM] Password comparison uses == instead of timing-safe comparison
[LOW] Error messages may leak valid usernames (user enumeration)

Example 2: Full Repository Scan

@logic-lens scan the entire codebase and prioritize by severity

Example 3: Pre-PR Review

@logic-lens review all files changed in this branch before I open a PR

The 9 Risk Categories

Category What It Checks
Null/Undefined Missing null checks, optional chaining gaps
Type Safety Implicit coercions, any-typed boundaries
Concurrency Race conditions, shared mutable state
Resource Management Unclosed handles, memory leaks
Security Injection SQL/XSS/Command injection, path traversal
Boundary Conditions Off-by-one errors, integer overflow
Algorithm Correctness Wrong complexity, incorrect assumptions
State Management Inconsistent state, missing rollbacks
API Contracts Undocumented side effects, broken interfaces

Best Practices

  • Run @logic-lens on authentication and payment code before every release
  • Combine with @lint-and-validate for full coverage: style + logic
  • Review the CRITICAL and HIGH findings first; LOW findings can be deferred
  • Use @logic-lens on legacy code you are about to modify to understand risk surface

Benchmark Results

Logic Lens was tested against real-world codebases and caught issues missed by ESLint, TypeScript strict mode, and Snyk:

  • 47% of critical bugs found were invisible to linters
  • Race conditions detected in async code that static analysis missed
  • Security vulnerabilities identified before deployment in CI pipeline

Related Skills

  • @lint-and-validate — Complementary: run after logic-lens for style/syntax
  • @security-auditor — Specialized security-only deep scan
  • @debugging-strategies — Use when logic-lens findings need tracing

Additional Resources

Limitations

…

자주 묻는 질문

이 도구와 ‘린터’는 무엇이 다른가요?

린터는 코드 서식과 기본 문법 오류를 점검합니다. 이 도구는 더 깊이 들어가 내부 논리와 코드 동작을 분석해 더 복잡한 문제를 찾습니다.

어떤 문제를 찾을 수 있나요?

null 값을 다루는 방식의 오류, 코드 인젝션 같은 보안 문제, 동시성(여러 일이 동시에 일어날 때)의 문제, 계산 실수 등을 찾을 수 있습니다.

사람 리뷰어를 대체하나요?

아니요, 강력한 도우미입니다. 특히 중요한 결정에서는 경험 많은 프로그래머의 검토와 함께 사용해야 합니다.

상세 정보

작성자의 원본 설명

AI-powered Claude Code skill that performs deep code review using formal logic and reasoning frameworks to detect bugs, anti-patterns, and security risks beyond what linters catch.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5099
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬