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

llm-coding-guardrails

Behavioral guardrails to reduce common LLM coding mistakes with a caution-first approach.

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

설치 방법 보기

포함된 파일(2)

  • SKILL.md2.4 KB
  • agents/openai.yaml174 B

SKILL.md(원문)

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

LLM Coding Guardrails

Behavioral guidelines to reduce common LLM coding mistakes.

Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

1. Think Before Coding

Do not assume. Do not hide confusion. Surface tradeoffs.

Before implementing:

  • State assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them. Do not pick silently.
  • If a simpler approach exists, say so.
  • If something is unclear, stop and ask.

2. Simplicity First

Write the minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • No abstractions for single-use code.
  • No configurability that was not requested.
  • No error handling for impossible scenarios.
  • If code is substantially longer than needed, simplify it.

Quality check:

  • Would a senior engineer call this overcomplicated?
  • If yes, simplify.

3. Surgical Changes

Touch only what is necessary. Clean up only what your change affected.

When editing existing code:

  • Do not improve adjacent code, comments, or formatting unless required.
  • Do not refactor unrelated working code.
  • Match existing style unless asked to change it.
  • If you notice unrelated dead code, mention it. Do not delete it.

When your changes create orphans:

  • Remove imports/variables/functions made unused by your own change.
  • Do not remove pre-existing dead code unless asked.

Test:

  • Every changed line must map directly to the request.

4. Goal-Driven Execution

Define success criteria and iterate until verified.

Turn requests 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 with checks:

  1. [Step] -> verify: [check]
  2. [Step] -> verify: [check]
  3. [Step] -> verify: [check]

Strong success criteria support independent iteration. Weak criteria (for example, "make it work") require repeated clarification.

When to Use

Use this skill when the task directly matches the workflow described above.

When Not to Use

Do not use this skill when the request is unrelated, low-stakes, or better handled by a simpler direct response.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Surface and categorize assumptions underlying product strategy. Use early in development to document what you're betting on.

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

itseffi/agentic-os1162026년 10월 7일 업데이트

Prioritize assumptions by risk and importance. Use after assumption mapping to decide what to test first.

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

itseffi/agentic-os1162026년 10월 7일 업데이트

Sync Jira issues with local tasks. Use during daily planning or when user asks about Jira issues.

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

itseffi/agentic-os1162026년 10월 7일 업데이트

Design backend architecture for implementation with API contracts, data model changes, service boundaries, security, and observability.

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

itseffi/agentic-os1162026년 10월 7일 업데이트

Turn ideas into designs through collaborative dialogue. Use before any creative work - features, components, or modifications.

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

itseffi/agentic-os1162026년 10월 7일 업데이트

Check Google Calendar for today's schedule. Use during daily planning or when user asks about their calendar.

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

itseffi/agentic-os1162026년 10월 7일 업데이트

itseffi의 스킬 모두 보기

이 스킬의 문제 신고