Standardized scaffolding for AI-native, RAG-optimized project repositories with documentation templates, agent instructions, and development workflow structure.
This repository provides the foundational structure for new projects within RadioAstronomy.io. It establishes consistent patterns for documentation, AI agent collaboration, and development workflow. Designed to be forked or used as a GitHub template when starting new work.
Modern development increasingly involves AI agents as collaborators: code assistants, documentation generators, and autonomous workers. Traditional project scaffolding doesn't account for this reality. Files are organized for humans, context is implicit, and agents must rediscover project state every session.
This template addresses that gap through RAG-optimized documentation (YAML frontmatter, semantic structure, controlled vocabulary), AGENTS.md (persistent context that agents load at session start), and work logs (development history that agents can reference).
The template provides three layers: documentation infrastructure, agent scaffolding, and project structure.
| Component | Purpose |
|---|---|
docs/documentation-standards/ |
Template library (READMEs, KB articles, script headers) |
| YAML frontmatter | Enables RAG retrieval and filtering |
| Interior README pattern | Self-documenting directories with navigation links |
| Tagging strategy | Controlled vocabulary for metadata |
| Component | Purpose |
|---|---|
AGENTS.md |
Repository identity, constraints, context loading order, session pattern |
| Component | Purpose |
|---|---|
work-logs/ |
Development history (date-based entries, gathered into milestones as patterns emerge) |
spec/ |
Specifications and deployment definitions |
internal-files/ |
Reference docs, GDRs, review materials (gitignored in public repos) |
shared/ |
Cross-project utilities |
staging/ |
Pre-commit staging area |
| Area | Status | Description |
|---|---|---|
| Documentation Templates | ✅ Complete | Primary, interior, KB, worklog templates |
| Script Headers | ✅ Complete | Python, Shell, PowerShell |
| Tagging Strategy | ✅ Complete | Controlled vocabulary guide |
| Code Commenting Guide | ✅ Complete | Dual-audience (human + AI) methodology |
| Writing Style Guide | ✅ Complete | AI tell suppression and prose conventions |
| Editor Config | ✅ Complete | VSCode, markdownlint, cspell |
| Shared Utilities | 🔄 Growing | Tree generator |
project-template-repository/
├── docs/ # Documentation
│ └── documentation-standards/ # Template library
├── internal-files/ # Reference docs (gitignored in public repos)
├── shared/ # Cross-project utilities
├── spec/ # Specifications, deployment definitions
├── staging/ # Pre-commit staging area
├── work-logs/ # Development history
├── AGENTS.md # Agent context loading instructions
├── CODE_OF_CONDUCT.md # Community standards
├── CONTRIBUTING.md # Contribution guidelines
├── LICENSE # MIT License (code)
├── LICENSE-DATA # CC-BY-4.0 (data/content)
├── SECURITY.md # Security policy
├── cspell.json # Spell checker config
└── .markdownlint.json # Markdown linter configThe template library in docs/documentation-standards/ provides consistent formatting.
| Template | Use For |
|---|---|
| primary-readme-template.md | Repository root README |
| interior-readme-template.md | Directory READMEs |
| general-kb-template.md | Standalone documents (guides, specs, reports, runbooks) |
| worklog-readme-template.md | Work log entries |
| Template | Use For |
|---|---|
| script-header-python.md | All .py files |
| script-header-shell.md | All .sh files |
| script-header-powershell.md | All .ps1 files |
| Document | Use For |
|---|---|
| tagging-strategy.md | Building YAML frontmatter vocabulary |
| code-commenting-dual-audience.md | Writing comments for humans and AI |
| writing-style-guide.md | Prose conventions and AI tell suppression |
- Click "Use this template" on GitHub
- Name your new repository
- Clone locally
- Customize:
- Edit
AGENTS.mdwith your project's identity and constraints - Edit
README.mdwith your project's overview - Build your domain vocabulary in
docs/documentation-standards/tagging-strategy.md - Copy
.gitignore.exampleto.gitignoreand adjust for public/private
- Edit
Is it the repository root README?
├─ Yes → primary-readme-template.md
└─ No: Is it a directory README?
├─ Yes → interior-readme-template.md
└─ No: Is it a standalone document?
└─ Yes → general-kb-template.md
- Code: MIT License
- Data/Content: CC-BY-4.0
Last Updated: March 28, 2026 | Status: Active