Zum Inhalt springen
Skillpedia
Tests48k · #5099

logic-lens

Was er macht

Dieses Tool analysiert deinen Code auf Logik- und Sicherheitsfehler, die andere Tools möglicherweise übersehen. Es prüft, ob sich der Code wie erwartet verhält, selbst in komplexen Situationen.

Wann du ihn nutzt

  • ✓Vor dem Zusammenführen neuen Codes in ein größeres Projekt (PR-Review).
  • ✓Wenn ein Bug schwer zu finden ist und normale Tools nicht weiterhelfen.
  • ✓Beim Prüfen von sicherheitskritischem Code, etwa bei Logins oder Zahlungen.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-lens/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe meinen Code auf Logik- und Sicherheitsfehler.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool liest deinen Code, versteht den Datenfluss und wendet logische Regeln an, um Probleme zu finden. Es prüft über 9 Arten von Risiken, zum Beispiel Rechenfehler oder Sicherheitslücken.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

…

Häufige Fragen

Worin unterscheidet sich dieses Tool von einem „Linter“?

Linter prüfen die Formatierung des Codes und grundlegende Syntaxfehler. Dieses Tool geht tiefer, analysiert die interne Logik und das Verhalten des Codes und findet so komplexere Probleme.

Welche Arten von Problemen kann es finden?

Es kann Fehler im Umgang mit null-Werten finden, Sicherheitsprobleme wie Code-Injection, Probleme bei Nebenläufigkeit (wenn mehrere Dinge gleichzeitig passieren) und Rechenfehler.

Ersetzt es einen menschlichen Reviewer?

Nein, es ist ein starker Assistent. Seine Analyse sollte mit einer Prüfung durch einen erfahrenen Programmierer kombiniert werden, besonders bei wichtigen Entscheidungen.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5099
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills