antislop-code
하는 일
장식용 배너나 코드를 그대로 되풀이하는 주석처럼 일반적인 AI 글쓰기 티가 나는 코드 주석을 걸러 냅니다. 실제 정보가 있는 주석은 남깁니다. 더 깔끔한 코드 주석을 원하는 개발자를 위한 것입니다.
사용하는 경우
- ✓개발자가 프로젝트의 코드 주석을 쓰거나 고쳐 달라고 AI 에이전트에게 요청할 때.
- ✓개발자가 코드에서 장식용 배너나 뻔한 주석을 지우고 싶을 때.
- ✓개발자가 읽는 사람에게 실제 정보를 주는 주석만 남기고 싶은 경우.
스킬 링크
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-code/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 파일의 주석을 정리해 주세요. 군더더기는 빼고 유용한 메모는 남겨 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 각 주석에 실제 목적이 있는지 확인한 다음, 장식적이거나 반복적이거나 시끄러운 주석을 지웁니다. 실행되는 코드는 절대 바꾸지 않도록 설정되어 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
antislop-code
Anti Slop: Rules for AI Coding Agents. Code Comments skill
Part of the antislop system. Read together with
antislop.md(the core). This skill filters comments that read as generically AI (decorative, restating the obvious, stiff, loud) while preserving the comments that carry real information. It references core rules by number and never duplicates or renumbers them. Load it when the task writes or edits code comments.
How to use this skill
- Load together with
antislop.mdwhenever the task touches code comments. The core holds the mechanism (the purpose test, the three tiers, the Delivery Gate); this skill holds comment-specific depth. - Every entry has the same shape: Tell (the pattern), Why (why it reads as slop), Fix (what to do instead), with the governing core rule cited as R-XX.
- Scope guardrail: this skill only modifies comments. Never modify executable code, identifiers, imports, formatting, indentation, whitespace, control flow, or logic. When in doubt, leave the code untouched.
- The Delivery Gate in the core remains the gate. The "Code Comment Checklist" at the end of this file is the comment-specific supplement to run alongside it.
Comments That Add Nothing
Decorative Separators
- Tell: banner comments built from repeated characters, ALL CAPS labels, or box drawing around a section name:
// =======================aroundAuthentication,// -------- WORKFLOW --------, or a/* ---- ROUTES ---- */header. - Why: the decoration is the message. A label wrapped in
=or-signals "AI made this" without adding information, and ALL CAPS reads as shouting. - Fix: replace with a single plain line, or remove entirely if the label adds nothing (R-31).
Restating the Obvious
- Tell: a comment that repeats what the next line or declaration already shows, like
// Initialize the variableabovelet count = 0,// User classaboveclass User {},// Validate userabovefunction validateUser(), orconst userAge = 25; // User age is 25. - Why: it doubles the reading load without adding anything. The code already says it; the comment just repeats it.
- Fix: remove and leave the line of code alone.
Workflow Narration
- Tell: comments that narrate the flow step by step, like
// Step 1: Validate input,// Step 2: Process request,// Step 3: Return response, or// First...,// Next...,// Finally.... - Why: the control flow is visible in the code itself. Numbering it reads as a checklist, not an explanation.
- Fix: remove. If the flow is genuinely hard to follow, that is a structure problem, not a missing comment problem.
Empty Labels
- Tell: generic labels with no information behind them:
// Main logic,// Core logic,// Business logic,// Helper function,// Entry point,// Error handling, or// Note: This is important./// Important: Please read. - Why: the label names a category, not a fact. "Main logic" tells the reader nothing they could not infer from the code.
- Fix: remove unless the label carries specific information. "Note: retries happen only on 5xx" earns its place; "Note: this is important" does not.
Vague Placeholders
- Tell: comments that promise future work without saying what:
// TODO: Improve this,// Future improvements,// Additional optimization can be added here,// Add more validation. - Why: a vague TODO is noise. It names a feeling (this could be better) instead of a task (what, and why).
- Fix: remove. Keep a TODO only when it names a specific task with enough context to act on.
Signature Echo
- Tell: documentation that only restates the signature, like a JSDoc block that repeats
@param price The price.and@returns Total price.for a function whose name and parameters already say all of it. - Why: docs that echo the signature add length, not understanding. The reader learns nothing new.
- Fix: simplify or remove the echo. Keep documentation that explains business rules, edge cases, assumptions, algorithms, limitations, side effects, API behavior, or security implications. Never strip real documentation.
Decorative Emoji
- Tell: emoji used as decoration in comments, like
// ✅ Validationor// 🚀 Performance. - Why: emoji is visual noise in code, and the specific set (✅, 🚀, 🔒) is the AI default vocabulary.
- Fix: replace with plain English, or remove if the lab
자주 묻는 질문
제 코드를 바꾸나요?
아니요. 이 스킬은 주석만 고치고, 코드, 이름, import, 서식은 그대로 둔다고 설명합니다.
핵심 antislop 규칙이 필요한가요?
네. 공통 규칙이 들어 있는 주 antislop 파일과 함께 쓰도록 만들어졌습니다.
어떤 주석을 남기나요?
읽는 사람에게 실제 정보가 있는 주석은 남기고, 아무 도움이 되지 않는 주석은 지웁니다.
상세 정보
작성자의 원본 설명
Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.
repo: miqdadbadjuber/anti-slop
인기도
- GitHub 스타
- 8.0k
- 순위
- #12648
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
antislop-copywriting
8.0k에이전트가 마케팅 문구, 제목, 행동 유도 문장을 평범하고 사람다운 말로 쓰고 고치도록 돕습니다. AI 글쓰기 패턴과 지어낸 사실은 피합니다.
antislop-human
8.0k에이전트가 실제 사람들이 읽고, 누르고, 쓸 수 있도록 명암 대비, 키보드 사용, 보이는 포커스, 분명한 상태가 있는 화면을 만들도록 돕습니다.
antislop-layoutmobile
8.0k에이전트가 휴대폰부터 데스크톱까지 잘 재배치되는 레이아웃을 만들도록 돕습니다. 탄탄한 격자, 옆으로 넘치지 않는 구성, 누르기 쉬운 터치 영역을 포함합니다.
antislop-ui
8.0k에이전트가 일반적인 템플릿처럼 보이지 않도록, 신중한 색상과 실제 레이아웃, 목적 있는 움직임으로 인터페이스를 설계하도록 돕습니다.