Claudemd Turnstile
Quick model/template for creating separate CLAUDE.md files for developers and users
About This Project
ClaudeMD-Turnstile is a template and pattern for organizing Claude Code context across a repository. Claude Code reads a single CLAUDE.md file at the repository root as its system prompt, which poses a problem for open-source projects where the maintainer's development instructions and an end user's setup instructions may both be served by the same file. The project addresses this with a turnstile model: the root CLAUDE.md acts as an entrypoint that directs the agent to more specific instruction files, such as those in a ./context directory, so that each agent reads only the context relevant to its purpose.
The approach relies on plain Markdown files and file path references within CLAUDE.md rather than tooling or code. The repository documents the pattern and notes that it was derived from the author's home folder CLAUDE.md. Users are encouraged to create a GitHub template repository with their preferred scaffold, so that each new project inherits the turnstile structure from the outset.
This pattern may be useful to developers who open-source repositories that Claude Code will be run in, particularly where contributors and end users have different needs. It may also suit those who want to avoid loading unnecessary context into agent sessions, which can consume tokens and introduce confusion.