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는 지침 파일을 여러분의 컴퓨터에서 로컬로 분석합니다. 코드를 클라우드로 보내지 않고도 형식 오류, 깨진 링크, 가져오기(import) 문제를 찾습니다.
기술 내용 (원본 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 지침'이란 무엇인가요?
AI 에이전트(예: Claude Code)가 프로그래밍 프로젝트에서 어떻게 행동하고 어떤 작업을 해야 하는지 알려 주는 파일입니다.
'정적 분석'은 무슨 뜻인가요?
코드를 실행하지 않고 점검하는 것을 뜻합니다. 소리 내어 읽지 않고 글의 문법과 철자 오류를 찾는 교정자와 같습니다.
상세 정보
작성자의 원본 설명
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에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.