ワンクリックで
creating-expert
Create new domain expert with expertise file and workflows. Use when adding new technology or domain area.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create new domain expert with expertise file and workflows. Use when adding new technology or domain area.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Build Convex backends with queries, mutations, actions, HTTP endpoints, and schemas. Comprehensive guide for all Convex patterns and workflows.
Build Next.js applications with App Router, Server and Client Components, data fetching, routing, and TypeScript. Use when implementing Next.js pages, layouts, API routes, or React Server Components.
Install and customize shadcn/ui components with Tailwind CSS theming, variants, and styling. Use when adding UI components or customizing the design system.
Automatically deploys to Vercel production, uses Vercel MCP to fetch build logs, analyzes errors, fixes them, and retries until successful deployment. Use when deploying to production or fixing deployment issues.
Generate prompt variations from templates. Use when creating new commands, skills, or workflows.
Used to create a new agent. Used when a user wants to create a new agent
| name | Creating Expert |
| description | Create new domain expert with expertise file and workflows. Use when adding new technology or domain area. |
| tools | Read, Grep, Glob, Write, Edit |
| model | inherit |
Generate complete expert structure for a new domain. This is a meta-skill - a tool that builds tools.
Ask clarifying questions:
mkdir -p .claude/experts/{expert-name}-expert
Create three files:
expertise.yaml - Mental model (initially low confidence)question.md - Question workflowself-improve.md - Self-improvement workflowUse template from .claude/experts/_shared/expertise-schema.yaml:
---
expert: "{name}-expert"
domain: "{Domain Description}"
last_updated: "{current-date}"
version: "0.1.0"
confidence: "low"
---
{domain}_patterns:
- pattern: "{initial pattern from docs/agent}"
context: "{when this applies}"
evidence: "{source}"
learned_from: "Initial setup"
importance: "medium"
confidence: "low"
common_issues: [] # To be discovered
key_files:
primary: "{main config/entry file}"
common_patterns: []
codebase_conventions: [] # To be discovered
evolution_log:
- date: "{current-date}"
change: "Expert created"
confidence_before: "none"
confidence_after: "low"
trigger: "manual creation"
metadata:
created: "{current-date}"
self_improve_runs: 0
last_self_improve: "never"
questions_answered: 0
Fill with initial patterns from:
Adapt from existing experts (use convex-expert/question.md as template):
---
name: Question {Name} Expert
description: Ask questions about {domain} patterns
argument-hint: [Your question about {domain}]
tools: Read, Grep, Glob
model: inherit
---
# Question: {Name} Expert
Answer questions using accumulated expertise validated against codebase.
## Workflow
### 1. Read Expertise
Read: .claude/experts/{name}-expert/expertise.yaml
### 2. Validate Against Codebase
```bash
# Domain-specific search patterns
Glob: {domain-files}/*
Grep: {domain-keywords}
Read: {key-files}
**Customize:**
- Search patterns for domain (Glob/Grep targets)
- Key files to check
- Domain-specific validation steps
### 5. Generate Self-Improve Prompt
Adapt from convex-expert/self-improve.md:
```markdown
---
name: Self-Improve {Name} Expert
description: Sync {domain} expertise with current codebase
tools: Read, Grep, Glob, Edit
model: inherit
---
# Self-Improve: {Name} Expert
## Workflow
### 1. Read Current Expertise
Read: .claude/experts/{name}-expert/expertise.yaml
### 2. Explore Codebase
```bash
Glob: {domain-files}/**/*
Read: {key-files}
Grep: {domain-patterns}
Edit expertise.yaml:
**Customize:**
- File patterns to explore
- Keywords to search for
- Pattern detection criteria
### 6. Update Dispatcher
Add new expert to `.claude/commands/ask-expert.md`:
```markdown
### {name}
**Domain:** {Domain Description}
**Expertise:** {key areas}
**Use for:** {when to use this expert}
Also update expertMap in implementation section.
Execute the self-improve prompt to populate initial expertise:
# This will explore codebase and populate expertise.yaml
# with real patterns discovered
If there's a corresponding agent, enhance it:
---
expertise_file: .claude/experts/{name}-expert/expertise.yaml
---
## Before Starting Any Task
1. Read expertise file
2. Apply patterns
3. Validate & extend
New expert should have:
.claude/experts/{name}-expert/expertise.yaml with initial patternsquestion.md with domain-specific workflowself-improve.md with exploration logicask-expert.md dispatcher# User request: "Create expert for testing patterns"
# 1. Interview
Expert name: testing-expert
Domain: Test automation and quality assurance
Sources: Existing test files, Jest/Vitest docs
Related: Quality checks, CI/CD
# 2. Create structure
mkdir -p .claude/experts/testing-expert
# 3. Generate expertise.yaml
testing_patterns:
- pattern: "Use describe/it for test structure"
confidence: "low"
- pattern: "Mock external dependencies"
confidence: "low"
key_files:
config: "vitest.config.ts"
test_utils: "test/utils.ts"
# 4. Generate question.md
# Customize for test file patterns (Glob: **/*.test.ts)
# 5. Generate self-improve.md
# Customize for test discovery (Grep: "describe(", "test(")
# 6. Update ask-expert.md
Add "testing" to expert map
# 7. Run self-improvement
Execute: testing-expert/self-improve.md
Result: Discovers actual test patterns in codebase
# 8. Test
/ask-expert testing "How should I structure unit tests?"
Returns: Answer based on discovered patterns
Start Simple:
Use Templates:
Test Early:
Documentation:
Expert doesn't find patterns:
Questions return low confidence:
Duplicate coverage with existing expert:
After creating expert, provide summary:
## Created: {Name} Expert
**Domain:** {description}
**Location:** `.claude/experts/{name}-expert/`
**Files Created:**
- expertise.yaml (version 0.1.0, {N} initial patterns)
- question.md (customized for {domain})
- self-improve.md (explores {file-patterns})
**Initial Self-Improvement:**
- Explored {N} files
- Discovered {M} patterns
- Confidence: low → {updated}
**Usage:**
- Ask questions: `/ask-expert {name} "your question"`
- Update expertise: `/sync-expertise {name}`
**Next Steps:**
- Test with sample questions
- Run self-improvement after domain changes
- Enhance patterns as they're validated