Skip to content

Commit b9a9a39

Browse files
grokifyclaude
andcommitted
docs: add 'generate agents' command documentation
Document the simplified agent generation workflow: - Specs directory structure - CLI flags and examples - Deployment target configuration Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent aa4e40a commit b9a9a39

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,75 @@ plugins/spec/
106106
└── release.json
107107
```
108108

109+
### Generate Agents (Simplified)
110+
111+
Generate platform-specific agents from a multi-agent-spec format directory:
112+
113+
```bash
114+
assistantkit generate agents
115+
```
116+
117+
This is a simplified command that reads from `specs/agents/*.md` (YAML frontmatter + markdown body) and uses `specs/deployments/<target>.json` to determine output locations.
118+
119+
#### Flags
120+
121+
| Flag | Default | Description |
122+
|------|---------|-------------|
123+
| `--specs` | `specs` | Path to specs directory containing agents/ and deployments/ |
124+
| `--target` | `local` | Deployment target (looks for `specs/deployments/<target>.json`) |
125+
| `--output` | `.` | Output base directory (repo root) for relative paths |
126+
127+
#### Example
128+
129+
```bash
130+
# Generate using defaults (target=local, output=current directory)
131+
assistantkit generate agents
132+
133+
# Use a different deployment target
134+
assistantkit generate agents --target=agentcore
135+
136+
# Specify all options
137+
assistantkit generate agents --specs=specs --target=local --output=/path/to/repo
138+
```
139+
140+
#### Specs Directory Structure
141+
142+
```
143+
specs/
144+
├── agents/ # Agent definitions (*.md with YAML frontmatter)
145+
│ ├── coordinator.md
146+
│ ├── researcher.md
147+
│ └── writer.md
148+
├── teams/ # Team workflow definitions (optional)
149+
│ └── my-team.json
150+
└── deployments/ # Deployment configurations
151+
├── local.json # Local development (default)
152+
├── agentcore.json # AWS AgentCore
153+
└── k8s.json # Kubernetes
154+
```
155+
156+
#### Deployment File Format
157+
158+
```json
159+
{
160+
"team": "my-team",
161+
"targets": [
162+
{
163+
"name": "local-claude",
164+
"platform": "claude-code",
165+
"output": ".claude/agents"
166+
},
167+
{
168+
"name": "local-kiro",
169+
"platform": "kiro-cli",
170+
"output": "plugins/kiro/agents"
171+
}
172+
]
173+
}
174+
```
175+
176+
Output paths are resolved relative to the `--output` directory.
177+
109178
### Generated Output
110179

111180
The generator produces platform-specific plugins:

0 commit comments

Comments
 (0)