Custom coding instructions for AI Agents - Guidelines
<aside> 💡
Wird genutzt in Visual Studio Code (VSC, VSCode) der TB!
</aside>
.claude/ vs. GitHub Copilot .copilot/| Claude Code | GitHub Copilot | Anmerkung |
|---|---|---|
CLAUDE.md |
.copilot/copilot-instructions.md |
1:1 Äquivalent – globale Projekt-Instruktionen |
rules/*.md |
.copilot/instructions/*.instructions.md |
File-pattern-basierte Regeln (mit YAML Frontmatter) |
commands/*.md |
.copilot/prompts/*.prompt.md |
Custom commands |
skills/*/SKILL.md |
.copilot/skills/*/SKILL.md |
Fast identisch – Copilot hat das Konzept übernommen |
hooks/*.sh |
.copilot/hooks/ |
Vorhanden im Copilot Coding Agent, aber deutlich eingeschränkter |
tasks/lessons.md |
Kein natives Äquivalent | Muss manuell in copilot-instructions.md integriert werden |
Instructions sind das stärkste Feature. Du kannst file-basierte Instructions mit YAML Frontmatter verwenden, die nur greifen, wenn der Agent an Dateien arbeitet, die einem bestimmten Pattern entsprechen – das ersetzt deine rules/ gut:
---
description: "Python code style rules"
applyTo: "**/*.py"
---
Verwende Ruff, type hints überall, ...
Skills sind bei Copilot sogar namentlich identisch. Die empfohlene Struktur enthält .copilot/skills/ mit SKILL.md-Dateien – du kannst deine plan/, review/, verify/ Skills direkt übertragen.
Prompts ersetzen deine Commands. Prompt Files liegen in .copilot/prompts/ mit der Endung .prompt.md und können andere Dateien per Markdown-Links referenzieren – dein com-push-pr.md würde als com-push-pr.prompt.md dort landen.
sessionStart, sessionEnd oder userPromptSubmitted getriggert – aber sie laufen nur im Copilot Coding Agent (der asynchrone GitHub-Agent), nicht im lokalen VS Code Copilot Chat. Dein ruff-fix.sh als Pre-/Post-Tool-Hook wie in Claude Code gibt es dort nicht.