Help us build the most comprehensive guide to production AI agents
We welcome contributions that help developers build better AI agents:
- New agent patterns with production use cases
- Case studies with real metrics and learnings
- Production lessons from deployed systems
- Framework comparisons with benchmark data
- Error patterns and solutions
- Cost optimization techniques with savings data
- Security vulnerabilities and mitigations
- Theoretical patterns without implementation
- Framework tutorials (better suited for official docs)
- Duplicate content (check existing docs first)
- Opinion pieces without data
- Marketing content or product promotions
- AI-generated content without human review
- Plagiarized content
- Content violating our Code of Conduct
Best for: Suggestions, questions, bug reports
- Go to Issues
- Check if your topic already exists
- Create new issue with template:
## Proposed Contribution
**Type:** [Pattern | Case Study | Comparison | Production Lesson]
**Topic:** Brief description
**Why it matters:** Value to readers
**Supporting data:** Metrics, benchmarks, citations
**Implementation:** Link to repo (if applicable)Best for: Ready-to-merge content
# Fork the repo on GitHub, then:
git clone https://github.com/YOUR_USERNAME/ai-agent-architecture-patterns.git
cd ai-agent-architecture-patternsgit checkout -b feature/your-contribution-nameBranch naming:
feature/parallel-execution-pattern(new pattern)case-study/e-commerce-agent(new case study)fix/typo-in-react-pattern(fixes)update/cost-optimization-data(updates)
Follow our structure: See existing files for format
For new patterns (01-patterns/):
- When to Use / When NOT to Use
- Architecture diagram (Mermaid)
- Code examples (production-ready)
- Tradeoffs table
- Cost analysis
- Common pitfalls (6+)
- Real-world examples
For case studies (04-case-studies/):
- Problem statement with metrics
- Pattern selection rationale
- Full architecture diagram
- Implementation code
- Cost breakdown with ROI
- Results (before/after)
- What worked / didn't work
- Key learnings
# Check markdown formatting
markdownlint *.md
# Validate links
markdown-link-check *.md
# Test Mermaid diagrams render
# (paste into https://mermaid.live)git add .
git commit -m "feat: add parallel execution pattern with case study"Commit message format:
feat:New feature/contentfix:Bug fix, typo correctionupdate:Update existing contentdocs:Documentation improvements
git push origin feature/your-contribution-nameThen create Pull Request on GitHub with:
- Clear title and description
- Why this contribution matters
- Any supporting data/links
- Link to related issues
Headings:
# Main Title (H1 - once per file)
## Section (H2)
### Subsection (H3)Code blocks:
```python
# Always specify language
def example():
return "production-ready code"
```Emphasis:
- Bold for keywords, important concepts
codefor function names, variables, files- Italics sparingly for emphasis
✅ Do:
- Write in active voice ("Use ReAct when..." not "ReAct can be used when...")
- Use concrete examples with numbers
- Include tradeoffs (honest assessment)
- Cite sources for claims
- Keep paragraphs short (3-4 sentences)
❌ Don't:
- Hype language ("amazing", "revolutionary")
- Vague claims ("significantly better")
- Tutorial-style step-by-step (unless case study)
- First-person ("I think", "we believe")
Requirements:
- Production-ready (not toy examples)
- Include error handling
- Add comments for clarity
- Use type hints (Python)
- Show full imports
Example:
from typing import List, Dict
import asyncio
async def execute_tools_parallel(
tools: List[callable],
max_concurrent: int = 5
) -> List[Dict]:
"""Execute multiple tools concurrently with rate limiting.
Args:
tools: List of async tool functions
max_concurrent: Max parallel executions
Returns:
List of tool results
"""
semaphore = asyncio.Semaphore(max_concurrent)
async def limited_execute(tool):
async with semaphore:
try:
return await tool()
except Exception as e:
logger.error(f"Tool {tool.__name__} failed: {e}")
return {"error": str(e)}
return await asyncio.gather(*[limited_execute(t) for t in tools])Use Mermaid for:
- Architecture diagrams
- Flow charts
- Decision trees
- Sequence diagrams
Example:
graph TD
A[User Query] --> B{Intent Classifier}
B -->|technical| C[Tech Support Agent]
B -->|billing| D[Billing Agent]
C --> E[Response]
D --> E
Requirements:
- Test in mermaid.live before submitting
- Use clear labels
- Keep complexity manageable (max 15 nodes)
Must include:
- Clear description (1-2 sentences)
- When to use (3+ scenarios)
- When NOT to use (3+ scenarios)
- Architecture diagram
- Implementation code (50-100 lines)
- Tradeoffs table
- Cost analysis with numbers
- 6+ common pitfalls
- Production considerations
- References to papers/frameworks
Length: 150-250 lines of markdown
Must include:
- Problem statement with metrics
- Pattern selection (why this over others)
- Full architecture diagram
- Implementation details (3-5 key components)
- Tools integrated
- Cost breakdown (before/after)
- Results with metrics
- What worked + what didn't
- Key learnings (5+)
- Code references (GitHub link or inline)
Length: 300-500 lines of markdown
Data requirements:
- Real metrics (not estimates)
- ROI calculations
- Before/after comparisons
- Cost per month
Must include:
- TL;DR decision matrix
- Feature comparison table
- When to choose each
- Cost comparison (actual numbers)
- Performance benchmarks
- Migration paths
- Real-world examples
- Decision framework
Length: 200-300 lines
Must include:
- Problem description
- Multiple solutions (3+)
- Tradeoffs for each
- Code examples
- Common pitfalls (6+)
- Production checklist
- Monitoring approaches
- References
Length: 150-250 lines
Content:
- ✅ Accurate technical information
- ✅ Production-ready code
- ✅ Real metrics and data
- ✅ Balanced perspective (pros/cons)
- ✅ Proper citations
Format:
- ✅ Follows style guide
- ✅ Markdown renders correctly
- ✅ Links work
- ✅ Diagrams render
- ✅ Code runs
Value:
- ✅ Fills gap in existing docs
- ✅ Practical and actionable
- ✅ Helps production developers
- Initial review: 2-3 days
- Feedback provided: If changes needed
- Final review: 1-2 days after updates
- Merge: Once approved
We may request:
- More detail in sections
- Additional code examples
- Metrics/data to support claims
- Restructuring for clarity
- Additional pitfalls or tradeoffs
All contributors added to:
CONTRIBUTORS.mdfile- README acknowledgments
- Release notes (for major contributions)
Exceptional contributions get:
- Social media shoutout
- Featured in newsletter
- Direct link in README
Criteria:
- Novel pattern with validation
- Comprehensive case study with metrics
- Significant production insights
Before submitting PR:
- Read existing content to avoid duplicates
- Follow file structure and naming
- Include all required sections
- Add code examples with error handling
- Create Mermaid diagrams (tested)
- Provide real metrics/data
- List 6+ common pitfalls
- Add references/citations
- Test all links
- Run markdown linter
- Write clear commit messages
- Create descriptive PR
Positive environment:
- Respectful and inclusive language
- Welcoming diverse perspectives
- Constructive feedback
- Focus on learning and growth
Unacceptable:
- Harassment or discrimination
- Personal attacks
- Trolling or inflammatory comments
- Publishing others' private information
Violations reported to: mohitmahara40@gmail.com
Consequences:
- Warning
- Temporary ban
- Permanent ban
Before submitting:
- Check existing issues
- Review FAQ section
- Search closed PRs
Still have questions?
- Open a GitHub Discussion
- Join Discord community
- Email: mohitmahara40@gmail.com
First time?
-
Find an issue:
- Look for
good-first-issuelabel - Check
help-wanteditems
- Look for
-
Small contributions:
- Fix typos
- Update outdated info
- Add missing links
- Improve code comments
-
Build confidence:
- Start with small PRs
- Learn the review process
- Graduate to larger contributions
Writing guides:
Code standards:
- PEP 8 (Python)
- Google Python Style Guide
Every contribution helps developers build better AI agents. We appreciate your time and expertise.
Let's make this the go-to resource for production AI agents!
- Ready to contribute? Open an issue
- Join community? See Communities
- Explore docs? Start here