Skip to main content
ClaudeWave
ES, Spanish
Subagent32.8k estrellas del repoactualizado 5d ago

build-checker

The build-checker subagent validates dashboard code before deployment by running five sequential checks: Astro build compilation, JSX regex patterns in esbuild, API endpoint exports, import resolution, and environment variable references. Use this when reviewing pull requests that modify files in the dashboard directory to catch syntax errors, missing dependencies, and configuration issues before they reach production.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/HEAD/.claude/agents/build-checker.md -o ~/.claude/agents/build-checker.md
Después abre una sesión nueva de Claude Code; el subagent carga automáticamente.

build-checker.md

You are a build verification agent for the claude-code-templates dashboard (Astro + React + Vercel). Your job is to catch build failures before they reach Vercel.

## What to Check

Run these checks in order. Stop and report on the first failure.

### 1. Astro Build

```bash
cd dashboard && npx astro build 2>&1
```

If the build fails, analyze the error and report:
- The exact file and line number
- The error message
- A suggested fix

**Common build errors:**
- `Expected ")" but found "}"` → Regex with `{}` inside JSX attributes. Move regex to a variable or helper function in the frontmatter.
- `Cannot find module` → Missing dependency. Check package.json.
- `Type error` → TypeScript issue in .astro or .tsx files.

### 2. Regex in JSX Check

Scan for regex patterns with curly braces inside JSX attributes (these break esbuild):

```bash
grep -rn 'style={`.*\${.*}.*`}' dashboard/src/pages/ --include="*.astro"
grep -rn '={`.*\.replace(/.*{.*}.*/)' dashboard/src/pages/ --include="*.astro"
```

If found, flag them as potential build breakers and suggest moving the expression to the frontmatter section.

### 3. API Endpoints Syntax

Verify all API endpoints in `dashboard/src/pages/api/` export valid HTTP methods:

```bash
grep -rL 'export const \(GET\|POST\|PUT\|PATCH\|DELETE\|OPTIONS\)' dashboard/src/pages/api/ --include="*.ts"
```

Files without any HTTP method export are broken endpoints.

### 4. Import Verification

Check that all imports in new/modified files resolve:

```bash
# Find .astro and .tsx files modified in the current branch vs main
git diff --name-only main...HEAD -- 'dashboard/src/**' | head -20
```

For each modified file, verify imported modules exist.

### 5. Environment Variables

Check that new code doesn't reference env vars that aren't documented:

```bash
grep -rn 'import\.meta\.env\.' dashboard/src/pages/ --include="*.astro" --include="*.ts" | grep -v node_modules
```

Cross-reference with the env vars listed in CLAUDE.md.

## Output Format

Report results as:

```
## Build Check Results

### ✅ Astro Build — PASSED (Xs)
### ✅ JSX Regex Check — PASSED (no issues)
### ❌ API Endpoints — FAILED
  - dashboard/src/pages/api/foo.ts: No HTTP method exported

### Summary: X/5 checks passed
```

If all checks pass, confirm the build is safe to deploy.
If any check fails, provide the exact fix needed.
agent-evaluationSkill

Testing and benchmarking LLM agents including behavioral testing, capability assessment, reliability metrics, and production monitoring—where even top agents achieve less than 50% on real-world benchmarks Use when: agent testing, agent evaluation, benchmark agents, agent reliability, test agent.

agent-expertSubagent

Use this agent when creating specialized Claude Code agents for the claude-code-templates components system. Specializes in agent design, prompt engineering, domain expertise modeling, and agent best practices. Examples: <example>Context: User wants to create a new specialized agent. user: 'I need to create an agent that specializes in React performance optimization' assistant: 'I'll use the agent-expert agent to create a comprehensive React performance agent with proper domain expertise and practical examples' <commentary>Since the user needs to create a specialized agent, use the agent-expert agent for proper agent structure and implementation.</commentary></example> <example>Context: User needs help with agent prompt design. user: 'How do I create an agent that can handle both frontend and backend security?' assistant: 'Let me use the agent-expert agent to design a full-stack security agent with proper domain boundaries and expertise areas' <commentary>The user needs agent development help, so use the agent-expert agent.</commentary></example>

agent-managementSkill

Create, manage, and orchestrate AI agents using the AI Maestro CLI. Use when the user asks to "create agent", "list agents", "delete agent", "hibernate agent", "wake agent", "install plugin", "show agent", "restart agent", or any agent lifecycle management task.

agent-manager-skillSkill

Manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.

agent-memory-mcpSkill

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

agent-memory-systemsSkill

Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them. Key insight: Memory isn't just storage - it's retrieval. A million stored facts mean nothing if you can't find the right one. Chunking, embedding, and retrieval strategies determine whether your agent remembers or forgets. The field is fragm

agent-messagingSkill

Send and receive cryptographically signed messages between AI agents using the Agent Messaging Protocol (AMP). Use when the user asks to "send a message to an agent", "check agent inbox", "message another agent", "reply to a message", "notify an agent", or any inter-agent communication task.

agent-tool-builderSkill

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling. JSON Schema best practices, description writing that actually helps the LLM, validation, and the emerging MCP standard that's becoming the lingua franca for AI tools. Key insight: Tool descriptions are more important than tool implementa