Aller au contenu
Skillpedia
Programmation générale48k · #4954

instructree

Ce qu’il fait

Instructree vérifie les fichiers d'instructions destinés aux agents IA. Il s'assure que ces instructions sont bien rédigées, sans erreurs de mise en forme ni liens cassés, avant que vous ne modifiiez le code.

Quand l’utiliser

  • ✓Avant de modifier le code d'un projet qui utilise des instructions IA.
  • ✓Lorsque vous voulez savoir quelles instructions s'appliquent à un fichier donné.
  • ✓Pour détecter les erreurs dans les liens ou les références des instructions.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/instructree/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Vérifiez les instructions IA de ce projet.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Instructree analyse les fichiers d'instructions localement, sur votre ordinateur. Il recherche les erreurs de mise en forme, les liens cassés et les problèmes d'importation, sans avoir besoin d'envoyer votre code dans le cloud.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.
Questions fréquentes

Instructree exécute-t-il le code des instructions ?

Non, il se contente de lire et d'analyser les fichiers d'instructions. Il n'exécute aucun code et n'envoie votre code nulle part.

Que sont les « instructions IA » ?

Ce sont des fichiers qui indiquent à un agent IA (comme Claude Code) comment il doit se comporter ou quelles tâches il doit accomplir dans un projet de programmation.

Que signifie « analyse statique » ?

Cela signifie que Instructree examine le code sans l'exécuter, à la manière d'un correcteur qui relit un texte pour repérer les fautes de grammaire et d'orthographe, sans le lire à voix haute.

Détails

Description originale de l’auteur

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

repo: sickn33/agentic-awesome-skills

Popularité

Étoiles GitHub
48k
Position au classement
#4954
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires