一键导入
cortex-config
Interactively create a Cortex YAML config for multi-agent orchestration. Supports all three modes — workflow (DAG), mesh, and gossip.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactively create a Cortex YAML config for multi-agent orchestration. Supports all three modes — workflow (DAG), mesh, and gossip.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cortex-config |
| description | Interactively create a Cortex YAML config for multi-agent orchestration. Supports all three modes — workflow (DAG), mesh, and gossip. |
| argument-hint | ["optional output path"] |
| disable-model-invocation | false |
Create a Cortex YAML config from a short interactive conversation. Asks the user a few questions, designs the agent/team structure, shows a plan, then writes the file.
Ask the user which mode they want. Present all three with one-line descriptions:
If $ARGUMENTS contains a mode or enough context to infer one, skip this question.
Ask questions in a single round (use AskUserQuestion). Tailor questions to the chosen mode.
Workflow (DAG): 4. How many teams? — suggest a number with names based on the description (e.g., "3 teams: backend, frontend, integration"). Include "auto" and custom options. 5. Model — sonnet (recommended), opus, or haiku 6. Permission mode — acceptEdits (recommended) or bypassPermissions
Mesh: 4. How many agents? — suggest specific agents with names and roles based on the description (e.g., "3 agents: market-sizing, competitor-analysis, product-strategy") 5. Model — sonnet (recommended), opus, or haiku 6. Permission mode — acceptEdits (recommended) or bypassPermissions
Gossip: 4. How many agents? — suggest specific agents with names and topics based on the description 5. Rounds — how many gossip exchange rounds? (suggest a default based on scope, typically 3-5) 6. Model — sonnet (recommended), opus, or haiku
Do NOT proceed to Step 3 until you have a concrete understanding of what the agents should accomplish. If the user gives a vague answer, ask follow-up questions. You need enough detail to write specific prompts — not generic boilerplate.
From the user's answers, design the full config.
backend, frontend, data-pipeline)lead with a descriptive rolemembers with distinct roles and focus areas (2-5 per team)context block per teamsummary, details, deliverables, and verifymarket-sizing, competitor-analysis)role (one-line description of what they are)prompt for each agent — what they should research/build/analyze, what deliverables to produce, and how to structure their outputcompetitor-analyst, market-sizer)topic and detailed promptShow a formatted summary for user review. Format depends on mode:
## Cortex Config: <name>
Mode: workflow (DAG)
### Defaults
model: <model> | max_turns: <N> | timeout: <N>min | permission: <mode>
### Execution Tiers
**Tier 0** (parallel):
- <team>: <lead role> + <N members>
**Tier 1** (depends on: <tier 0 teams>):
- <team>: <lead role> + <N members>
### Output
<filename>.yaml
## Cortex Config: <name>
Mode: mesh
### Defaults
model: <model> | max_turns: <N> | timeout: <N>min | permission: <mode>
### Agents
- <name>: <role>
- <name>: <role>
### Mesh Settings
heartbeat: <N>s | suspect timeout: <N>s | dead timeout: <N>s
### Output
<filename>.yaml
## Cortex Config: <name>
Mode: gossip
### Defaults
model: <model> | max_turns: <N> | timeout: <N>min
### Agents
- <name>: <topic>
- <name>: <topic>
### Gossip Settings
rounds: <N> | topology: <type> | interval: <N>s
### Output
<filename>.yaml
Ask: "Does this look right? I'll write the config."
Write the file to the output path from $ARGUMENTS, or default to examples/<project-name>.yaml inside the cortex directory.
name: "<project name>"
defaults:
model: <model>
max_turns: <number>
permission_mode: <mode>
timeout_minutes: <number>
teams:
- name: <team-name>
lead:
role: "<role description>"
members:
- role: "<member role>"
focus: "<what this member owns>"
context: |
<rich domain context>
depends_on:
- <team-name>
tasks:
- summary: "<short description>"
details: "<specific requirements>"
deliverables:
- "<file path>"
verify: "<shell command>"
name: "<project name>"
mode: mesh
cluster_context: |
<shared context for all agents>
defaults:
model: <model>
max_turns: <number>
permission_mode: <mode>
timeout_minutes: <number>
mesh:
heartbeat_interval_seconds: 30
suspect_timeout_seconds: 90
dead_timeout_seconds: 180
agents:
- name: <agent-name>
role: "<one-line role description>"
prompt: |
<detailed assignment — what to do, what deliverables to produce,
how to structure output. Be specific.>
name: "<project name>"
mode: gossip
cluster_context: |
<shared context for all agents>
defaults:
model: <model>
max_turns: <number>
permission_mode: <mode>
timeout_minutes: <number>
gossip:
rounds: <number>
topology: <full_mesh|ring|random>
exchange_interval_seconds: <number>
agents:
- name: <agent-name>
topic: "<knowledge topic>"
prompt: |
<detailed exploration instructions>
seed_knowledge:
- topic: "<topic>"
content: "<starting knowledge>"
depends_on references exist, no circular deps, every team has tasksAfter writing the file, print mode-appropriate next steps:
<filename> written!
Next steps:
1. Review: cat <filename>
2. Dry run: mix cortex.run <filename> --dry-run
3. Run: mix cortex.run <filename>
<filename> written!
Next steps:
1. Review: cat <filename>
2. Dry run: mix cortex.run <filename> --dry-run
3. Run: mix cortex.run <filename>
<filename> written!
Next steps:
1. Review: cat <filename>
2. Dry run: mix cortex.run <filename> --dry-run
3. Run: mix cortex.run <filename>