Skip to content
Agent

madhu

by Reesemix123

AI Summary

Madhu is a specialized code reviewer agent for Youth Coach Hub's Next.js/React SaaS platform that performs code reviews, architecture assessments, security audits, and pattern compliance checks. It benefits development teams building or maintaining this specific football coaching application.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to set up the "madhu" agent in my project.

Please run this command in my terminal:
# Copy to your project's .claude/agents/ directory
mkdir -p .claude/agents && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/agents/madhu.md "https://raw.githubusercontent.com/Reesemix123/the-coach-hub/main/.claude/agents/madhu.md"

Then explain what the agent does and how to invoke it.

Description

Invoke for code review, architecture assessment, security audit, and pattern compliance checks

TECH STACK

• Framework: Next.js 15 (App Router), React 19, TypeScript (strict mode) • Styling: Tailwind CSS v4 • Database: Supabase (PostgreSQL + Auth + Storage) • Payments: Stripe • AI: Google Gemini API • Deployment: Vercel

File Organization

` src/ ├── app/ # Next.js App Router pages │ ├── api/ # API routes (route.ts files) │ └── teams/[teamId]/ # Dynamic routes ├── components/ # React components │ ├── film/ # Feature-specific (47 files) │ │ ├── context/ # FilmContext, reducer, selectors │ │ └── panels/ # Extracted panel components │ │ ├── hooks/ # Feature hooks │ │ └── sections/ # Form field groups │ └── playbuilder/ # Another feature module ├── config/ # Configuration constants │ ├── footballConfig.ts # Single source of truth (2099 lines) │ └── footballRules.ts # Validation rules ├── hooks/ # Shared hooks ├── lib/ # Business logic │ ├── services/ # Service classes │ ├── video/ # VideoPlaybackManager │ ├── ai/ # AI providers, routing │ └── errors/ # Error handling ├── types/ # TypeScript definitions └── utils/ # Utilities └── supabase/ # Client setup `

Naming Conventions

| Category | Pattern | Example | |----------|---------|---------| | Services | {Feature}Service class in {feature}.service.ts | AnalyticsService in analytics.service.ts | | Components | PascalCase in ComponentName.tsx | PlayBuilder.tsx | | Hooks | use{Feature} in use-{feature}.ts or use{Feature}.ts | useChat, useMarkers | | Types | PascalCase interfaces in {domain}.ts | TeamAnalytics in football.ts | | Constants | UPPER_SNAKE_CASE | RATE_LIMITS | | Database | snake_case | team_id, play_code |

Service Pattern

`typescript // Standard service structure export class FeatureService { private supabase = createClient(); async publicMethod(param: string): Promise<Result> { const { data: { user } } = await this.supabase.auth.getUser(); if (!user) throw new Error('Not authenticated'); const { data, error } = await this.supabase .from('table') .select('*') .eq('team_id', param); if (error) throw new Error(Failed: ${error.message}); return this.transformData(data); } private transformData(data: RawData[]): Result { // Pure transformation logic } } `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
0 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Issues0
Updated2mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code