Home / Market / folder specific claude and agents md

folder specific claude and agents md

Create folder-scoped CLAUDE.md and AGENTS.md guidance for future agents working in that area.

skill★ 508380 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: folder-specific-claude-and-agents-md description: "Create folder-scoped CLAUDE.md and AGENTS.md guidance for future agents working in that area." category: development risk: critical source: community source_repo: davidondrej/skills source_type: community date_added: "2026-07-07" author: davidondrej tags: [agents-md, claude-md, documentation] tools: [claude, codex] license: "MIT" license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE" user-invocable: true

---

Folder CLAUDE.md Creation

When to Use

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

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):

Step 4: Iterate with the user

Step 5: Write the file

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

Limitations