Version: October 2025
This repository serves as a template for AI-assisted development projects. It provides a structured workspace designed to facilitate effective collaboration between developers and AI assistants (particularly Claude Code).
This template demonstrates an organized repository structure optimized for AI-development workflows. It implements a hierarchical context system that enables AI agents to:
- Understand project context progressively through layered CLAUDE.md files
- Navigate project stages with guidance for both setup and ongoing development
- Maintain organized outputs with dedicated folders for AI-generated content
- Follow structured workflows using folder-specific maps and documentation
The architecture supports both new project initialization and collaborative work on existing codebases.
The template uses a multi-layered context system:
- System Level: Global user context (
~/CLAUDE.md) - Repository Group: Repos directory context (
~/repos/CLAUDE.md) - Project Level: Project-specific context (
CLAUDE.md) - Guidance Layer: Setup and workflow documentation (
claude-guidance/) - Folder Level: Directory-specific maps (
*/map.md)
See flow.md for detailed flowcharts visualizing the context architecture.
/claude-guidance/: AI agent guidance for setup and ongoing work/for-ai/: Input files for AI agent processing/from-ai/: AI-generated outputs and artifacts/context/: Additional project context information/src/: Source code (with its own map.md)/docs/: Project documentation (with its own map.md)/tests/: Test suites (with its own map.md)
-
Fork or clone this repository:
git clone https://github.com/danielrosehill/AI-Dev-Repo-Template-Oct-2025.git my-new-project cd my-new-project -
Customize CLAUDE.md at the project root:
- Update
{user}placeholder with your name - Update
{project-purpose}with your project description
- Update
-
Follow setup guidance:
- For new projects: See
claude-guidance/setup-instructions.md - For ongoing work: See
claude-guidance/map.md
- For new projects: See
-
Initialize version control:
git remote remove origin git remote add origin your-repo-url git push -u origin main
When starting a Claude Code session:
- The AI agent reads
CLAUDE.mdto understand project purpose and structure - It checks the codebase status to determine project stage
- It follows the appropriate guidance path (setup vs. ongoing)
- It reads relevant folder maps for context on specific directories
- It processes inputs from
/for-ai/and outputs to/from-ai/as needed
- flow.md: Visual flowcharts of the context hierarchy system
- claude-guidance/map.md: Complete repository structure documentation
- claude-guidance/setup-instructions.md: Initial project setup guidance
- version-control.md: Git workflow and version control practices
| Folder | Purpose |
|---|---|
/claude-guidance/ |
AI agent instructions and repository maps |
/for-ai/ |
Files for AI agent to read and process |
/from-ai/ |
AI-generated outputs and artifacts |
/context/ |
Additional project context documents |
/src/ |
Source code and implementation |
/docs/ |
Project documentation and guides |
/tests/ |
Test suites and testing utilities |
/planning/ |
Project planning and task management |
/scripts/ |
Utility scripts and automation |
Each major folder should contain its own map.md to provide localized context.
This template embodies several key principles:
- Progressive Disclosure: AI agents load only relevant context for their current task
- Stage-Aware Branching: Different guidance for project setup vs. ongoing development
- Distributed Context: Folder maps provide localized guidance where needed
- Hierarchical Inheritance: Context flows from global to project to folder level
- Clear Separation: Distinct directories for inputs (
/for-ai/) and outputs (/from-ai/)
Adapt this template to your needs:
- Add custom folders: Create new directories with their own
map.mdfiles - Extend guidance: Add project-specific instructions to
claude-guidance/ - Modify context flow: Adjust CLAUDE.md files at different levels
- Add workflows: Document specialized workflows in
/docs/orclaude-guidance/
- Keep CLAUDE.md files updated as project purpose or structure evolves
- Create folder maps for any new significant directories
- Use
/for-ai/and/from-ai/to maintain clear AI interaction boundaries - Document workflows in
claude-guidance/for repeatable processes - Version control everything including guidance documents and maps
flowchart LR
A[AI Agent Starts] --> B[Read CLAUDE.md]
B --> C{New or Ongoing?}
C -->|New| D[setup-instructions.md]
C -->|Ongoing| E[map.md]
D --> F[Create Structure]
E --> G[Read Folder Maps]
F --> H[Begin Work]
G --> H
See flow.md for comprehensive flowcharts.
- October 2025: Initial template release with hierarchical context system
This template is meant to be adapted. Feel free to:
- Fork and customize for your needs
- Share improvements and variations
- Adapt the structure to different workflows
This template structure and documentation are provided as-is for use in your projects.
Daniel Rosehill
- Website: danielrosehill.com
- Email: public@danielrosehill.com
- GitHub: @danielrosehill
This template represents AI-assisted development patterns as of October 2025. The structure is designed to work particularly well with Claude Code but can be adapted for other AI development assistants.