Prompt Library
A curated collection of production-tested prompts organized by domain and use case. These prompts power the AltSportsLeagues.ai agent framework.
Prompt Categories
| Category | Description |
|---|---|
| System Prompts | Define agent personas and capabilities |
| Task Prompts | Specific task instructions |
| Chain Prompts | Multi-step workflow prompts |
| Evaluation Prompts | Quality assessment prompts |
System Prompts
Backend Engineer System Prompt
The backend engineer agent is configured with expertise in:
- FastAPI: Async API development, OpenAPI docs, dependency injection
- Database: PostgreSQL, Redis, async drivers (asyncpg)
- Production: Docker, Cloud Run, CI/CD pipelines
Quality Standards:
- Type hints throughout (mypy strict)
- Test coverage greater than 80%
- Self-documenting code
- Proper error handling and logging
Frontend Engineer System Prompt
The frontend engineer agent specializes in:
- Next.js 16: App Router, Server Components, streaming
- React 18+: Hooks, Suspense, concurrent features
- TypeScript: Strict mode, generics, utility types
- Styling: Tailwind CSS, shadcn/ui components
Task Prompts
League Analysis
Analyzes league questionnaires and provides tier classifications with:
- Market Potential scoring (0-100)
- Operational Maturity assessment
- Data Readiness evaluation
- Risk Assessment
Contract Generation
Generates contract terms based on tier classification including:
- Pricing Structure
- Deliverables
- Terms and Conditions
- Technical Requirements
Email Classification
Classifies emails into categories:
- league_inquiry
- sportsbook_inquiry
- support_request
- spam
- internal
Best Practices
| Principle | Description |
|---|---|
| Be Specific | Clear, unambiguous instructions |
| Provide Context | Include relevant background |
| Define Format | Explicit output structure |
| Include Examples | Show expected patterns |
| Set Boundaries | Guardrails and constraints |
Prompt Versioning
All prompts are versioned and tracked in the prompt registry. Use semantic versioning for prompt updates:
- Major: Breaking changes to output format
- Minor: New capabilities, backward compatible
- Patch: Bug fixes and improvements
Related Documentation
- AI Agent Framework - Agent architecture overview
- Schema Registry - Output schema definitions
- Creating Custom Agents - Build your own agents