Skip to content
/ reference Public template

GitHub template demonstrating AI-assisted development best practices with buffet approach

License

Notifications You must be signed in to change notification settings

ambient-code/reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ambient Code Reference Repository

A GitHub template demonstrating AI-assisted development best practices using a buffet approach - adopt features independently, no forced linear path.

What's Included

This template provides pure infrastructure and patterns (NO application code). Bring your own application and apply these practices:

🎯 Core Features (Independently Adoptable)

πŸ“š Documentation & Guides

πŸ€– Agent Configuration

πŸ”§ Scripts & Automation

  • scripts/setup.sh - One-command template setup (<10 minutes)
  • scripts/validate-mermaid.sh - Diagram syntax validation
  • scripts/check-doc-pairs.sh - Verify Terry versions exist
  • scripts/lint-all.sh - Run all linters (markdown, shell scripts)

Quick Start

1. Use This Template

Click the "Use this template" button above to create your repository.

2. Clone & Setup

git clone <your-repo-url>
cd <your-repo-name>
./scripts/setup.sh

Completes in under 10 minutes.

3. Verify Installation

# Check documentation pairs exist
./scripts/check-doc-pairs.sh

# Validate diagrams
./scripts/validate-mermaid.sh

# View comparison webpage
open docs/comparison/index.html  # macOS
# or
xdg-open docs/comparison/index.html  # Linux

4. Explore Features


Buffet Approach: Pick What You Need

You don't need to adopt everything. Each feature works independently:

Just want better documentation? β†’ Dual Documentation Guide

Just want AI agent automation? β†’ Agent Configuration Guide

Just want CI/CD patterns? β†’ CI/CD Patterns Guide

Want to understand the full approach? β†’ Architecture Overview


Documentation Comparison

See the difference between standard and Terry documentation:

open docs/comparison/index.html

Side-by-side view of:

  • Standard: Technical, concise, assumes domain knowledge
  • Terry: Accessible, explanatory, jargon-free

Key Principles

1. Infrastructure Only (No App Code)

This repository contains zero application code. It's a template of patterns and configurations for AI-assisted development.

What's included: Workflows, documentation, agent config, scripts What's NOT included: FastAPI apps, databases, business logic

2. Dual Documentation (Standard + Terry)

Every documentation topic exists in two versions:

  • Standard (docs/{topic}.md): For experienced developers
  • Terry (docs/{topic}-terry.md): For broader audiences, plain language

3. Buffet Approach (Independent Adoption)

Features are modular. Adopt one without requiring others:

  • Copy .claude/ to existing project β†’ Agent config works standalone
  • Copy docs/*-terry.md pattern β†’ Dual docs work standalone
  • Copy .github/workflows/validate-docs.yml β†’ CI/CD works standalone

4. Automated Quality

CI/CD prevents common errors:

  • Mermaid diagrams validate before merge (no syntax errors)
  • Documentation pairs checked (no missing Terry versions)
  • Security scans prevent secrets and application code creep
  • Asciinema demos auto-rebuild (always current)

Project Structure

.
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ workflows/          # CI/CD automation
β”‚   └── ISSUE_TEMPLATE/     # Issue templates
β”œβ”€β”€ .claude/
β”‚   β”œβ”€β”€ agents/             # Agent personality definitions
β”‚   β”œβ”€β”€ context/            # Modular knowledge modules
β”‚   └── commands/           # Slash command definitions
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ *.md               # Standard documentation
β”‚   β”œβ”€β”€ *-terry.md         # Terry (accessible) versions
β”‚   β”œβ”€β”€ diagrams/          # Mermaid architecture diagrams
β”‚   β”œβ”€β”€ tutorials/         # Asciinema workflow demos
β”‚   β”œβ”€β”€ comparison/        # Side-by-side doc viewer
β”‚   β”œβ”€β”€ adoption/          # Independent feature guides
β”‚   └── adr/               # Architecture decision records (template)
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ setup.sh           # One-command setup
β”‚   β”œβ”€β”€ validate-mermaid.sh # Diagram validation
β”‚   β”œβ”€β”€ check-doc-pairs.sh  # Doc pair verification
β”‚   └── lint-all.sh         # Linting suite
β”œβ”€β”€ README.md              # This file
β”œβ”€β”€ CONTRIBUTING.md        # Contribution guidelines
└── LICENSE                # MIT License

Requirements

Minimal:

  • Git 2.30+
  • Bash (for scripts)

For Full Experience:

  • Node.js 18+ (for mermaid-cli, markdownlint)
  • GitHub account (for template usage)

Optional:

  • Asciinema (for re-recording tutorials)
  • Podman/Docker (for containerization examples)

Contributing

See CONTRIBUTING.md for guidelines.

Key Points:

  • All documentation requires standard + Terry versions
  • Mermaid diagrams must validate with mmdc before commit
  • Follow docs/STYLE_GUIDE.md for writing style
  • No Red Hat branding, no "Amber" terminology (use "Codebase Agent" or "CBA")

License

MIT License - Use freely in your projects.


Terminology

Codebase Agent (CBA): AI assistant configured for development workflows Terry Documentation: Accessible, jargon-free documentation style Buffet Approach: Independent feature adoption without forced dependencies


Support & Feedback


Acknowledgments

  • ZeroMQ Project: Inspiration for succinct documentation style
  • Anthropic Claude: AI-assisted development patterns
  • Community Contributors: See Contributors

Quick Links:

About

GitHub template demonstrating AI-assisted development best practices with buffet approach

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages