本文へスキップ
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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/verify-directory-structure/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル