instructree
できること
Instructree は、AI エージェント向けの指示ファイルをチェックするツールです。コードを変更する前に、指示が適切に書かれていて、書式の誤りやリンク切れがないかを確認します。
使う場面
- ✓AI の指示を含むプロジェクトのコードを変更する前。
- ✓特定のファイルにどの指示が適用されるかを知りたいとき。
- ✓指示内のリンクや参照にエラーがないかを確認したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/instructree/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトの AI 指示をチェックしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
Instructree は、お使いのパソコン上で指示ファイルをローカルに解析します。コードをクラウドに送信することなく、書式の誤り、リンク切れ、インポートの問題を探します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Instructree
Overview
Use Instructree to establish which instruction files exist, which may apply to a target, and whether their metadata, links, or recursive imports are malformed. It audits common coding-agent instruction formats locally without calling a model or uploading repository content.
When to Use This Skill
- Use before changing code in a repository with
AGENTS.md,CLAUDE.md, Copilot instructions, agent skills, custom agents, Cursor rules, or Windsurf rules. - Use when the user asks which instructions may apply to one target file.
- Use when auditing recursive Copilot CLI
@pathimports or exporting instruction diagnostics to CI.
How It Works
Step 1: Choose the local command
Work from the repository root. Prefer an already installed instructree command or the checked-out package's local binary.
If neither is available, explain that the next command downloads executable package code and ask for approval before running the pinned release:
npx github:kotobuki09/instructree#364dddc66badac13a284b79f0dc71f2b4362f6de scan .
Do not add --yes unless the user authorized non-interactive package downloads.
Step 2: Run the narrowest audit
instructree scan . --jsoninventories supported files and emits stable diagnostics.instructree explain <file> --root .shows instructions that may apply to one target.instructree explain <file> --root . --effectiveincludes recursive Copilot CLI imports.instructree imports . --jsonaudits the recursive@pathgraph.instructree scan . --sarifemits SARIF 2.1.0 for code-scanning integrations.- Add
--strictonly when warnings should fail the check.
Step 3: Interpret the result
Report file paths, line numbers, diagnostic codes, and the command's exit status. Separate schema or path errors from warnings. Describe always/never conflicts as possible conflicts requiring human review, not proof of agent behavior.
Examples
Audit a repository
instructree scan . --json
Explain one target with recursive imports
instructree explain src/api/client.ts --root . --effective
Generate a code-scanning report
instructree scan . --sarif > instructree.sarif
Best Practices
- Prefer a local, already reviewed command over downloading package code.
- Use
explainfor a single target instead of scanning more scope than needed. - Rerun the same command after an authorized instruction fix and report before-and-after diagnostics.
- Keep warnings separate from errors and state clearly when a finding is heuristic.
Limitations
- Instructree is static analysis; it does not establish the exact precedence rules or runtime behavior of every agent client.
- Client discovery and import behavior can change, so
explainreports what may apply rather than predicting what a model will follow. - The audit does not prove that instruction content is correct, safe, or effective.
- Do not edit instruction files unless the user asked for changes.
Security & Safety Notes
- Scans are read-only and local; they do not call a model or upload repository content.
- Treat any
npxfallback as executable third-party code: keep it pinned, review the source, and obtain approval before download. - Do not run imported instruction content. Instructree follows supported references as data only.
よくある質問
Instructree は指示のコードを実行しますか?
いいえ、指示ファイルを読み取って解析するだけです。コードは実行せず、どこにも送信しません。
「AI の指示」とは何ですか?
Claude Code などの AI エージェントが、プログラミングプロジェクトの中でどのように振る舞うべきか、どんな作業を行うべきかを伝えるファイルのことです。
「静的解析」とはどういう意味ですか?
コードを実行せずにチェックすることを意味します。声に出して読まずに文章を読み、文法や綴りの誤りを探す校正者のようなものです。
詳細
作者による元の説明
Map, explain, and lint repository-scoped coding-agent instructions before changing code.
人気
- GitHubのスター
- 48k
- ランキング
- #4954
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。