Skip to content

Commit a079ead

Browse files
jeremyederclaude
andcommitted
Refactor to documentation-only repository and create demo-fastapi
Major changes: - Remove FEATURES_INVENTORY.md (planning artifact) - Replace all "Amber" → "CBA" (Codebase Agent) - Replace all "buffet approach" → "standalone patterns" - Remove all app/, tests/, Containerfile references - Update CLAUDE.md, README.md, quickstart.md for docs-only focus - Update scripts/setup.sh to install only doc tooling - Add references to new demo-fastapi repository The working FastAPI application now lives in a separate repository: https://github.com/jeremyeder/demo-fastapi 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 09dfa03 commit a079ead

File tree

8 files changed

+192
-514
lines changed

8 files changed

+192
-514
lines changed

AMBIENT_TECHNIQUES_INVENTORY.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This document catalogs all techniques, patterns, and automation discovered acros
99

1010
## Table of Contents
1111

12-
1. [Issue-to-PR Automation (Amber)](#issue-to-pr-automation-amber)
12+
1. [Issue-to-PR Automation (CBA)](#issue-to-pr-automation-cba)
1313
2. [GitHub Actions Workflows](#github-actions-workflows)
1414
3. [Agent Orchestration Patterns](#agent-orchestration-patterns)
1515
4. [Workflow Templates](#workflow-templates)
@@ -20,41 +20,41 @@ This document catalogs all techniques, patterns, and automation discovered acros
2020

2121
---
2222

23-
## Issue-to-PR Automation (Amber)
23+
## Issue-to-PR Automation (CBA)
2424

2525
### Overview
2626

27-
**Amber** is a background agent that automatically converts GitHub issues into pull requests. This is the **core productivity multiplier** - team members can trigger automated fixes without direct access to Claude Code.
27+
**CBA** is a background agent that automatically converts GitHub issues into pull requests. This is the **core productivity multiplier** - team members can trigger automated fixes without direct access to Claude Code.
2828

2929
### How It Works
3030

3131
```mermaid
3232
graph LR
3333
A[Create Issue] --> B[Add Label]
3434
B --> C[GHA Triggers]
35-
C --> D[Amber Executes]
35+
C --> D[CBA Executes]
3636
D --> E[Create PR]
3737
E --> F[Review & Merge]
3838
```
3939

4040
### Trigger Mechanisms
4141

4242
1. **Labels** (Primary):
43-
- `amber:auto-fix` - Low-risk formatting/linting fixes
44-
- `amber:refactor` - Medium-risk refactoring
45-
- `amber:test-coverage` - Add missing tests
43+
- `cba:auto-fix` - Low-risk formatting/linting fixes
44+
- `cba:refactor` - Medium-risk refactoring
45+
- `cba:test-coverage` - Add missing tests
4646

4747
2. **Comments** (Alternative):
48-
- `/amber execute` - Execute proposal in issue
49-
- `@amber` - Mention Amber to trigger
48+
- `/cba execute` - Execute proposal in issue
49+
- `@cba` - Mention CBA to trigger
5050

5151
### Workflow Implementation
5252

53-
**File**: `.github/workflows/amber-issue-handler.yml`
53+
**File**: `.github/workflows/cba-issue-handler.yml`
5454

5555
**Key Features**:
5656
- ✅ Prevents duplicate PRs (checks for existing PRs)
57-
- ✅ Creates sanitized branch names: `amber/issue-{number}-{sanitized-title}`
57+
- ✅ Creates sanitized branch names: `cba/issue-{number}-{sanitized-title}`
5858
- ✅ Handles race conditions (PR closed during execution)
5959
- ✅ Security: Validates branch names, prevents injection
6060
- ✅ Retry logic with exponential backoff for API calls
@@ -68,7 +68,7 @@ graph LR
6868

6969
### Issue Format Requirements
7070

71-
For Amber to work effectively, structure issues like this:
71+
For CBA to work effectively, structure issues like this:
7272

7373
```markdown
7474
## Problem
@@ -79,7 +79,7 @@ File: `path/to/file.go`
7979
File: `path/to/another.py`
8080

8181
## Instructions
82-
[Step-by-step instructions for Amber]
82+
[Step-by-step instructions for CBA]
8383

8484
## Success Criteria
8585
- [ ] All linters pass
@@ -88,21 +88,21 @@ File: `path/to/another.py`
8888
```
8989

9090
**Key Fields**:
91-
- `File:` or `Path:` - Amber extracts file paths automatically
91+
- `File:` or `Path:` - CBA extracts file paths automatically
9292
- `Instructions:` or `Task:` - Main instructions section
9393
- Success criteria checklist
9494

9595
### Risk-Based Automation Policies
9696

97-
**Configuration**: `.claude/amber-config.yml`
97+
**Configuration**: `.claude/cba-config.yml`
9898

9999
| Risk Level | Actions | Auto-Merge | Examples |
100100
|------------|---------|------------|----------|
101101
| **Low** | Auto-fix, create PR | No (requires review) | Formatting, linting |
102102
| **Medium** | Create PR with proposal | No | Refactoring, test additions |
103103
| **High** | Report only, no PR | N/A | Breaking changes, security issues |
104104

105-
### Amber Categories
105+
### CBA Categories
106106

107107
**Auto-Fix (Low Risk)**:
108108
- Code formatting (gofmt, black, prettier)
@@ -145,17 +145,17 @@ safety:
145145
146146
### Core Workflows
147147
148-
#### 1. Amber Issue Handler (`amber-issue-handler.yml`)
148+
#### 1. CBA Issue Handler (`cba-issue-handler.yml`)
149149

150-
**Purpose**: Convert issues to PRs via Amber agent
150+
**Purpose**: Convert issues to PRs via CBA agent
151151

152152
**Triggers**:
153-
- Issue labeled: `amber:auto-fix`, `amber:refactor`, `amber:test-coverage`
154-
- Issue comment: `/amber execute` or `@amber`
153+
- Issue labeled: `cba:auto-fix`, `cba:refactor`, `cba:test-coverage`
154+
- Issue comment: `/cba execute` or `@cba`
155155

156156
**Steps**:
157157
1. Extract issue details (files, instructions)
158-
2. Create Amber agent prompt
158+
2. Create CBA agent prompt
159159
3. Check for existing PR (prevent duplicates)
160160
4. Create/checkout feature branch
161161
5. Execute Claude Code CLI
@@ -241,16 +241,16 @@ safety:
241241
- Requires manual review for major updates
242242
- Only for Dependabot PRs
243243

244-
#### 6. Amber Dependency Sync (`amber-dependency-sync.yml`)
244+
#### 6. CBA Dependency Sync (`cba-dependency-sync.yml`)
245245

246-
**Purpose**: Daily sync of dependency versions to Amber knowledge base
246+
**Purpose**: Daily sync of dependency versions to CBA knowledge base
247247

248248
**Behavior**:
249249
- Runs daily at scheduled time
250-
- Updates Amber's understanding of current dependencies
251-
- Helps Amber make better decisions about updates
250+
- Updates CBA's understanding of current dependencies
251+
- Helps CBA make better decisions about updates
252252

253-
#### 7. Amber Auto Review (`amber-auto-review.yml`)
253+
#### 7. CBA Auto Review (`cba-auto-review.yml`)
254254

255255
**Purpose**: Automatic code reviews on PRs (complement to manual @claude reviews)
256256

@@ -282,7 +282,7 @@ safety:
282282

283283
## Agent Orchestration Patterns
284284

285-
### Amber - Workflow Orchestrator
285+
### CBA - Workflow Orchestrator
286286

287287
**Role**: Single point of contact, intelligent agent coordinator
288288

@@ -292,7 +292,7 @@ safety:
292292
- Adaptive complexity handling
293293
- Complete ecosystem access
294294

295-
**Specialists Amber May Engage**:
295+
**Specialists CBA May Engage**:
296296
- **Stella (Staff Engineer)** - Complex debugging, architecture
297297
- **Neil (Test Engineer)** - Testing strategies, automation
298298
- **Taylor (Team Member)** - Straightforward implementations
@@ -341,9 +341,9 @@ Located in `.claude/agents/` or `workflows/agent-bullpen/`:
341341
"Invoke Stella to analyze this architectural issue"
342342
```
343343
344-
**Implicit (Amber Orchestration)**:
344+
**Implicit (CBA Orchestration)**:
345345
```
346-
"Fix this bug" → Amber automatically engages Neil for testing, Stella for complex parts
346+
"Fix this bug" → CBA automatically engages Neil for testing, Stella for complex parts
347347
```
348348
349349
**Multi-Agent Collaboration**:
@@ -494,19 +494,19 @@ pre-commit install
494494
**Behavior**:
495495
- Runs on all PRs
496496
- Blocks merge if failures
497-
- Auto-fix suggestions via Amber
497+
- Auto-fix suggestions via CBA
498498

499499
### Test Coverage
500500

501501
**Requirements**:
502502
- Minimum thresholds per component
503503
- Coverage reports in CI
504-
- Amber can add missing tests (`amber:test-coverage`)
504+
- CBA can add missing tests (`cba:test-coverage`)
505505

506506
### Code Review Automation
507507

508508
**Two-Tier System**:
509-
1. **Amber Auto Review** - Automatic on all PRs
509+
1. **CBA Auto Review** - Automatic on all PRs
510510
2. **Claude Manual Review** - On-demand via `@claude`
511511

512512
**Review Focus Areas**:
@@ -656,7 +656,7 @@ if err != nil || !res.Status.Allowed {
656656
**Benefits**:
657657
- Security patches applied automatically
658658
- No manual dependency updates
659-
- Amber stays current with versions
659+
- CBA stays current with versions
660660
- Reduced technical debt
661661

662662
---
@@ -672,15 +672,15 @@ For `github.com/ambient-code/reference`:
672672
- [ ] Create basic README.md
673673
- [ ] Add CLAUDE.md with memory system structure
674674

675-
### Phase 2: Amber Automation
675+
### Phase 2: CBA Automation
676676

677-
- [ ] Create `.github/workflows/amber-issue-handler.yml`
678-
- [ ] Create `.claude/amber-config.yml`
677+
- [ ] Create `.github/workflows/cba-issue-handler.yml`
678+
- [ ] Create `.claude/cba-config.yml`
679679
- [ ] Create issue templates:
680-
- [ ] `.github/ISSUE_TEMPLATE/amber-auto-fix.yml`
681-
- [ ] `.github/ISSUE_TEMPLATE/amber-refactor.yml`
682-
- [ ] `.github/ISSUE_TEMPLATE/amber-test-coverage.yml`
683-
- [ ] Test Amber workflow with sample issue
680+
- [ ] `.github/ISSUE_TEMPLATE/cba-auto-fix.yml`
681+
- [ ] `.github/ISSUE_TEMPLATE/cba-refactor.yml`
682+
- [ ] `.github/ISSUE_TEMPLATE/cba-test-coverage.yml`
683+
- [ ] Test CBA workflow with sample issue
684684

685685
### Phase 3: Code Quality Automation
686686

@@ -692,7 +692,7 @@ For `github.com/ambient-code/reference`:
692692
### Phase 4: Code Review Automation
693693

694694
- [ ] Create `.github/workflows/claude-code-review.yml`
695-
- [ ] Create `.github/workflows/amber-auto-review.yml`
695+
- [ ] Create `.github/workflows/cba-auto-review.yml`
696696
- [ ] Test review workflows
697697

698698
### Phase 5: Documentation
@@ -718,9 +718,9 @@ For `github.com/ambient-code/reference`:
718718

719719
## Key Takeaways
720720

721-
1. **Issue-to-PR is the killer feature** - Amber automation provides 10x productivity gains
721+
1. **Issue-to-PR is the killer feature** - CBA automation provides 10x productivity gains
722722
2. **Security is built-in** - All workflows follow security best practices
723-
3. **Agent orchestration scales** - Amber automatically brings in the right expertise
723+
3. **Agent orchestration scales** - CBA automatically brings in the right expertise
724724
4. **Context matters** - Structured context files beat monolithic CLAUDE.md
725725
5. **Automation everywhere** - From linting to reviews to dependency updates
726726
6. **Workflows standardize** - Templates ensure consistency and quality
@@ -733,7 +733,7 @@ For `github.com/ambient-code/reference`:
733733
1. **Review this inventory** - Understand all techniques
734734
2. **Prioritize features** - Which ones provide most value?
735735
3. **Plan implementation** - Use checklist above
736-
4. **Start with Amber** - Issue-to-PR automation is highest ROI
736+
4. **Start with CBA** - Issue-to-PR automation is highest ROI
737737
5. **Iterate** - Add more automation as needed
738738

739739
---

CLAUDE.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Ambient Code Reference Repository - Agent Configuration
22

3-
**Version**: 2.0.0
4-
**Last Updated**: 2025-12-17
3+
**Version**: 2.1.0
4+
**Last Updated**: 2026-01-04
55
**Purpose**: Documentation-only reference for AI-assisted development patterns
66

77
---
@@ -21,10 +21,10 @@
2121

2222
### Repository Purpose
2323

24-
This is a **GitHub template repository** demonstrating AI-assisted development best practices. It's a **documentation-only** reference using the "buffet approach" - concepts are standalone and independently adoptable.
24+
This is a **GitHub template repository** demonstrating AI-assisted development best practices. It's a **documentation-only** reference using the "standalone patterns approach" - concepts are standalone and independently adoptable.
2525

2626
**Key Principles**:
27-
-**Buffet approach** - Patterns are standalone and independently adoptable
27+
-**Standalone patterns approach** - Patterns are standalone and independently adoptable
2828
-**Documentation-focused** - Pure reference material, no working application
2929
-**Succinct content** - No AI slop, get to the point
3030
-**Quality automation** - Documentation linting and validation
@@ -49,6 +49,11 @@ This is a **GitHub template repository** demonstrating AI-assisted development b
4949
- Markdown linting
5050
- Mermaid diagram validation
5151

52+
### Working Application Demo
53+
54+
For a **working FastAPI application** demonstrating these patterns in practice, see:
55+
**[demo-fastapi](https://github.com/jeremyeder/demo-fastapi)** - Toy application showing CBA patterns in action
56+
5257
---
5358

5459
## Development Standards
@@ -402,7 +407,7 @@ Common sanitization functions to implement:
402407
**NEVER include**:
403408
- ❌ Red Hat branding or references
404409
- ❌ "Amber" terminology (use "Codebase Agent" or "CBA")
405-
- ❌ Sequenced/linear adoption path (buffet approach only)
410+
- ❌ Sequenced/linear adoption path (standalone patterns approach only)
406411
- ❌ Deployment infrastructure (focus on development)
407412
- ❌ AI slop in documentation
408413
- ❌ Security overrotation (light touch, practical)

0 commit comments

Comments
 (0)