본문으로 건너뛰기
Skillpedia
일반 코딩7.8k · #13090

verify-directory-structure

하는 일

이 스킬은 파일 접근 문제를 고치는 간단한 방법을 제공합니다. 먼저 폴더를 확인한 다음 작업을 다시 시도합니다. 에이전트가 예상한 위치에서 파일을 열거나 저장하지 못하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓스크립트나 파일 작업이 폴더가 없는 것처럼 보여서 실패할 때.
  • ✓파일을 읽거나 저장하지 못하는 권한 문제가 의심될 때.
  • ✓작업을 실행하기 전에 폴더 구조를 확인하고 싶을 때.

스킬 링크

https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/verify-directory-structure/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/verify-directory-structure/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에서 그대로 가져왔습니다.

Verify Directory Structure

This skill provides a systematic approach to diagnosing and resolving file access issues by first verifying the directory structure. It is particularly useful when dealing with file operations, script executions, or any task that involves accessing files.

Steps

  1. Identify the Target Path: Determine the file or directory path that is causing the access issue.
  2. Check Directory Existence: Use the list_dir tool to verify if the directory exists and inspect its contents.
  3. Verify Permissions: Ensure that the user has the necessary permissions to access the directory and its contents.
  4. Resolve Path Issues: If the directory does not exist, create it using appropriate commands or scripts. If permissions are insufficient, adjust them accordingly.
  5. Retry the Operation: After resolving the directory structure issues, retry the original operation.

Example

# Example of using the list_dir tool to verify directory structure
list_dir --path "/path/to/directory"

Best Practices

  • Always verify the directory structure before performing file operations.
  • Use absolute paths to avoid ambiguity.
  • Log the directory structure for debugging purposes if issues persist.
자주 묻는 질문

폴더가 없으면 어떻게 하나요?

폴더를 만든 다음 작업을 다시 시도하라고 스킬은 안내합니다.

전체 파일 경로를 써야 하나요?

네. 혼동을 피하기 위해 스킬은 절대 경로를 권합니다.

문제가 계속되면 어떻게 하나요?

원인을 더 쉽게 찾도록 폴더 내용을 기록하라고 스킬은 제안합니다.

상세 정보

작성자의 원본 설명

Diagnose and resolve file access issues by first verifying the directory structure.

repo: HKUDS/AgentPilot

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬