Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Cleanup Defensive

Skill Verifiziert Aktiv

Remove pointless try/catch blocks and defensive guards that hide errors or add no value. Preserves catches at true system boundaries (HTTP handlers, CLI entry, message consumers). Use when the user asks to remove try/catch, fix error hiding, clean up defensive code, or stop swallowing errors. Example queries — "remove pointless try/catch", "we're swallowing errors", "stop hiding bugs in catch blocks", "clean up the defensive code".

Zweck

To improve code quality and reliability by eliminating error-hiding defensive code and ensuring errors propagate correctly to system boundaries.

Funktionen

  • Removes pointless try/catch blocks
  • Cleans up defensive null-checks
  • Preserves catches at system boundaries
  • Supports multiple languages (TS/JS, Python, Go, Rust)
  • Generates assessment reports

Anwendungsfälle

  • When users ask to remove try/catch blocks
  • When users report errors being hidden or swallowed
  • When cleaning up defensive code patterns
  • Improving code robustness by surfacing real errors

Nicht-Ziele

  • Removing essential error handling at system boundaries
  • Modifying error handling in Go's `if err != nil` patterns
  • Removing `unwrap()` in Rust without proper replacement
  • Swallowing errors silently or returning null on failure

Workflow

  1. Identify language and project state (preflight).
  2. Scan for try/catch blocks or defensive error patterns.
  3. Categorize findings (Rethrow only, Swallow, Log+Rethrow, Substantive, Boundary).
  4. Generate a markdown report detailing findings.
  5. Automatically remove 'HIGH' confidence findings (pointless try/catch).
  6. Defer 'MEDIUM' findings (e.g., log+rethrow) for human review.
  7. Verify changes with tests; revert if tests uncover real bugs.

Praktiken

  • Code Quality
  • Refactoring
  • Error Handling

Trust

  • info:Issues Attention1 issue opened, 0 closed in the last 90 days. Maintainer engagement appears low or inactive.

Installation

npx skills add raintree-technology/claude-starter

Führt das Vercel skills CLI (skills.sh) via npx aus — benötigt Node.js lokal und mindestens einen installierten skills-kompatiblen Agent (Claude Code, Cursor, Codex, …). Setzt voraus, dass das Repo dem agentskills.io-Format folgt.

Qualitätspunktzahl

Verifiziert
99 /100
Analysiert about 16 hours ago

Vertrauenssignale

Letzter Commit19 days ago
Sterne75
LizenzMIT
Status
Quellcode ansehen

Ähnliche Erweiterungen

Cleanup Cycles

100

Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".

Skill
raintree-technology

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

Skill
affaan-m

Moyu (摸鱼)

100

자동으로 과잉 엔지니어링 패턴을 탐지합니다: (1) 사용자가 명시적으로 요청하지 않은 코드나 파일을 수정하는 경우 (2) 요청되지 않은 새로운 추상화 레이어(클래스, 인터페이스, 팩토리, 래퍼)를 생성하는 경우 (3) 요청되지 않은 주석, 문서, JSDoc, 타입 어노테이션을 추가하는 경우 (4) 요청되지 않은 새로운 종속성을 도입하는 경우 (5) 최소한의 편집 대신 파일 전체를 다시 작성하는 경우 (6) diff 범위가 사용자의 요청을 명백히 초과하는 경우 (7) 사용자가 "너무 많아", "거기는 건드리지 마", "X만 변경해", "간단하게", "그만"과 같은 신호를 보내는 경우 (8) 발생할 수 없는 시나리오에 대한 오류 처리, 유효성 검사, 방어적 코드 추가 (9) 요청되지 않은 테스트, 설정 스캐폴딩, 문서 생성

Skill
uucz

Deepinit

100

Deep codebase initialization with hierarchical AGENTS.md documentation

Skill
Yeachan-Heo

Netlify Identity

100

Verwenden Sie dies, wenn die Aufgabe Authentifizierung, Benutzerregistrierungen, Anmeldungen, Passwortwiederherstellung, OAuth-Anbieter, rollenbasierte Zugriffskontrolle oder den Schutz von Routen und Funktionen beinhaltet. Verwenden Sie immer `@netlify/identity`. Verwenden Sie niemals `netlify-identity-widget` oder `gotrue-js` – diese sind veraltet.

Skill
netlify

Vue Router Best Practices

100

Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.

Skill
hyf0