folder-specific-claude-and-agents-md
Was er macht
Dieses Tool erstellt eine Anleitungsdatei namens CLAUDE.md für einen bestimmten Ordner in deinem Projekt. Außerdem erstellt es eine Verknüpfung namens AGENTS.md, die auf CLAUDE.md zeigt. Diese Dateien helfen anderen KIs, den Kontext und die Regeln dieses Ordners zu verstehen.
Wann du ihn nutzt
- ✓Wenn du möchtest, dass eine KI die Regeln für einen bestimmten Ordner versteht.
- ✓Wenn zukünftige KIs den lokalen Kontext eines Projekts kennen sollen.
- ✓Um wichtige Informationen zu einem Bereich deines Codes zu ordnen.
Link zum Skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/folder-specific-claude-and-agents-md/SKILL.mdKopiere 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
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle eine CLAUDE.md und eine AGENTS.md für den Ordner '~/Documents/code/workspace/my-web-project'.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI liest alle Dateien im Ordner, um zu verstehen, was dort liegt. Dann fragt sie dich nach Zweck, Regeln und Konventionen und schreibt diese Informationen in CLAUDE.md.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Folder CLAUDE.md Creation
When to Use
- Use when the user asks for folder-specific agent instructions or local context files.
- Use when a subdirectory needs a CLAUDE.md and AGENTS.md handoff for future agents.
Generate a focused CLAUDE.md inside a target folder, plus an AGENTS.md symlink pointing at it. The file gives any future agent (Claude Code, Codex, etc.) the folder-specific context the global CLAUDE.md doesn't cover.
Background reference: library/claude-code/claude-and-agents-md.md.
Process
Step 1: Confirm the target folder + sanity-check it deserves a file
Ask the user which folder. Use absolute path under ~/Documents/code/workspace/.
Only create a file if the folder has context needed across multiple sessions — active evolving work, specific conventions, ongoing decisions. A folder of static reference files does NOT need one (agents can read on demand). If unsure, ask the user.
Step 2: Read every file in the folder IN FULL
- Use
ls -lafirst to enumerate files and subfolders. - Read every markdown, config, and key source file.
- For large tldraw/Vite subprojects: read
package.json,src/App.tsx, one representative module file, and the folder's ownmodule-details.md-style files. - Do NOT skim. Do NOT skip. The user's later edits depend on you having full context.
Step 3: Draft a bullet list of candidate content
Before writing the file, give the user a bullet list grouped by section — let them react first. Candidate sections (skip any that don't apply):
- Product / Purpose — what this folder/project is, current state, key metrics
- Avatar / Audience — who it's for (if applicable)
- Essential Files — one-line role for each important file, including cross-folder references (use
@path/file.mdimport syntax) - Constraints (MUST NOT) — explicit hard negatives. Highest-ROI content in the file.
- Conventions — the user's lingo, status emojis (✅ 🟡), naming patterns, "usually do" patterns
- Locked Decisions — things agreed + dated, must not re-litigate
- Context — history, authority, credibility that frames the work
- How to work with the user — collaboration style for this specific folder
- Marketing Angles / Positioning — if public-facing
- Top Insights — 3-5 most glaring signals from research (if research exists)
Step 4: Iterate with the user
- Keep answers short. The user will edit directly in the IDE.
- When they edit the file, RE-READ it and flag: contradictions, typos, missing rules, wrong categorization.
- Do not revert their edits unless asked.
Step 5: Write the file
- Path:
<folder>/CLAUDE.md - Start with a one-line header explaining the file's purpose.
- Subdir file marker: if this is a subdirectory file (parent folder already has its own CLAUDE.md), open with
Apply root CLAUDE.md first, then this file. - Use
##section headers matching the sections the user approved. - Bullets over prose. Short bullets.
- Cross-folder references: use
@relative/path/file.mdimport syntax, not prose mentions. - Heavy reference docs: annotate with
**Read when:**triggers (e.g. "Read when: writing offer copy"). Prevents loading every session.
Step 6: Create the AGENTS.md symlink
cd <folder> && ln -s CLAUDE.md AGENTS.md
Verify with ls -la CLAUDE.md AGENTS.md.
Step 7: Commit only when asked
Do NOT stage or push unless the user says to. When they do: git add -A, commit with a Day N: style message, push.
Rules
- Never invent content. Every bullet must trace back to something you read in the folder or something the user said. No generic boilerplate.
- Brevity wins. The user edits aggressively to make things shorter. Start tight.
- Folder-scoped only. Don't duplicate the global
CLAUDE.md(personality, dates, ports, etc.). Only include what's specific to this folder. - No file trees, no directory dumps, no stack details the code already shows. Anything an agent can derive from
lsorgreprots fast and wastes tokens. Pin decisions, rules, and context — not structure. - Constraints vs Conventions. Hard "MUST NOT" rules go in Constraints (explicit negatives). "Usually do X" patterns go in Conventions. Splitting these improves adherence.
- No absolute ALWAYS/NEVER without explicit exceptions. Edge cases make absolute rules get ignored. "Never commit secrets EXCEPT
.env.example" beats "never commit secrets."
…
Häufige Fragen
Warum eine CLAUDE.md für jeden Ordner erstellen?
Damit jeder Teil deines Projekts seine eigenen, spezifischen Anweisungen hat. So können KIs in jedem Bereich besser arbeiten, ohne sich von allgemeinen Informationen verwirren zu lassen.
Was gehört in die CLAUDE.md?
Informationen zum Zweck des Ordners, wichtige Dateien, Regeln, die nicht verletzt werden dürfen, Namenskonventionen und bereits getroffene Entscheidungen zu diesem Projekt.
Was ist AGENTS.md?
Es ist eine Verknüpfung (symbolischer Link) auf CLAUDE.md. So können andere Tools oder KI-Agenten einfach auf die Anweisungen des Ordners zugreifen.
Details
Originalbeschreibung des Autors
Create folder-scoped CLAUDE.md and AGENTS.md guidance for future agents working in that area.
Beliebtheit
- GitHub-Sterne
- 48k
- Platz im Ranking
- #4634
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
00-andruia-consultant
48kHilft deinem Agenten, KI-Projekte zu starten oder zu verbessern. Er analysiert Code, schlägt Tools vor und erstellt Aktionspläne auf Spanisch.
007
48kLässt deinen Agenten Sicherheitsaudits und Bedrohungsmodellierung durchführen. Nützlich, um Projekte vor Angriffen und Schwachstellen zu schützen.
10-andruia-skill-smith
48kHilft deinem Agenten, KI-Tools zu erstellen oder zu verbessern. Er legt fest, wie Tools funktionieren, schreibt die Dokumentation und prüft die Struktur.
20-andruia-niche-intelligence
48kLässt deinen Agenten eine Branchenzusammenfassung erstellen. Nützlich, um Kontext, Regeln, Nutzungsmuster und Risiken anhand verlässlicher Quellen zu verstehen.
Ähnliche Skills
technical-documentation
394kHilft deinem Agenten, klare technische Dokumentation und Agenten-Anleitungen zu schreiben und zu prüfen, damit Menschen und KI-Tools leicht folgen können.
architecture-decision-records
280kLässt deinen Agenten wichtige Entscheidungen zur Projektstruktur festhalten. So bleibt nachvollziehbar, warum etwas so gewählt wurde, und die Änderungen sind klar dokumentiert.
code-tour
280kLässt deinen Agenten Schritt-für-Schritt-Erklärungen des Codes mit genauen Datei- und Zeilenangaben erstellen. Nützlich für Einführungen, Erklärungen und Reviews.