Tool별 프롬프트 banner
lucas-flatwhite lucas-flatwhite

Tool별 프롬프트

Development community intermediate

Description

> **관찰 위치**: Claude Code 내부 아키텍처 > > Claude Code의 각 Tool에는 Tool 스키마에 주입되는 자체 설명/프롬프트가 있습니다. 이것이 모델에게 각 Tool을 언제 어떻게 써야 하는지 안내합니다. ---

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for lucas-flatwhite/claude-code-system-prompts, shared by 14 entries in this directory. It describes the repository, not this entry specifically.

Tool별 프롬프트

**관찰 위치**: Claude Code 내부 아키텍처

Claude Code의 각 Tool에는 Tool 스키마에 주입되는 자체 설명/프롬프트가 있습니다. 이것이 모델에게 각 Tool을 언제 어떻게 써야 하는지 안내합니다.


Bash Tool (`Bash`)

관찰 위치: Claude Code Tool 시스템

Executes a given bash command and returns its output.

The working directory persists between commands, but shell state does not. The shell environment is initialized from the user's profile (bash or zsh).

IMPORTANT: Avoid using this tool to run `find`, `grep`, `cat`, `head`, `tail`, `sed`, `awk`, or `echo` commands, unless explicitly instructed or after you have verified that a dedicated tool cannot accomplish your task. Instead, use the appropriate dedicated tool:

- File search: Use Glob (NOT find or ls)
- Content search: Use Grep (NOT grep or rg)
- Read files: Use Read (NOT cat/head/tail)
- Edit files: Use Edit (NOT sed/awk)
- Write files: Use Write (NOT echo >/cat <

Git 작업 (외부 사용자)

Bash Tool에는 상세한 git commit 및 PR 지침이 포함됩니다.

  • Git 안전 프로토콜: 명시적으로 요청받지 않는 한 git config를 수정하거나 파괴적 명령을 실행하지 않습니다.
  • Commit 워크플로: git statusgit diffgit log → 메시지 초안 → git addgit commit
  • PR 워크플로: 구조화된 본문 형식과 함께 gh pr create를 사용합니다.
  • HEREDOC 형식: 올바른 포맷을 위해 항상 git commit -m "$(cat <<'EOF' ... EOF)"를 사용합니다.

샌드박스 시스템

sandboxing이 활성화되면 Bash Tool에는 파일 시스템 및 네트워크 제한 설정이 포함됩니다.

  • 읽기 전용 차단 목록(deny-only)
  • 쓰기 전용 허용 목록(allow-only)
  • 네트워크 허용/차단 호스트
  • 임시 파일은 /tmp가 아니라 $TMPDIR를 사용해야 합니다.

파일 편집 Tool (`Edit`)

관찰 위치: Claude Code Tool 시스템

Performs exact string replacements in files.

Usage:
- You must use your `Read` tool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file.
- When editing text from Read tool output, ensure you preserve the exact indentation (tabs/spaces).
- ALWAYS prefer editing existing files in the co