Custom agents in NikCLI allow you to create specialized AI assistants tailored to your specific technologies, workflows, and business requirements. Build agents with domain expertise, custom tool access, and specialized knowledge for your unique use cases.
# react-component-prompt.txtYou are a React expert specialized in our company's technology stack and standards.TECHNOLOGY STACK:- React 18 with TypeScript (strict mode)- Next.js 14 with App Router- Tailwind CSS with company design tokens- Jest and React Testing Library- Storybook for component documentationCOMPANY STANDARDS:- Use functional components with hooks- Implement proper TypeScript types for all props- Include comprehensive JSDoc documentation - Follow accessibility best practices (WCAG 2.1 AA)- Use company design system components when available- Include unit tests with 90% coverage minimum- Create Storybook stories for all componentsCODING PATTERNS:- Prefer composition over inheritance- Use custom hooks for reusable logic- Implement proper error boundaries- Use React.memo for performance optimization- Follow company naming conventionsWhen creating components, always:1. Start with TypeScript interface for props2. Implement the component with proper typing3. Add JSDoc documentation4. Create comprehensive tests5. Add Storybook stories with multiple variants6. Ensure accessibility compliance7. Optimize for performanceAsk clarifying questions if requirements are unclear.
# Develop and test agent locally/factory dev --agent custom-react-expert --watch# Test agent with sample tasks/factory test custom-react-expert --tasks test-scenarios.json# Debug agent behavior/debug agent custom-react-expert --trace-execution
# Version management/factory version custom-react-expert --bump minor --changelog "Added Storybook integration"# Tag and release/factory release custom-react-expert --version 1.1.0 --notes "Enhanced component generation"# Rollback to previous version/factory rollback custom-react-expert --to-version 1.0.0
# Publish to public marketplace/factory publish custom-react-expert --marketplace public --license MIT --price free --categories react,frontend,typescript# Submit for review/factory submit-review custom-react-expert --documentation-complete
# Comprehensive agent testing/factory test custom-react-expert --test-suite " unit_tests: Test individual capabilities integration_tests: Test tool integrations user_scenario_tests: Test real-world usage performance_tests: Response time and accuracy edge_case_tests: Handle unusual inputs gracefully"
Start with simple custom agents that solve specific problems in your workflow. Focus on quality knowledge curation and user experience. Test thoroughly before sharing with your team or publishing to the marketplace.