Folder Specific Claude And Agents Md logo

Folder Specific Claude And Agents Md

CommunityPopular
davidondrej
folder-specific-claude-and-agents-md

Create a specialized CLAUDE.md (+ AGENTS.md symlink) inside a specific folder to give future agents folder-scoped context. Use when the user asks to create a CLAUDE.md for a folder, write folder instructions, or add agent context to a directory.

Overview

Publisherdavidondrej
Repositoryskills
Skill namefolder-specific-claude-and-agents-md
Stars
4.1K
Forks
599
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by davidondrej on GitHub. Read the source before you install it.

Installation

Install the Folder Specific Claude And Agents Md AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/davidondrej/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/skill-authoring/folder-specific-claude-and-agents-md .claude/skills/folder-specific-claude-and-agents-md
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Folder Specific Claude And Agents Md in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Folder Specific Claude And Agents Md on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Folder Specific Claude And Agents Md is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Folder CLAUDE.md Creation

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.

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 -la first 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 own module-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 the user 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.md import 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 the user edits the file, RE-READ it and flag: contradictions, typos, missing rules, wrong categorization.
  • Do not revert the user's 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.md import 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 the user does: 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 ls or grep rots 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."
  • Never summarize or auto-shorten the file. Context collapse degrades it. Grow deliberately, prune manually. If the user asks to trim, do it by hand.
  • Maintenance loop. When the user corrects the agent on something this file should have prevented, add the rule to the file immediately. Don't wait.
  • No emojis unless the user uses them (status markers ✅ 🟡 are the exception — they're already conventions).
  • Symlink, not copy. AGENTS.md must be a symlink so edits stay in sync.
  • Flag gaps honestly. If the user's edits introduce contradictions (e.g. "sell X" in one section and "never sell X" in another), call it out before he asks.

Frequently asked questions

What does the Folder Specific Claude And Agents Md AI skill do?

Create a specialized CLAUDE.md (+ AGENTS.md symlink) inside a specific folder to give future agents folder-scoped context. Use when the user asks to create a CLAUDE.md for a folder, write folder instructions, or add agent context to a directory.

Why use Folder Specific Claude And Agents Md on TypingMind?

Because you install it once and use it with any model. Folder Specific Claude And Agents Md is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Folder Specific Claude And Agents Md in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/davidondrej/skills/tree/main/skills/skill-authoring/folder-specific-claude-and-agents-md. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Folder Specific Claude And Agents Md?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Folder Specific Claude And Agents Md?

As many as you like. As long as a model supports skills, you can use Folder Specific Claude And Agents Md with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Folder Specific Claude And Agents Md AI skill free?

Yes. It is published on GitHub by davidondrej under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇