Skip to content

Set up AI Agent response handling - #7

Merged
tirthbodawala merged 3 commits into
mainfrom
claude/ai-agents-template-011CUpG4Lq4iXZsggvd9vZM6
Nov 5, 2025
Merged

tirthbodawala merged 3 commits into
mainfrom
claude/ai-agents-template-011CUpG4Lq4iXZsggvd9vZM6

Conversation

@tirthbodawala

Copy link
Copy Markdown
Member

No description provided.

claude and others added 3 commits November 5, 2025 06:35
Add comprehensive documentation-first approach to prevent AI agents from
over-engineering and reinventing the wheel. This addresses the issue where
agents would manually implement APIs instead of discovering existing
built-in tools and framework features.

**New Documentation:**
- Created AI_DOCS/documentation-first-approach.md with complete guidelines
- Detailed workflow: MCP tools → official docs → tutorials → verify no built-in
- Real-world examples (e.g., Agno HackerNews case study)
- Decision matrices and success criteria

**Updated Core Files:**
- CLAUDE.md: Added CRITICAL documentation-first section as secondary directive
- AGENTS.md: Added documentation-first approach and updated quick reference
- AI_DOCS/ai-tools.md: Added mandatory documentation-first section
- AI_DOCS/README.md: Added new file to documentation list

**Updated AI Tool Configs:**
- .gemini/styleguide.md: Added brief documentation-first section (synced 2025-11-05)
- .github/copilot-instructions.md: Added documentation-first guidance (synced 2025-11-05)
- Both include references to full guidelines in AI_DOCS

**Template Updates:**
- template/CLAUDE.md.jinja: Added documentation-first approach
- template/AGENTS.md.jinja: Added documentation-first with quick reference
- template/AI_DOCS/*.jinja: Synced all documentation files
- template/.gemini/: Copied updated styleguide.md
- template/.github/: Copied updated copilot-instructions.md

**Quality Gates:**
- Updated Quality Gates Checklist to include mandatory documentation research
- Added to workflow: Phase 0 (Documentation Discovery) before TDD phases
- All quality checks pass (200 tests, 86% coverage)

**Key Features:**
- Prioritizes MCP tools for documentation fetching
- Requires WebFetch/WebSearch before implementation
- Prevents reverse-engineering when official docs exist
- Emphasizes using framework built-ins over custom code

This ensures all AI agents (Claude, Gemini, Copilot, Cursor, Aider) follow
a consistent documentation-first approach across both the current codebase
and all future projects created from the template.
@tirthbodawala
tirthbodawala merged commit 3b0d68b into main Nov 5, 2025
6 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants