Create a Custom Expert
Time: ~5 minutes
Learning outcome: Create, inspect, and use a custom expert definition in a debate.
What you’ll learn
Section titled “What you’ll learn”By the end of this tutorial, you will:
- Create a custom expert using
council expert create - Understand expert YAML structure (persona, model, instructions)
- Use your custom expert in a live debate
- List and inspect experts in your library
Prerequisites
Section titled “Prerequisites”- Completed Tutorial 1: Install and First Debate
- Familiarity with
council convenefor running debates
What is a custom expert?
Section titled “What is a custom expert?”When you run council convene without specifying experts, Council auto-composes a panel from generic experts — temporary personas tailored to your question. Custom experts are persistent, named personas you define once and reuse:
- Persona experts: specific roles with attitudes, expertise, and decision-making styles (e.g., a risk-averse CFO, a customer-first product lead)
- Generic experts: minimal definitions that let Council infer the role from context (useful for flexible, topic-driven composition)
Step 1: Create your first custom expert
Section titled “Step 1: Create your first custom expert”Run the interactive wizard:
council expert createYou’ll be prompted for:
- Slug: A unique identifier (lowercase, hyphens only). Example:
risk-analyst - Display name: The human-readable name shown in transcripts. Example:
Sarah Chen (Risk Analyst) - Kind: Choose
persona(for a role with specific traits) orgeneric(for a flexible expert) - Persona (if kind=persona): Describe the expert’s role, background, and perspective. Example:
You are a seasoned enterprise risk analyst with 15 years of experience in financial services.You prioritize compliance, data security, and long-term stability. When evaluating decisions,you always surface potential failure modes and regulatory concerns.
- Model (optional): Leave blank to use the default, or specify a model like
claude-sonnet-4.5
After you answer the prompts, Council saves the expert to ~/.council/data/experts/risk-analyst.yaml and confirms:
✓ Expert created: risk-analyst Location: ~/.council/data/experts/risk-analyst.yamlStep 2: Inspect your expert
Section titled “Step 2: Inspect your expert”View the full expert definition:
council expert inspect risk-analystOutput:
slug: risk-analystdisplayName: Sarah Chen (Risk Analyst)kind: personapersona: > You are a seasoned enterprise risk analyst with 15 years of experience in financial services. You prioritize compliance, data security, and long-term stability. When evaluating decisions, you always surface potential failure modes and regulatory concerns.model: claude-sonnet-4.5This is the exact YAML stored in ~/.council/data/experts/risk-analyst.yaml. You can edit it directly (see Step 4) or via the CLI.
Step 3: Use your custom expert in a debate
Section titled “Step 3: Use your custom expert in a debate”Now convene a panel that includes your new expert. Use the --experts flag to specify custom experts by slug:
council convene \ --experts risk-analyst,product-lead,cfo \ "Should we migrate to a multi-cloud architecture?"What happens:
- Council resolves each slug in
--expertsfrom your library - If a slug doesn’t exist, Council falls back to auto-composing a generic expert with that name
- The panel debates with your
risk-analystpersona bringing their characteristic risk-focused perspective
You’ll see output like:
🏛️ Convening panel...✓ Panel assembled: 3 experts • Sarah Chen (Risk Analyst) — claude-sonnet-4.5 [custom] • product-lead — claude-sonnet-4.5 [auto-composed] • cfo — claude-sonnet-4.5 [auto-composed]
━━━ Round 1 ━━━
[Sarah Chen — Risk Analyst]Before considering multi-cloud, we need to address three critical risks...Step 4: Browse and manage your expert library
Section titled “Step 4: Browse and manage your expert library”List all custom experts:
council expert listOutput:
Custom experts in your library:
risk-analyst Name: Sarah Chen (Risk Analyst) Kind: persona · Model: claude-sonnet-4.5 Created: 2 minutes ago
empathy-coach Name: Alex Rivera (Empathy Coach) Kind: persona · Model: claude-sonnet-4.5 Created: 3 days agoEdit an existing expert (opens your default editor):
council expert edit risk-analystDelete an expert:
council expert delete risk-analystWhat you learned
Section titled “What you learned”- ✅ Created a custom expert with
council expert create - ✅ Inspected the expert YAML structure
- ✅ Used a custom expert in a debate with
--experts <slugs> - ✅ Listed and managed experts in your library
Next steps
Section titled “Next steps”- Tutorial 6: Build a Custom Panel — combine multiple custom experts into a reusable panel template
- Experiment: Create experts for roles you frequently debate (architect, UX lead, ops engineer)
- Try the mock engine: Use
--engine mockto test panel composition without consuming API credits