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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
- Identify the Target Path: Determine the file or directory path that is causing the access issue.
- Check Directory Existence: Use the
list_dirtool to verify if the directory exists and inspect its contents. - Verify Permissions: Ensure that the user has the necessary permissions to access the directory and its contents.
- Resolve Path Issues: If the directory does not exist, create it using appropriate commands or scripts. If permissions are insufficient, adjust them accordingly.
- 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
コメント
- …
このリポジトリの他のスキル
agentpilot
7.8kエージェントが、作業を準備し、変更案を提案してテストし、評価するAgentPilotのループを実行することで、プロジェクトを段階的に改善できるよう支援します。
openspace
7.8kエージェントが、スキルを保存し取り出すツールであるOpenSpaceをセットアップし、MCPを通じてAIアプリに接続できるよう支援します。
rsi-arena
7.8kエージェントが、AIMEやTerminal-Benchなどの標準的なAIベンチマークテストをセットアップして実行し、異なる改善方法を比較できるよう支援します。
experiment-guide
7.8kエージェントが、プログラムを改善する方法を調べる間に、小さな実験を計画し、その結果を読み、発見を記録できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。