instructree
Skill này làm gì
Instructree kiểm tra các file hướng dẫn dành cho agent AI. Nó đảm bảo các hướng dẫn được viết tốt, không có lỗi định dạng hoặc liên kết hỏng, trước khi bạn thay đổi mã.
Khi nào nên dùng
- ✓Trước khi thay đổi mã trong một dự án có dùng hướng dẫn AI.
- ✓Khi bạn muốn biết hướng dẫn nào áp dụng cho một file cụ thể.
- ✓Để kiểm tra lỗi trong các liên kết hoặc tham chiếu bên trong hướng dẫn.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/instructree/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra các hướng dẫn AI trong dự án này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Instructree phân tích các file hướng dẫn trên máy tính của bạn. Nó tìm lỗi định dạng, liên kết hỏng và lỗi nhập (import) mà không cần gửi mã của bạn lên đám mây.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Instructree có chạy mã trong hướng dẫn không?
Không, nó chỉ đọc và phân tích các file hướng dẫn. Nó không chạy bất kỳ mã nào và không gửi mã của bạn đi đâu cả.
“Hướng dẫn AI” là gì?
Đó là các file cho biết một agent AI (như Claude Code) nên hoạt động như thế nào hoặc cần thực hiện những tác vụ gì trong một dự án lập trình.
“Static analysis” nghĩa là gì?
Nghĩa là Instructree kiểm tra mã mà không chạy nó, giống như một người soát lỗi đọc văn bản để tìm lỗi chính tả và ngữ pháp, nhưng không đọc to lên.
Chi tiết
Mô tả gốc của tác giả
Map, explain, and lint repository-scoped coding-agent instructions before changing code.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4954
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.