본문으로 건너뛰기
Skillpedia
일반 코딩48k · #4150

clean-code-guard

하는 일

이 AI 에이전트는 코드가 명확하고, 체계적이고, 이해하기 쉽도록 좋은 작성 방식을 따르는지 점검합니다. 코드를 자동으로 생성할 때 생길 수 있는 흔한 실수를 막도록 돕습니다.

사용하는 경우

  • ✓AI가 코드를 생성했을 때.
  • ✓AI나 사용자가 수정한 코드를 저장하거나 제출하기 전에 확인할 때.
  • ✓기존 코드의 품질 검토를 원할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/clean-code-guard/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/clean-code-guard/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분.

작동 방식

코드를 명확한 이름, 작은 함수 같은 품질 규칙 세트와 비교합니다. 규칙을 따르지 않는 부분이 있으면 수정을 제안하거나 직접 고칩니다.

기술 내용 (원본 SKILL.md)

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

clean-code-guard

You are reviewing generated or changed code before it ships. Apply the rules below as a guard pass after the first implementation pass — and once this skill is active, keep applying it to every later code change in the same session, re-running the self-check before delivery after each edit rather than reverting to unguarded output because the skill loaded earlier. If the user explicitly invokes this skill before writing code, use the same rules while writing and still run the self-check before delivery.

When to Use

Use this skill when reviewing generated or changed code before it ships. Activate it reactively after an agent writes, edits, or refactors production code — especially after a first implementation pass. Re-run the guard pass before delivery after each edit.

Compatibility

This is a portable instruction skill. It requires no MCP server, network access, API key, shell command, local executable, or bundled script. It can be used in any runtime that supports SKILL.md plus directly linked references/ files; agents/openai.yaml is lightweight display metadata.

This skill does not replace project linters, formatters, type checkers, or test runners. Use the project's own tools for mechanical verification; use this skill for the judgement layer around code quality and review.

How to use this skill

This skill has three modes — pick based on the user's request.

Guard-pass mode (recommended): after code has been generated, edited, refactored, or fixed, check the diff or target files against the Always-applied imperatives below. Fix violations before presenting, committing, or merging the work.

Live mode (explicit): when the user invokes this skill before a risky code edit, apply the same imperatives while writing, then run the Self-check before delivery checklist. If you violate any rule, fix it before showing the user.

Review mode (triggered when the user asks you to review, audit, critique, or rate code): walk references/review-checklist.md against the target file(s) and produce a structured findings report. Do not edit code in review mode unless asked.

Across all three modes, the rule bodies live in references/. Read the relevant reference file when:

  • You hit a rule you don't fully remember the reasoning for.
  • The user pushes back on a rule and you need the source citation.
  • You're in review mode and need the full checklist.
  • The code under review touches a specific principle (e.g., subclassing → references/solid.md; deduplication → references/dry-kiss-yagni.md).

The reference files are:

Examples

  • A coding agent implements an endpoint: use guard-pass mode on the diff before the work is presented or committed.
  • User asks "review this PR" or "should I merge this?": use review mode and report findings from references/review-checklist.md; do not edit unless asked.
  • User asks "implement this endpoint using clean-code-guard": use live mode while writing, then run the self-check before delivery.
  • User asks "refactor this function, same behavior": preserve observable behavior exactly and treat any bug fix as a separate change.

Success criteria

This skill is working when code-writing tasks avoid the listed failure modes,

…

자주 묻는 질문

코드의 ‘모범 사례’란 무엇인가요?

코드를 다른 프로그래머(또는 미래의 자신)가 읽고, 이해하고, 유지 관리하기 쉽게 만드는 황금률 같은 것입니다.

AI가 이미 코드를 작성했는데 왜 이것이 필요한가요?

AI도 실수할 수 있고, 이상적이지 않은 코드를 쓸 수도 있습니다. 이 에이전트는 생성된 코드가 높은 품질을 갖추고 흔한 문제를 피하도록 합니다.

다른 코드 검사 도구를 대체하나요?

아니요, 다른 도구를 보완합니다. 이 도구는 코드 품질과 명확성에 초점을 맞추고, 다른 도구는 문법 오류나 보안 문제를 점검할 수 있습니다.

상세 정보

작성자의 원본 설명

Review generated or changed production code with Clean Code, SOLID, DRY, KISS, YAGNI, and LLM-specific failure-mode checks.

repo: sickn33/agentic-awesome-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬