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

review-ai-slop

Review code for AI slop patterns. TRIGGER when user says "review for AI slop", "check for AI patterns", "clean up AI code", "audit AI-generated code", or "review AI slop".

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.8 KB

SKILL.md(원문)

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

AI Slop Review Checklist

Review the specified code for AI-generated slop patterns.

Target: $ARGUMENTS (or current git diff if no arguments provided)

Output format: Group findings by category. For each: file path, line number, pattern name, brief description, suggested fix. Do not make inline edits — report findings and let user decide what to fix.


A. Defensive Programming

Load the anti-defensive skill and apply all 10 patterns:

  1. Swallowing exceptions
  2. Dictionary defaults on required fields
  3. Null coalescing to fabricate data
  4. Type coercion instead of validation
  5. Compatibility shims
  6. Unnecessary null checks
  7. Catch-all exception handlers
  8. Over-validation at internal boundaries
  9. Fabricated default values
  10. Logging warnings instead of raising

B. Over-Engineering

PatternFlag When
Premature abstractionFactory/strategy/abstract base class for a single implementation. "In case we need it later."
Unnecessary wrappersget_config() that just calls os.environ.get(). Utility functions invoked only once.
Over-modularizationSimple logic split across many files when one suffices. Deep directory nesting for small codebase.

C. Unnecessary Infrastructure

PatternFlag When
Retry logic everywhereExponential backoff on local function calls or non-transient operations.
Config/env var overuseEvery constant configurable via env var, even ones that should never change (math constants, format strings).
Unnecessary asyncasyncio/threading on CPU-bound or already-fast operations (<10ms).
Feature flags for no reasonBoolean toggles controlling behavior that has no reason to vary.

D. Code Bloat

PatternFlag When
Excessive logginglogger.info on every function entry/exit. Logging parameter values and return values of internal functions.
Magic number extractionMAX_SIZE = 100 when 100 is obvious from context. Constants that add no clarity.
Trivial docstringsdef add(a, b): """Add a and b.""" — docstring restates function name.
Unnecessary data classesdataclass/TypedDict created for one-off use instead of just using a dict or tuple.

E. Testing Slop

PatternFlag When
Tests that test nothingAsserting a function exists or returns the right type, not that it returns correct values. Tests with no assertions.
Over-mockingMocking so heavily the test only validates the mock, not the real logic. Mocking what you're trying to test.

F. Other Patterns

PatternFlag When
Callback/event overuseEvent emitters, hook systems, or pub/sub for simple linear flows.
Runtime type checkingisinstance checks inside functions that duplicate what type hints + static analysis already handle.
Hallucinated importsUsing APIs from wrong library version. Importing packages that don't exist.
Boilerplate generatorsCode that exists to satisfy a template rather than solve a problem. Empty __init__.py with docstrings.

Summary Table

CategoryCountSource
A. Defensive Programming10anti-defensive skill
B. Over-Engineering3This skill
C. Unnecessary Infrastructure4This skill
D. Code Bloat4This skill
E. Testing Slop2This skill
F. Other4This skill
Total27

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Browser automation CLI for AI agents. Use when needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. TRIGGER when user requests to "open a website", "fill out a form", "click a button", "take a screenshot", "debug this in browser", "scrape data from a page", "test this web app", "login to a site", "frontend UI/UX aesthetics", "automate browser actions", or any task requiring programmatic web interaction.

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

archibate/dotfiles-opencode1082026년 4월 29일 업데이트

Review common AI slops of defensive programming patterns, avoid silent errors. TRIGGER when reviewing code for defensive anti-patterns, writing fail-fast code, or auditing error handling quality.

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

archibate/dotfiles-opencode1082026년 4월 29일 업데이트

ast-grep

무료

Guide for writing ast-grep rules to perform structural code search and analysis. This skill should be used when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search, or when a simple grep/glob search is insufficient for structural code pattern matching.

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

archibate/dotfiles-opencode1082026년 4월 29일 업데이트

Best practices for AI-driven English-to-Chinese translation. This skill should be used when the user asks to "translate to Chinese", "update the Chinese translation", "improve Chinese translation", "fix translation quality", "review Chinese translation", or when translating any English text into Chinese. Also applies when polishing an existing Chinese translation of English content.

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

archibate/dotfiles-opencode1082026년 4월 29일 업데이트

This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to bilibili", "monitor bilibili live room", "search bilibili", "get bilibili comments", or needs guidance on the bilibili_api Python library usage, authentication, API endpoints, or workflow patterns.

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

archibate/dotfiles-opencode1082026년 4월 29일 업데이트

This skill should be used when sending images, files, or notifications back to the user via messaging platforms (Discord, Feishu, Telegram, etc.) through cc-connect. TRIGGER when agent generates a plot/chart/screenshot and wants to show the user; agent creates a report/PDF/file the user should receive; agent needs to proactively notify the user (e.g. task completed, alert, reminder); user asks to "send image", "show me the chart", "notify me", "send the file", "send to Telegram", "show plot in Discord".

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

archibate/dotfiles-opencode1082026년 4월 29일 업데이트

archibate의 스킬 모두 보기

이 스킬의 문제 신고