AgentSkillsCN

dial-add-specialists

在 DIAL 机器中加入 AI 或人工专家。当您需要配置提案者与投票者时,可选用此方法。

SKILL.md
--- frontmatter
name: dial-add-specialists
description: Add AI or human specialists to a DIAL machine. Use when configuring proposers and voters.

Add Specialists

Configure AI and human participants in a decision process.

Specialist Types

StrategyDescription
llmAI specialist using a language model
humanHuman specialist with CLI prompts
deterministicAlways takes the same action

AI Proposer

json
{
  "id": "ai-proposer",
  "strategy": "llm",
  "config": {
    "model": "claude-sonnet-4-20250514",
    "systemPrompt": "You are a code review specialist. Propose transitions based on code quality."
  }
}

Config Options

FieldRequiredDescription
modelYesModel identifier (e.g., claude-sonnet-4-20250514)
systemPromptNoCustom instructions for the specialist
temperatureNoSampling temperature (default: 0.7)

AI Voter

json
{
  "id": "ai-voter",
  "strategy": "llm",
  "config": {
    "model": "claude-sonnet-4-20250514",
    "systemPrompt": "Vote for the proposal that best serves the project goals."
  }
}

Human Specialist

json
{
  "id": "human-reviewer",
  "strategy": "human"
}

Requires --human flag when running:

bash
npx dialai machine.json --human

Deterministic Specialist

Always proposes or votes for a specific action:

json
{
  "id": "always-approve",
  "strategy": "deterministic",
  "config": {
    "action": "approve"
  }
}

Useful for testing or default behaviors.

Patterns

Human Override

AI proposes, human decides:

json
{
  "specialists": {
    "proposers": [
      { "id": "ai", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} }
    ],
    "voters": [
      { "id": "human", "strategy": "human" }
    ]
  }
}

AI Consensus

Multiple AI voters must agree:

json
{
  "specialists": {
    "proposers": [
      { "id": "ai-proposer", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} }
    ],
    "voters": [
      { "id": "ai-voter-1", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} },
      { "id": "ai-voter-2", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} },
      { "id": "ai-voter-3", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} }
    ]
  },
  "arbiter": {
    "strategy": "supermajority",
    "threshold": 0.66
  }
}

Mixed Panel

AI and human voters together:

json
{
  "specialists": {
    "proposers": [
      { "id": "ai-proposer", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} }
    ],
    "voters": [
      { "id": "ai-voter", "strategy": "llm", "config": {"model": "claude-sonnet-4-20250514"} },
      { "id": "human-voter", "strategy": "human" }
    ]
  }
}

Human votes override AI votes due to human primacy.