Claude Code(일명 Claudinho)의 스킬 사용 방법

발행: (2026년 4월 28일 PM 11:17 GMT+9)
4 분 소요
원문: Dev.to

Source: Dev.to

Introduction

Claude를 사용하기 시작하면서 가능한 한 많은 기능을 활용하려고 노력하고 있습니다. 친구와 대화를 나누다 스킬에 대해 이야기가 나왔습니다.

What are Skills?

Claude 문서에 따르면, 스킬은 추가적인 컨텍스트를 가진 보다 개인화된 에이전트입니다. 예를 들어, 새로운 보고서를 만들기 전에 다음과 같이 말할 수 있습니다:

“다이어트 목표가 있는 영양사 역할을 하고 나에게 가장 적합한 식단을 만들어 주세요.”

그 후, 에이전트는 해당 목표에 대해 더 정확하게 동작합니다. 앞으로도 같은 컨텍스트를 재사용하고 싶다면 스킬이 최적의 선택입니다. 하나의 명령어를 만들어 두면 다양한 목표에 걸쳐 컨텍스트를 재사용할 수 있습니다.

Creating a Code‑Review Skill

업무에서 우리는 레거시 코드가 RuboCop 규칙을 따르도록 리팩터링해야 하는 경우가 자주 발생합니다. 이것은 꽤 번거롭기 때문에, 코드를 GitHub에 푸시하기 전에 리뷰를 수행하도록 스킬을 만들었습니다.

Skill Definition

# Create a /review-code skill to review Ruby and JavaScript code.
# The skill will:
# • Read the project's .rubocop.yml and .eslintrc.js files and extract the configured rules.
# • Identify files to review:
#     - If no argument is passed, run `git diff main...HEAD --name-only`
#       and read each relevant file before reviewing.
# • Produce a report with sections:
#     - Ruby rules grouped by category (Lint, Security, Metrics, Naming, Style, Layout)
#       – separating blocks that must be merged from warnings.
#     - JavaScript rules grouped (Errors, Warnings, Modern code in app/webpack/,
#       Vue, Legacy code in app/assets/javascripts/).
# • Report format:
#     🔴 Blockers
#     🟡 Warnings
#     🟢 Good practices observed
#     📋 Summary
# • Be direct and specific: quote the problematic snippet and show the corrected version.
#   Do not list rules that were not violated.

How It Works

  1. Read configuration files – The skill parses .rubocop.yml and .eslintrc.js to understand which rules are active.

  2. Select files – If you run the skill without arguments, it executes

    git diff main...HEAD --name-only

    and filters for Ruby (*.rb) and JavaScript (*.js, *.vue) files.

  3. Analyze code – For each file, the skill checks the relevant rules and categorises findings as Blockers, Warnings, or Good practices.

  4. Generate report – The output follows the emoji‑prefixed sections listed above, quoting the offending snippet and providing the corrected code.

Using the Skill

After defining the skill, it becomes available in your Claude project session. Invoke it by typing the slash command:

/review-code

You can also pass a specific file or directory as an argument if you only want to review a subset of the codebase. The skill will return a concise, actionable report ready for you to apply the suggested fixes before committing.

0 조회
Back to Blog

관련 글

더 보기 »