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

coding-guidelines

하는 일

이 스킬은 AI가 코드를 쓰거나 바꿀 때 지켜야 할 행동 규칙을 정합니다. 가정을 밝히고, 해법은 단순하게 유지하며, 작업에 필요한 부분만 건드리도록 요구합니다. 신중하고 집중된 AI 코드를 원하는 사람을 위한 것입니다.

사용하는 경우

  • ✓AI가 기능이나 버그 수정을 위해 코드를 쓰거나, 바꾸거나, 검토할 때.
  • ✓요청하지 않은 기능이나 추상화를 AI가 추가하는 것을 발견했을 때.
  • ✓코드 변경을 작게 유지하고 기존 스타일에 맞추고 싶을 때.

스킬 링크

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/coding-guidelines/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/coding-guidelines/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분.

작동 방식

스킬은 AI가 가정을 드러내고, 문제를 해결하는 가장 단순한 방법을 고르며, 기존 스타일에 맞춘 정밀한 수정만 하도록 요구합니다.

기술 내용 (원본 SKILL.md)

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

Coding Guidelines

Behavioral guidelines to reduce common LLM coding mistakes. These principles bias toward caution over speed—for trivial tasks, use judgment.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before implementing:

  • State assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them—don't pick silently.
  • If a simpler approach exists, say so. Push back when warranted.
  • If something is unclear, stop. Name what's confusing. Ask.
  • Disagree honestly. If the user's approach seems wrong, say so—don't be sycophantic.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • No abstractions for single-use code.
  • No "flexibility" or "configurability" that wasn't requested.
  • No error handling for impossible scenarios.
  • If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

When editing existing code:

  • Don't "improve" adjacent code, comments, or formatting.
  • Don't refactor things that aren't broken.
  • Match existing style, even if you'd do it differently.
  • If you notice unrelated dead code, mention it—don't delete it.

When your changes create orphans:

  • Remove imports/variables/functions that YOUR changes made unused.
  • Don't remove pre-existing dead code unless asked.

The test: Every changed line should trace directly to the user's request.

4. Goal-Driven Execution

Define success criteria. Loop until verified.

Transform tasks into verifiable goals:

  • "Add validation" → "Write tests for invalid inputs, then make them pass"
  • "Fix the bug" → "Write a test that reproduces it, then make it pass"
  • "Refactor X" → "Ensure tests pass before and after"

For multi-step tasks, state a brief plan:

1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]

Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.

자주 묻는 질문

아키텍처나 문서 작업에도 적용되나요?

아니요. 코드 작업을 위한 것이며, 아키텍처 설계나 문서 작업은 대상이 아닙니다.

AI가 질문을 하지 못하게 되나요?

아니요. 불분명한 부분이 있으면 질문하도록 권장합니다.

사소한 작업에도 적용되나요?

지침은 신중함을 우선하며, 사소한 작업에는 AI가 상황에 맞게 판단합니다.

상세 정보

작성자의 원본 설명

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, modifying, or reviewing code — implementation tasks, code changes, refactoring, bug fixes, or feature development. Do NOT use for architecture design, documentation, or non-code tasks.

repo: tech-leads-club/agent-skills

인기도

GitHub 스타
7.1k
순위
#13523
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬