← Discover MCPs and Agents
C
AgentAI & MLGitHub

Class-AI-Agent

A modular framework for building intelligent AI agents powered by Claude, with rule-based workflows, skill management, and clean JS, TS architecture.

Links

README

From the repo.

AI Agent Project — Production-Grade Configuration

Code Web Khong Kho

Production-ready AI Agent configuration for Claude Code

Structured workflows, specialized agents, mandatory rules, and best practices

Version Facebook TikTok Website

Inspired by addyosmani/agent-skills


Overview

This repository provides a production-grade configuration for Claude Code AI agents. It includes:

  • Structured development workflow (Spec → Plan → Build → Test → Review → Ship)
  • 10 specialized agents for different development roles
  • 13 mandatory rules covering code quality, architecture, and operations
  • 8 slash commands for common workflows
  • 4 reference checklists for security, testing, performance, and accessibility

Development Workflow

┌──────────────────────────────────────────────────────────────────┐
│                                                                  │
│   /spec  →  /plan  →  /build  →  /test  →  /review  →  /deploy  │
│                                                                  │
│   Define    Plan     Build     Verify    Review      Ship        │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘
PhaseCommandDescription
Define/specCreate PRD with objectives, scope, and boundaries
Plan/planDecompose into vertical slices with acceptance criteria
Build/buildImplement incrementally using TDD
Verify/testWrite tests with RED-GREEN-REFACTOR
Review/reviewFive-axis code review
Ship/deployBuild, test, and deploy

Supporting Commands

CommandDescription
/debugSystematic error diagnosis
/simplifyReduce code complexity
/fix-issueAnalyze and fix issues

Project Structure

.claude/
├── CLAUDE.md                    # Main AI configuration
│
├── commands/                    # Slash commands (8 total)
│   ├── spec.md                  # /spec — PRD creation
│   ├── plan.md                  # /plan — Task breakdown
│   ├── build.md                 # /build — Incremental implementation
│   ├── test.md                  # /test — TDD workflow
│   ├── review.md                # /review — Code review
│   ├── deploy.md                # /deploy — Deployment
│   ├── debug.md                 # /debug — Error diagnosis
│   ├── simplify.md              # /simplify — Code simplification
│   └── fix-issue.md             # /fix-issue — Issue resolution
│
├── agents/                      # Specialized agents (10 total)
│   ├── frontend.md              # Frontend Developer
│   ├── backend.md               # Backend Developer
│   ├── systems-architect.md     # Systems Architect
│   ├── code-reviewer.md         # Code Reviewer
│   ├── test-engineer.md         # Test Engineer
│   ├── security-auditor.md      # Security Auditor
│   ├── qa.md                    # QA Engineer
│   ├── project-manager.md       # Project Manager
│   ├── ui-ux-designer.md        # UI/UX Designer
│   └── copywriter-seo.md        # Copywriter/SEO
│
├── rules/                       # Mandatory rules (13 total)
│   ├── clean-code.md            # Clean Code principles
│   ├── code-style.md            # Formatting & naming
│   ├── error-handling.md        # Error patterns
│   ├── tech-stack.md            # Approved technologies
│   ├── system-design.md         # System design patterns
│   ├── project-structure.md     # Folder organization
│   ├── api-conventions.md       # REST API standards
│   ├── naming-conventions.md    # Naming patterns
│   ├── database.md              # Database patterns
│   ├── security.md              # Security requirements
│   ├── monitoring.md            # Observability
│   ├── testing.md               # Test standards
│   └── git-workflow.md          # Git conventions
│
├── skills/                      # Advanced skills
│   ├── tdd/SKILL.md             # Test-Driven Development
│   ├── code-review/SKILL.md     # Five-axis review
│   ├── incremental-implementation/SKILL.md
│   ├── deploy/SKILL.md
│   └── security-review/SKILL.md
│
├── references/                  # Quick checklists
│   ├── security-checklist.md
│   ├── testing-patterns.md
│   ├── performance-checklist.md
│   └── accessibility-checklist.md
│
└── settings.json                # Project settings

Specialized Agents

Development Agents

AgentRoleInvoke When
Frontend DeveloperNext.js, React, TypeScript, UIComponents, pages, state
Backend DeveloperExpress, Prisma, Redis, BullMQAPIs, services, jobs
Systems ArchitectArchitecture, ADRs, scalingSystem design decisions

Quality Agents

AgentRoleInvoke When
Code ReviewerFive-axis code reviewPR reviews, quality checks
Test EngineerTDD, coverage, test strategyWriting and reviewing tests
Security AuditorVulnerability, threat modelingSecurity reviews
QA EngineerTest plans, E2E, bug reportsQuality assurance

Product Agents

AgentRoleInvoke When
Project ManagerStories, sprints, planningProject planning
UI/UX DesignerDesign system, accessibilityUX decisions
Copywriter/SEOCopy, meta tags, SEOContent creation

Approved Tech Stack

LayerTechnology
Frontend (SEO)Next.js 14 (App Router)
Frontend (Admin)React + Vite
StylingTailwind CSS + shadcn/ui
StateZustand + TanStack Query
BackendExpress.js + TypeScript
ORMPrisma
DatabasePostgreSQL
CacheRedis (ioredis)
QueueBullMQ (simple) / RabbitMQ (enterprise)
AuthNextAuth.js / JWT + bcrypt
TestingVitest + Playwright
MonitoringPrometheus + Grafana + Pino
CI/CDGitHub Actions
DeployVercel + Railway/Fly.io

Mandatory Rules

All 13 rules in .claude/rules/ must be followed:

Code Quality

  • clean-code.md — Variables, functions, SOLID, async/await
  • code-style.md — 2-space indent, single quotes, semicolons
  • error-handling.md — AppError class, centralized handler

Architecture

  • tech-stack.md — Approved technologies only
  • system-design.md — CAP, caching, scaling patterns
  • project-structure.md — Layered architecture
  • api-conventions.md — REST standards, response envelopes

Data & Naming

  • naming-conventions.md — Cache keys, DB, queues, env vars
  • database.md — Prisma patterns, N+1 prevention

Operations

  • security.mdCRITICAL — Never violate
  • monitoring.md — Prometheus, Grafana, alerting
  • testing.md — 80% coverage minimum
  • git-workflow.md — Conventional commits

Quick Start

# Clone repository
git clone <repo-url>
cd ai-agent

# Copy to your project
cp -r .claude/ /path/to/your/project/

# Or use as template

Using Commands

# In Claude Code, use slash commands:
/spec "User authentication feature"
/plan
/build
/test
/review
/deploy

Using Agents

"Act as the Frontend Developer and build the login page"
"As Systems Architect, design the notification system"
"Code Reviewer: review this PR for security issues"
"Test Engineer: write tests for the payment flow"

Key Concepts

Five-Axis Code Review

Every code review evaluates:

  1. Correctness — Does it work? Edge cases?
  2. Readability — Can others understand it?
  3. Architecture — Follows patterns? Appropriate abstractions?
  4. Security — Input validation? Auth? No secrets?
  5. Performance — N+1? Pagination? Async?

Test-Driven Development

RED    → Write failing test
GREEN  → Write minimal code to pass
REFACTOR → Improve while green

Vertical Slicing

Build features end-to-end, not layer-by-layer:

✅ Task 1: User can create task (DB + API + UI)
✅ Task 2: User can view tasks (DB + API + UI)

❌ Task 1: Create all DB models
❌ Task 2: Create all API routes

Security

Never commit:

  • .env files
  • API keys, secrets, passwords
  • .claude/settings.local.json

Always:

  • Use environment variables
  • Validate all inputs
  • Hash passwords (bcrypt >= 12 rounds)
  • Parameterize queries

Contributing

  1. Follow the development workflow (/spec/plan/build)
  2. Ensure all tests pass
  3. Run /review before submitting PR
  4. Follow conventional commit format

Credits

  • Workflow inspired by addyosmani/agent-skills
  • Best practices from Software Engineering at Google
  • Clean Code principles from Robert C. Martin

Author

Code Web Khong Kho

Code Web Khong Kho

PlatformLink
Facebookfacebook.com/codewebkhongkho
TikTok@code.web.khng.kh
Websitecodewebkhongkho.com

Made with care by Code Web Khong Kho

Collected info

  • 265 stars
  • 166 forks
  • Source updated: 9/17/2026