This directory contains deep-dive documentation for building amplifier-foundation modules. Use this guide to find the right reference for your needs.
| I want to... | Read this |
|---|---|
| Understand module types | MODULE_TYPES.md |
| Learn the development workflow | DEVELOPMENT_WORKFLOW.md |
| Set up testing | TESTING_GUIDE.md |
| Understand repository rules | REPOSITORY_RULES.md |
| See working examples | EXAMPLES.md |
| Learn API patterns | API_PATTERNS.md |
| Use modular-builder agent | MODULAR_BUILDER.md |
| Contribute modules | CONTRIBUTING.md |
Start here if you're new to amplifier-foundation:
- MODULE_TYPES.md - Understand the 5 module types (10 min read)
- EXAMPLES.md - Study complete working examples (15 min)
- DEVELOPMENT_WORKFLOW.md - Follow step-by-step process (20 min)
- TESTING_GUIDE.md - Set up testing (15 min)
Total time: ~60 minutes to first module
You've built a module and want to improve it:
- REPOSITORY_RULES.md - Ensure proper isolation
- API_PATTERNS.md - Follow common patterns
- TESTING_GUIDE.md - Achieve 85% coverage
- CONTRIBUTING.md - Prepare for publication
You're designing complex modules:
- MODULE_TYPES.md - Deep dive on protocols
- API_PATTERNS.md - Advanced patterns
- MODULAR_BUILDER.md - AI-assisted development
- REPOSITORY_RULES.md - Architectural constraints
- Start: MODULE_TYPES.md#tool-modules
- Examples: EXAMPLES.md#example-1-simple-tool-module
- API: API_PATTERNS.md#tool-module-patterns
- Testing: TESTING_GUIDE.md#testing-tool-modules
- Start: MODULE_TYPES.md#hook-modules
- Examples: EXAMPLES.md#example-2-hook-module
- API: API_PATTERNS.md#hook-module-patterns
- Testing: TESTING_GUIDE.md#testing-hook-modules
- Start: MODULE_TYPES.md#provider-modules
- Examples: EXAMPLES.md#example-3-provider-module
- API: API_PATTERNS.md#provider-module-patterns
- Testing: TESTING_GUIDE.md#testing-provider-modules
- Start: MODULE_TYPES.md#context-modules
- Examples: EXAMPLES.md#example-4-context-module
- API: API_PATTERNS.md#context-module-patterns
- Testing: TESTING_GUIDE.md#testing-context-modules
- Start: MODULE_TYPES.md#orchestrator-modules
- API: API_PATTERNS.md#orchestrator-module-patterns
- Testing: TESTING_GUIDE.md#testing-orchestrator-modules
→ DEVELOPMENT_WORKFLOW.md#3-create-module-structure
→ DEVELOPMENT_WORKFLOW.md#7-publishing-to-github
Deep dive on all 5 module types with protocols, examples, and testing strategies.
Read when:
- Building your first module
- Choosing the right module type
- Understanding protocol requirements
- Need type-specific testing guidance
Complete step-by-step development process from idea to publication.
Read when:
- Starting a new module
- Setting up local development
- Publishing to GitHub
- Maintaining existing modules
Comprehensive testing documentation with pyramid strategy, async patterns, and coverage.
Read when:
- Setting up tests
- Improving coverage
- Learning async testing
- Configuring CI/CD
Repository awareness constraints, naming conventions, and architectural principles.
Read when:
- Understanding "bricks and studs"
- Ensuring module isolation
- Validating architecture
- Avoiding common anti-patterns
Four complete working examples with full code, tests, and usage patterns.
Read when:
- Need copy-paste-ready code
- Learning by example
- Comparing module types
- Verifying understanding
Common implementation patterns for mount(), execute(), error handling, and configuration.
Read when:
- Implementing mount() function
- Structuring error handling
- Managing configuration
- Applying async patterns
Guide to using the modular-builder AI agent for generating module scaffolding.
Read when:
- Want to speed up development
- Need boilerplate generation
- Unsure about entry points
- Prototyping ideas quickly
Guidelines for contributing modules to the amplifier ecosystem.
Read when:
- Ready to publish module
- Want community feedback
- Contributing to foundation
- Following best practices
- amplifier-foundation GitHub - Core modules
- amplifier-core - Kernel and coordinator
- Agent Skills Specification - This skill's format
- amplifier-cli-skill - Building CLI applications
- GitHub Discussions - Ask questions
- Module Registry - Browse modules
Found an error or have a suggestion? Please open an issue.