skills/cpicon/agent-generation/SKILL.md
This skill provides knowledge for generating effective Claude Code agents tailored to specific projects. It is used internally by the agent-team-creator plugin when analyzing codebases and creating specialized agent teams. Contains templates, best practices, and patterns for writing project-aware agents.
npx skillsauth add aiskillstore/marketplace agent-generationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides the knowledge and templates needed to generate high-quality Claude Code agents that are experts on a specific codebase.
Generated agents must understand the specific project, not just general concepts:
Each agent should have a distinct role without overlapping:
| Agent Type | Focus Area | Avoids | |------------|------------|--------| | Tech-Stack Expert | Frameworks, libraries, tooling | Business logic | | Architecture Expert | Structure, patterns, conventions | Implementation details | | Domain Expert | Business logic, data models, APIs | Infrastructure | | Testing Specialist | Test patterns, fixtures, coverage | Production code | | DevOps Expert | CI/CD, deployment, infrastructure | Application code |
Each agent needs specific, non-overlapping trigger phrases:
whenToUse: |
This agent should be used when the user asks about "React component patterns",
"hook usage in this project", "state management with Redux", or needs help
understanding how the frontend architecture works.
Every generated agent follows this structure:
---
identifier: project-role-expert
whenToUse: |
This agent should be used when... [specific triggers with project context]
systemPrompt: |
[Comprehensive system prompt with project knowledge]
tools: [Glob, Grep, Read, Edit, Write, Bash, LS, Task, WebFetch, WebSearch]
color: "#hexcode"
model: sonnet
---
Analyze these files to identify tech stack:
package.json, requirements.txt, Cargo.toml, go.modnext.config.js, vite.config.ts, django/settings.pytsconfig.json, webpack.config.js, babel.config.jsGenerate agents for each major technology:
Analyze these patterns:
Generate architecture agent covering:
Analyze these elements:
Generate domain agents for:
Use consistent colors by agent type:
| Agent Type | Color | Hex |
|------------|-------|-----|
| Tech-Stack | Blue | #3B82F6 |
| Architecture | Purple | #8B5CF6 |
| Domain/Business | Green | #10B981 |
| Testing | Orange | #F59E0B |
| DevOps/Infra | Red | #EF4444 |
| Security | Pink | #EC4899 |
| Performance | Cyan | #06B6D4 |
Role Definition (1-2 sentences)
You are an expert on the [Project Name] codebase, specializing in [domain].
Project Context (3-5 sentences)
This project uses [tech stack]. The codebase is organized with [structure].
Key directories include [paths]. The project follows [patterns/conventions].
Expertise Areas (bullet list)
Your expertise includes:
- Specific area 1 with project context
- Specific area 2 with file references
- Specific area 3 with convention details
Guidance Principles (3-5 bullets)
When helping:
- Always reference existing patterns in [path]
- Follow the [convention] established in [file]
- Ensure consistency with [standard]
Always embed actual project details:
systemPrompt: |
You are an expert on the **Acme Dashboard** React application.
## Project Overview
This is a Next.js 14 application using the App Router. The codebase uses:
- TypeScript with strict mode
- Tailwind CSS for styling
- React Query for server state
- Zustand for client state
## Key Directories
- `src/app/` - Next.js app router pages
- `src/components/` - Reusable UI components
- `src/hooks/` - Custom React hooks
- `src/lib/` - Utility functions and API clients
## Conventions
- Components use PascalCase: `UserProfile.tsx`
- Hooks use camelCase with 'use' prefix: `useAuth.ts`
- API routes follow REST conventions
- All components have co-located test files
whenToUse: |
This agent should be used when the user asks about "React patterns in this project",
"how hooks are used here", "component architecture", "state management approach",
"Next.js configuration", "TypeScript types", or needs help with frontend implementation
following project conventions.
whenToUse: |
This agent should be used when the user asks "where should I put this code",
"how is the project organized", "what's the module structure", "how do imports work",
"project conventions", "directory layout", or needs guidance on code organization
and architectural decisions.
whenToUse: |
This agent should be used when the user asks about "user authentication flow",
"how orders are processed", "data model relationships", "API endpoint structure",
"business rules for [feature]", or needs understanding of domain-specific logic
and data flows.
Determine team size based on project complexity:
| Project Signals | Team Size | Agent Types | |-----------------|-----------|-------------| | Single framework, <50 files | 2-3 | Tech + Architecture | | Multiple frameworks, 50-200 files | 4-5 | Tech (2) + Arch + Domain | | Monorepo or >200 files | 5-8 | Full coverage per service | | Microservices | 3-4 per service | Service-specific teams |
For detailed templates and examples:
references/agent-templates.md - Complete agent templates for each typereferences/analysis-patterns.md - Patterns for codebase analysisWorking examples in examples/:
tech-stack-expert.md - Complete tech-stack agent examplearchitecture-expert.md - Complete architecture agent exampledomain-expert.md - Complete domain agent exampledevelopment
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.