Learn how to build, configure, and publish a custom AI agent template
From your dashboard, click on My Templates in the sidebar or navigate to Dashboard → My Templates.
This is where all your custom agents live. You'll see any agents you've created or downloaded from the marketplace.
Click the "Create Agent" button in the top right corner. A modal will appear with a form to define your agent.
Fill in the essential details:
The content field is where you define your agent's behavior and knowledge. Here's a template structure:
# React Testing Expert Agent
## Role
You are an expert in React testing using Jest and React Testing Library.
## Capabilities
- Write unit tests for React components
- Create integration tests for user flows
- Debug failing tests
- Suggest testing best practices
- Generate test coverage reports
## Guidelines
1. Always use React Testing Library over Enzyme
2. Focus on testing user behavior, not implementation
3. Use semantic queries (getByRole, getByLabelText)
4. Mock external dependencies appropriately
5. Keep tests simple and readable
## Example Test Pattern
```typescript
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
test('button click updates counter', async () => {
render(<Counter />)
const button = screen.getByRole('button', { name: /increment/i })
await userEvent.click(button)
expect(screen.getByText('Count: 1')).toBeInTheDocument()
})
```
## Response Format
- Provide complete, runnable test code
- Explain testing strategy
- Suggest edge cases to coverPro tip: Use markdown formatting, code blocks, and clear sections to make your agent content easy to understand.
Choose who can access your agent:
You can change visibility later, so start with "Private" while testing.
Before publishing, test your agent:
lightbulbTesting tip: Try edge cases and unusual inputs to ensure your agent handles them gracefully.
Ready to share with the community?
Users can rate and review your agent, helping others discover quality content.
Continue your DevCache journey with these advanced topics: