본문으로 건너뛰기
Skillpedia
에이전트41k · #6559

v4-best-practices

하는 일

이 스킬은 DeepSeek V4 모델을 사용할 때 긴 여러 단계 작업을 위한 규칙을 AI 에이전트에게 제공합니다. 계획된 작업을 맡기면서 실수를 줄이고 싶은 분을 위한 스킬입니다.

사용하는 경우

  • ✓여러 파일을 바꾸는 계획을 에이전트에게 수행하도록 요청할 때.
  • ✓코드를 쓰기 전에 파일 이름과 함수를 다시 확인하고 싶을 때.
  • ✓코드에서 정확한 위치를 가리키는 계획 결과를 원할 때.

스킬 링크

https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/v4-best-practices/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/v4-best-practices/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에서 그대로 가져왔습니다.

V4 Best Practices

Rules for multi-step V4 thinking-mode workflows. Each rule prevents a specific, observable failure class.

1. Verify references before writing

Before referencing a file path, function, or type in code or plan output, call grep_files or read_file to confirm it exists in the workspace.

# Bad:  edit_file path="src/config/loader.rs" (assumed from memory)
# Good: grep_files pattern="pub fn load_config" → confirms src/config/mod.rs:42
#        then reference src/config/mod.rs:42

Failure avoided: edit_file errors on non-existent paths; LSP diagnostics on hallucinated symbols.

2. Spawn a verifier sub-agent before multi-file execution

Before executing a plan that touches 3+ files, spawn a deepseek-v4-flash sub-agent (thinking off) to read the target files and confirm path/symbol assumptions still hold.

agent type="verifier" model="deepseek-v4-flash"
  prompt: "Read these files and confirm: [list assumptions]. Report mismatches."

Failure avoided: multi-step edits fail partway because file structure changed since the plan was drafted.

3. Plan output must use confirmed path:line references

In plan-mode output, replace vague location pointers with path:line references drawn from a prior grep_files result.

# Bad:  "Update the retry logic in the client module"
# Good: "Update retry loop at crates/engine/src/client.rs:187"

Failure avoided: agent-mode execution cannot locate the intended edit target when plan directions are imprecise.

자주 묻는 질문

모든 AI 모델에서 작동하나요?

아니요. 이 스킬은 생각 모드에서 DeepSeek V4 Pro와 Flash 모델을 위해 작성되었습니다.

파일 이름을 왜 먼저 확인하나요?

스킬은 기억에 의존해 추측한 경로나 함수로는 편집이 실패하므로, 먼저 확인하라고 합니다.

계획 단계는 어떤 모습인가요?

스킬은 모호한 설명 대신 정확한 파일과 줄 번호를 참조하라고 요구합니다.

상세 정보

작성자의 원본 설명

Use when working with deepseek-v4-pro or deepseek-v4-flash in thinking mode on multi-step or plan-driven tasks. Provides rules to prevent stale references, unverified plan assumptions, and vague plan output.

repo: codewhale-hq/Codewhale

인기도

GitHub 스타
41k
순위
#6559
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬