Zum Inhalt springen
Skillpedia
Allgemeines Programmieren48k · #4954

instructree

Was er macht

Instructree prüft Anweisungsdateien für KI-Agenten. Es stellt sicher, dass diese Anweisungen gut geschrieben sind, ohne Formatierungsfehler oder kaputte Links, bevor du Änderungen am Code vornimmst.

Wann du ihn nutzt

  • ✓Bevor du Code in einem Projekt änderst, das KI-Anweisungen verwendet.
  • ✓Wenn du wissen möchtest, welche Anweisungen für eine bestimmte Datei gelten.
  • ✓Um Fehler bei Links oder Verweisen innerhalb der Anweisungen zu finden.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/instructree/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/instructree/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe die KI-Anweisungen in diesem Projekt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Instructree analysiert die Anweisungsdateien lokal auf deinem Computer. Es sucht nach Formatierungsfehlern, kaputten Links und Importproblemen, ohne dass dein Code in die Cloud gesendet werden muss.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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 @path imports 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 . --json inventories supported files and emits stable diagnostics.
  • instructree explain <file> --root . shows instructions that may apply to one target.
  • instructree explain <file> --root . --effective includes recursive Copilot CLI imports.
  • instructree imports . --json audits the recursive @path graph.
  • instructree scan . --sarif emits SARIF 2.1.0 for code-scanning integrations.
  • Add --strict only 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 explain for 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 explain reports 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 npx fallback 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.
Häufige Fragen

Führt Instructree den Code der Anweisungen aus?

Nein, es liest und analysiert nur die Anweisungsdateien. Es führt keinen Code aus und sendet deinen Code nirgendwohin.

Was sind 'KI-Anweisungen'?

Das sind Dateien, die einem KI-Agenten (wie Claude Code) sagen, wie er sich verhalten soll oder welche Aufgaben er in einem Programmierprojekt ausführen soll.

Was bedeutet 'statische Analyse'?

Es bedeutet, dass Instructree den Code prüft, ohne ihn auszuführen. Das ist wie ein Korrektor, der einen Text auf Grammatik- und Rechtschreibfehler liest, aber ohne ihn laut vorzulesen.

Details

Originalbeschreibung des Autors

Map, explain, and lint repository-scoped coding-agent instructions before changing code.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#4954
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills