
Experts in Action
What are Experts?
Experts are specialized AI assistants that:- Provide guidelines for specific technologies or domains
- Include best practices from industry standards
- Reference documentation for accurate code generation
- Maintain consistency across your codebase
- Reduce errors by following proven patterns
Built-In Experts
HAI Build includes four production-ready experts:.NET Expert
- ASP.NET Core web applications
- Entity Framework Core
- Dependency injection patterns
- C# best practices
- .NET ecosystem tools
- Web APIs and microservices
- Enterprise applications
- Azure cloud integrations
Terraform Expert
- Infrastructure as Code
- AWS, Azure, GCP providers
- Module design patterns
- State management
- Security best practices
- Cloud infrastructure provisioning
- Multi-cloud deployments
- Infrastructure automation
Node.js Expert
- Express.js and Fastify
- TypeScript for Node
- npm ecosystem
- Async patterns and promises
- Testing with Jest/Mocha
- Backend services
- REST and GraphQL APIs
- Serverless functions
Go Expert
- Idiomatic Go patterns
- Concurrency with goroutines
- Standard library usage
- Error handling
- Testing and benchmarking
- High-performance services
- CLI tools
- Distributed systems
Custom Experts
Create your own experts tailored to your team’s needs:Open Experts Panel
Create New Expert
- Name: Descriptive identifier (e.g., “React with Redux”)
- Guidelines: Markdown-formatted best practices
- Document Links: Up to 3 reference URLs (optional)
Configure Guidelines
Add Documentation (Optional)
- Official docs
- Internal wikis
- Best practice guides
Save and Activate
Expert Storage Structure
Custom experts are stored in your workspace:- metadata.json
- prompt.md
- docs/
- status.json
Using Experts
Selecting an Expert
Open Expert Selector
Choose Expert
Confirm Selection
Expert-Guided Code Generation
Once an expert is active:- System Prompt Enhancement: Expert guidelines are injected into the AI’s system prompt
- Context-Aware Responses: AI follows expert’s best practices
- Consistent Patterns: Code matches your defined standards
- Documentation References: AI can cite expert documentation
Without Expert
Without Expert
With React Expert
With React Expert
Expert Guidelines Best Practices
Be Specific and Actionable
Be Specific and Actionable
const over let.”Include Examples
Include Examples
Organize by Topic
Organize by Topic
Document Processing
When you add document links to an expert:URL Validation
Content Fetching
Markdown Conversion
Storage
docs/ folder.Status Tracking
status.json with processing status.Supported Document Types
- Web pages: HTML documentation
- GitHub README: Markdown from repositories
- API docs: OpenAPI/Swagger specifications
- PDFs: Technical guides (experimental)
Expert Use Cases
Team Standards
- Naming conventions
- File organization
- Comment styles
- Git commit formats
Framework Patterns
- Next.js app router conventions
- Django REST framework structure
- Spring Boot annotations
- Rails ActiveRecord patterns
Security Guidelines
- Input validation rules
- Authentication patterns
- Secret management
- SQL injection prevention
Testing Standards
- Unit test structure
- Integration test patterns
- Mocking strategies
- Coverage requirements
API Design
- RESTful conventions
- GraphQL schema design
- Error response formats
- Versioning strategies
Database Patterns
- ORM usage
- Migration patterns
- Query optimization
- Transaction handling
Advanced Expert Features
Multi-Expert Scenarios
Scenario: Full-stack applicationBackend Expert
Frontend Expert
Infrastructure Expert
Combining Experts with Other Features
- + HAI Tasks
- + Focus Chain
- + Custom Instructions
- Load tasks from Specif AI
- Select appropriate expert (e.g., .NET for backend tasks)
- Execute tasks with expert guidance
- Consistent code across all task outputs
Editing Experts
Locate Expert Files
.hai-experts/<expert-name>/Edit prompt.md
Update metadata.json (Optional)
Reload Expert
Sharing Experts
Share experts across teams:Commit to Git
.hai-experts/ to version control:Team Members Pull
Centralized Updates
Troubleshooting
Expert not appearing
Expert not appearing
- Check
.hai-experts/folder exists - Verify
prompt.mdfile is present - Ensure
metadata.jsonis valid JSON - Restart HAI Build extension
Document processing failed
Document processing failed
- Verify URLs are accessible
- Check network connectivity
- Review
status.jsonfor error details - Try removing and re-adding the link
AI not following expert guidelines
AI not following expert guidelines
- Verify expert is selected/active
- Check guidelines are clear and specific
- Ensure guidelines don’t conflict with task requirements
- Try rephrasing guidelines with examples
Expert changes not reflected
Expert changes not reflected
- Save all files in expert directory
- Restart current task
- Clear HAI Build cache
- Reload VS Code window
Best Practices Summary
Start Simple
Iterate Based on Output
Use Examples Liberally
Keep Guidelines Focused
Version Control Experts
Document Rationale