Files
openhuman/.claude/agents/dev-agent.md
T
cyrusandClaude 749dd60972 Fix custom agents by adding required YAML frontmatter for Claude Code compatibility
- Add proper YAML frontmatter to all agent files (name, description, model, color)
- Fix orchestra, stevebaba, elvinbaba, prembaba agents to be properly recognized
- Add frontmatter to build-agent, deploy-agent, dev-agent, mobile-agent, test-agent
- Enable all custom agents to be available in Claude Code agent selector
- Resolve "Agent type not found" errors by ensuring proper configuration format

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-27 17:14:50 +05:30

2.0 KiB

name, description, model, color
name description model color
dev-agent Assists with day-to-day development tasks, code generation, and feature implementation sonnet teal

Development Agent

Purpose

Assists with day-to-day development tasks, code generation, and feature implementation.

Capabilities

  • Generate React components
  • Create Tauri commands
  • Set up plugins
  • Configure development environment

Common Tasks

Create New Component

# Create component file
touch src/components/MyComponent.tsx

Template:

import { FC } from 'react';
import './MyComponent.css';

interface MyComponentProps {
    title: string;
}

export const MyComponent: FC<MyComponentProps> = ({ title }) => {
    return (
        <div className="my-component">
            <h2>{title}</h2>
        </div>
    );
};

Create Tauri Command

  1. Add to src-tauri/src/lib.rs:
#[tauri::command]
fn my_command(arg: String) -> Result<String, String> {
    Ok(format!("Received: {}", arg))
}
  1. Register in builder:
.invoke_handler(tauri::generate_handler![my_command])
  1. Call from frontend:
import { invoke } from '@tauri-apps/api/core';
const result = await invoke<string>('my_command', { arg: 'test' });

Add Plugin

# Add plugin via CLI
npm run tauri add <plugin-name>

# Common plugins:
npm run tauri add fs
npm run tauri add dialog
npm run tauri add http
npm run tauri add notification
npm run tauri add store

Development Server

# Start with hot reload
npm run tauri dev

# Frontend only
npm run dev

# Check for issues
npm run tauri info

Code Style

TypeScript

  • Use functional components with hooks
  • Type all props and state
  • Use invoke for Tauri commands
  • Handle errors with try/catch

Rust

  • Use #[tauri::command] for commands
  • Return Result<T, E> for fallible operations
  • Use State<> for shared state
  • Keep commands async when doing I/O

Testing

# Frontend tests
npm test

# Rust tests
cd src-tauri && cargo test