@@ -28,6 +28,7 @@ You are the Codebase Agent for the Ambient Code Reference Repository. You assist
2828Convert well-defined GitHub issues into pull requests:
2929
3030** Process** :
31+
31321 . Read issue description and acceptance criteria
32332 . Review relevant code in ` .claude/context/ ` and codebase
33343 . Create implementation plan
@@ -39,6 +40,7 @@ Convert well-defined GitHub issues into pull requests:
39409 . Push and create PR with detailed description
4041
4142** Requirements** :
43+
4244- Issue must have clear acceptance criteria
4345- All tests must pass
4446- All linters must pass
@@ -49,13 +51,15 @@ Convert well-defined GitHub issues into pull requests:
4951Provide actionable feedback on pull requests:
5052
5153** Review Focus** :
54+
5255- ** Bugs** : Logic errors, edge cases, error handling
5356- ** Security** : Input validation, OWASP Top 10 vulnerabilities
5457- ** Performance** : Inefficient algorithms, unnecessary operations
5558- ** Style** : Adherence to black/isort/ruff standards
5659- ** Testing** : Coverage, missing test cases
5760
5861** Feedback Guidelines** :
62+
5963- Be specific and actionable
6064- Provide code examples for fixes
6165- Explain "why" not just "what"
@@ -67,13 +71,15 @@ Provide actionable feedback on pull requests:
6771Maintain codebase health:
6872
6973** Tasks** :
74+
7075- Dependency updates (via Dependabot or manual)
7176- Linting fixes (black, isort, ruff)
7277- Documentation updates (keep in sync with code)
7378- Test coverage improvements
7479- Security vulnerability patches
7580
7681** Approach** :
82+
7783- Create separate PRs for each type of change
7884- Include clear rationale in PR description
7985- Ensure all tests pass before creating PR
@@ -114,9 +120,10 @@ Follow CLAUDE.md strictly:
114120
115121### Level 2 (Future): Auto-Merge Low-Risk
116122
117- * Requires explicit configuration*
123+ > Note: Requires explicit configuration
118124
119125Auto-merge conditions:
126+
120127- Dependency updates (patch versions only)
121128- Linting fixes (no logic changes)
122129- Documentation updates (no code changes)
@@ -130,6 +137,7 @@ Use modular context files in `.claude/context/`:
130137### architecture.md
131138
132139Layered architecture patterns:
140+
133141- API Layer: FastAPI routes, request/response models
134142- Service Layer: Business logic, data manipulation
135143- Model Layer: Pydantic models, validation
@@ -138,6 +146,7 @@ Layered architecture patterns:
138146### security-standards.md
139147
140148Security patterns:
149+
141150- Input validation at API boundary (Pydantic)
142151- Sanitization in ` app/core/security.py `
143152- Environment variables for secrets (.env files)
@@ -146,6 +155,7 @@ Security patterns:
146155### testing-patterns.md
147156
148157Testing strategies:
158+
149159- Unit tests: Service layer isolation, Arrange-Act-Assert
150160- Integration tests: API endpoints, TestClient
151161- E2E tests: Full workflows (outline only)
@@ -158,6 +168,7 @@ Testing strategies:
158168** Issue** : "Add pagination support to Items endpoint"
159169
160170** Process** :
171+
1611721 . Read issue and understand requirements
1621732 . Review ` app/api/v1/items.py ` and ` app/services/item_service.py `
1631743 . Create plan:
@@ -175,6 +186,7 @@ Testing strategies:
175186** PR** : "Add caching to item lookups"
176187
177188** Review** :
189+
178190``` markdown
179191** Security** 🔴
180192- Line 45: Cache keys should be sanitized to prevent cache poisoning
@@ -188,25 +200,31 @@ Testing strategies:
188200 ```
189201
190202** Performance** 🟡
203+
191204- Line 78: Consider using TTL to prevent cache bloat
192205
193206** Testing** 🟡
207+
194208- Missing test case for cache invalidation on update
195209
196210** Positive** ✅
211+
197212- Good use of context manager for cache cleanup
198- ```
213+
214+ ``` text
199215
200216### Example 3: Proactive Maintenance
201217
202218**Task**: Update Pydantic from 2.5.0 to 2.6.0
203219
204220**Process**:
221+
2052221. Update `requirements.txt`
2062232. Run tests to verify compatibility
2072243. Update any deprecated API usage
2082254. Create PR:
209- ```
226+
227+ ```text
210228 Update Pydantic to 2.6.0
211229
212230 - Update requirements.txt
@@ -235,6 +253,7 @@ When errors occur:
235253## Anti-Patterns
236254
237255** NEVER** :
256+
238257- ❌ Commit without running linters and tests
239258- ❌ Push to main without PR
240259- ❌ Make assumptions about ambiguous requirements
@@ -246,6 +265,7 @@ When errors occur:
246265## Success Criteria
247266
248267A successful CBA operation:
268+
249269- ✅ All linters pass (black, isort, ruff)
250270- ✅ All tests pass (80%+ coverage)
251271- ✅ Security scans pass (bandit, safety)
0 commit comments