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

shell-agent-file-ops

하는 일

이 스킬은 문서 작성이나 설정 파일 수정처럼 파일 작업에 셸 에이전트를 쓰도록 AI 에이전트를 돕습니다. 방법보다 무엇이 필요한지를 말하고 싶은 사람을 위한 스킬입니다.

사용하는 경우

  • ✓파일을 만들거나 바꿔야 하는데 가장 좋은 방법이 분명하지 않을 때.
  • ✓파일 작업에 자동 오류 처리와 재시도가 필요할 때.
  • ✓특정 도구를 고르기보다 결과를 설명하고 싶을 때.

스킬 링크

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-agent-file-ops/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-agent-file-ops/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 설정 폴더의 모든 설정 파일에 timeout 값 300을 추가해 주세요. 방법은 셸 에이전트가 알아서 정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 셸 에이전트에게 쉬운 말로 작업을 전달합니다. 셸 에이전트는 Python이나 Bash를 고르고, 코드를 쓰고 실행하며, 여러 번의 재시도 과정에서 오류를 처리한 뒤 결과를 돌려줍니다.

기술 내용 (원본 SKILL.md)

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

Shell Agent File Operations

Purpose

Use shell_agent for file operations when you want the tool to autonomously decide how to accomplish the task (Python vs Bash, which commands to use, error recovery) rather than manually selecting specific tools like write_file or run_shell.

When to Use

Use this pattern when:

  • You need to create, modify, or organize files
  • The optimal approach (Python script, Bash commands, direct file write) is unclear
  • You want automatic error handling and retry logic
  • You prefer to describe what to accomplish rather than how

How to Use

Basic Pattern

Delegate to shell_agent with a clear natural-language task description.

Example: Create a Document File

Task description to shell_agent:

Create a comprehensive SOAP note file containing four sections:
Subjective, Objective, Assessment, and Plan. Include all relevant
patient visit details in a professional medical format.

The shell_agent will:

  1. Decide whether to use Python or Bash
  2. Write and execute the appropriate code
  3. Handle any errors automatically (up to several retry rounds)
  4. Return the result

Example: Modify Existing Files

Task description to shell_agent:

Update all configuration files in the config/ directory to add
a new setting "timeout: 300" under the general section.

Example: Complex File Operations

Task description to shell_agent:

Create a project structure with README.md, src/main.py, and
tests/test_main.py. Include appropriate content in each file
based on a Python data processing project template.

Best Practices

  1. Be specific about content requirements - Describe what should be in the file(s), not just that files should be created.

  2. Include format specifications - Mention desired formats (markdown, JSON, CSV, etc.) when relevant.

  3. Specify file locations - Include paths when files should be in specific directories.

  4. Let shell_agent handle complexity - Don't pre-decide the implementation approach; trust the autonomous selection.

  5. Check the output - Review what shell_agent created to ensure it meets requirements.

Comparison: When NOT to Use This Pattern

Use direct tools instead when:

  • You already know the exact command/script to run → use run_shell
  • You have the exact file content ready → use write_file directly
  • The operation is trivial (single-line file write) → use write_file
  • You need fine-grained control over the implementation

Anti-Patterns to Avoid

❌ Don't over-specify the implementation:

Use Python to write a file called notes.md with this content...

✅ Do describe the desired outcome:

Create a notes.md file with comprehensive documentation about...

❌ Don't use shell_agent for simple direct operations:

Write "hello" to hello.txt

✅ Do use write_file directly for simple cases:

write_file(path="hello.txt", content="hello")

Summary

This pattern shifts focus from implementation mechanics to task intent, leveraging shell_agent's autonomous decision-making for file operations that benefit from intelligent tool selection and automatic error recovery.

자주 묻는 질문

여러 파일을 한 번에 바꿀 수 있나요?

네, 스킬의 예시는 한 폴더 안의 모든 설정 파일을 한 번에 업데이트합니다.

어떤 종류의 파일을 다루나요?

스킬은 문서, 메모, 설정 파일을 예로 듭니다.

명령어를 알아야 하나요?

아닙니다. 작업을 설명하면 셸 에이전트가 명령어를 처리합니다.

상세 정보

작성자의 원본 설명

Leverage shell_agent for autonomous file creation and modification with automatic tool selection and error recovery

repo: HKUDS/AgentPilot

인기도

GitHub 스타
7.8k
순위
#12997
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬