Skip to content

Commit fa92377

Browse files
authored
Merge pull request #92 from jwm4/docs/fix-ambient-json-schema-docs
Fix ambient.json field documentation to match platform
2 parents 02fdd05 + 0365e6f commit fa92377

File tree

7 files changed

+82
-263
lines changed

7 files changed

+82
-263
lines changed

.claude/skills/workflow-creator/SKILL.md

Lines changed: 17 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,7 @@ Create `.ambient/ambient.json` without comments (production-ready JSON):
127127
"name": "{Workflow Display Name}",
128128
"description": "{User's description}",
129129
"systemPrompt": "{Generated system prompt based on workflow type}",
130-
"startupPrompt": "{Generated startup prompt}",
131-
"results": {
132-
"{Artifact Type 1}": "artifacts/{workflow-name}/{path}",
133-
"{Artifact Type 2}": "artifacts/{workflow-name}/{path}"
134-
}
130+
"startupPrompt": "{Generated startup prompt}"
135131
}
136132
```
137133

@@ -159,22 +155,15 @@ Before using any slash commands, ensure the workspace is initialized.
159155
```
160156

161157
**Startup Prompt Template:**
162-
```
163-
Welcome! I'm your {Workflow Type} assistant.
164-
165-
🎯 WHAT I DO:
166-
{1-2 sentence explanation of workflow purpose}
167-
168-
📋 WORKFLOW PHASES:
169-
{List phases with brief description}
170-
171-
🚀 AVAILABLE COMMANDS:
172-
{List each command with one-line description}
173158

174-
💡 GETTING STARTED:
175-
Run /{first-command} to {action}, or tell me what you'd like to work on.
159+
NOTE: The `startupPrompt` is sent TO the agent as a hidden user message at
160+
session start. The user never sees it -- they only see the agent's response.
161+
Write it as a directive telling the agent how to begin, not as a canned greeting.
176162

177-
What would you like to accomplish today?
163+
```
164+
Greet the user and introduce yourself as a {Workflow Type} assistant. Briefly
165+
explain what you do ({1-2 sentence purpose}), list the available commands
166+
({list commands}), and ask what they'd like to work on. Keep it concise.
178167
```
179168

180169
Show progress:
@@ -443,7 +432,7 @@ You can customize this workflow by:
443432
1. **Modifying agents:** Edit files in `.claude/agents/`
444433
2. **Adding commands:** Create new command files in `.claude/commands/`
445434
3. **Adjusting configuration:** Update `.ambient/ambient.json`
446-
4. **Changing output paths:** Modify the `results` section in config
435+
4. **Changing output paths:** Update artifact paths in `systemPrompt`
447436

448437
## Best Practices
449438

@@ -518,62 +507,28 @@ This document provides detailed information about the configuration fields in `.
518507
519508
### startupPrompt
520509
- **Type:** string
521-
- **Purpose:** Initial message when workflow activates
510+
- **Purpose:** Sent to the agent as a hidden user message at session start; the user never sees it, only the agent's response
522511
- **Current Value:** See `.ambient/ambient.json`
523512
- **Guidelines:**
524-
- Greet user warmly
525-
- List available commands
526-
- Provide clear next steps
513+
- Write as a directive to the agent (e.g., "Greet the user and introduce yourself as...")
514+
- Tell the agent to list available commands and ask what the user needs
515+
- Do NOT write it as a canned greeting -- the agent generates its own response
527516
528517
## Optional Fields
529518
530519
### results
531520
- **Type:** object with string values
532-
- **Purpose:** Maps artifact types to file paths
521+
- **Purpose:** Documents which artifact types the workflow produces and where
522+
- **Note:** This field is informational only -- the platform does not read it at runtime
533523
- **Current Value:** See `.ambient/ambient.json`
534524
- **Guidelines:** Use glob patterns to match multiple files
535525
536-
### version
537-
- **Type:** string
538-
- **Example:** "1.0.0"
539-
- **Purpose:** Track workflow configuration version
540-
541-
### author
542-
- **Type:** string or object
543-
- **Example:** {"name": "Your Name", "email": "you@example.com"}
544-
- **Purpose:** Identify workflow creator
545-
546-
### tags
547-
- **Type:** array of strings
548-
- **Example:** ["bug-fix", "debugging", "testing"]
549-
- **Purpose:** Categorize workflow for discovery
550-
551-
### icon
552-
- **Type:** string (emoji)
553-
- **Example:** "🔧"
554-
- **Purpose:** Visual identifier in UI
555-
556526
## Customization Examples
557527
558-
### Adding a new output type
559-
```json
560-
"results": {
561-
"Existing Output": "artifacts/{workflow-name}/existing/**/*.md",
562-
"New Output": "artifacts/{workflow-name}/new/**/*.json"
563-
}
564-
```
565-
566528
### Changing artifact location
567529
Update all references to the artifact path in:
568530
1. `systemPrompt` - OUTPUT LOCATIONS section
569-
2. `results` - Update file paths
570-
3. Command files - Update ## Output sections
571-
572-
### Adding environment configuration
573-
```json
574-
"environment": {
575-
"ARTIFACTS_DIR": "artifacts/{workflow-name}",
576-
"LOG_LEVEL": "info"
531+
2. Command files - Update ## Output sections
577532
}
578533
```
579534

@@ -824,8 +779,7 @@ As you create files, explain:
824779
★ Insight ─────────────────────────────────────
825780
This configuration file controls how Claude behaves in your workflow:
826781
- systemPrompt: Defines Claude's role and capabilities
827-
- startupPrompt: The greeting message users see
828-
- results: Maps output types to file locations
782+
- startupPrompt: A directive sent to the agent telling it how to greet the user (the user only sees the agent's response)
829783

830784
The prompts use specific sections (KEY RESPONSIBILITIES, WORKFLOW METHODOLOGY)
831785
to help Claude understand the workflow structure.

AGENTS.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ Optional but common:
120120
| `name` | Yes | Display name in UI (2-5 words) |
121121
| `description` | Yes | Brief explanation (1-3 sentences) |
122122
| `systemPrompt` | Yes | Core instructions defining agent behavior |
123-
| `startupPrompt` | Yes | Initial greeting when workflow activates |
124-
| `results` | No | Maps artifact names to output paths |
123+
| `startupPrompt` | Yes | Directive sent to agent as hidden user message at session start (agent responds to it; user sees only the response) |
124+
| `results` | No | Maps artifact names to output paths (informational only -- not read by the platform) |
125125

126126
---
127127

@@ -282,7 +282,7 @@ cp -r workflows/template-workflow workflows/{new-workflow-name}
282282

283283
- Create new file in `.claude/commands/`
284284
- Add the command to the `systemPrompt` command list
285-
- Update `results` in ambient.json if new artifacts are created
285+
- Optionally update `results` in ambient.json to document new artifacts (informational only)
286286

287287
**Modifying systemPrompt:**
288288

@@ -292,8 +292,8 @@ cp -r workflows/template-workflow workflows/{new-workflow-name}
292292

293293
**Changing artifact paths:**
294294

295-
- Update both `systemPrompt` and `results` field
296-
- Consider backward compatibility
295+
- Update `systemPrompt` to reference the new paths
296+
- Optionally update `results` field to match (informational only)
297297

298298
### Use workflow-editor for Complex Changes
299299

@@ -307,7 +307,7 @@ Before committing changes:
307307

308308
1. **Validate JSON**: Ensure `.ambient/ambient.json` is valid
309309
2. **Check references**: Commands listed in systemPrompt exist as files
310-
3. **Verify paths**: Output paths in systemPrompt match `results` patterns
310+
3. **Verify paths**: Output paths in systemPrompt reference the `artifacts/` directory
311311

312312
### Testing in ACP
313313

@@ -427,16 +427,14 @@ The following commands require `required_permissions: ['all']` to run outside th
427427
"systemPrompt": "You are a helper.\n\n## Commands\n- /diagnose - Run diagnosis"
428428
```
429429

430-
### Inconsistent Paths
430+
### Inconsistent Artifact Paths
431431

432432
```json
433-
// ❌ systemPrompt says one thing, results say another
434-
"systemPrompt": "Write to artifacts/bugs/",
435-
"results": { "Reports": "output/reports/*.md" }
433+
// ❌ systemPrompt references a non-standard artifact path
434+
"systemPrompt": "Write to output/bugs/"
436435

437-
// ✅ Consistent paths
438-
"systemPrompt": "Write to artifacts/bugfix/",
439-
"results": { "Reports": "artifacts/bugfix/*.md" }
436+
// ✅ Use the standard artifacts directory
437+
"systemPrompt": "Write to artifacts/bugfix/"
440438
```
441439

442440
---
@@ -472,7 +470,7 @@ The following commands require `required_permissions: ['all']` to run outside th
472470
"name": "Workflow Name",
473471
"description": "Brief description",
474472
"systemPrompt": "You are...\n\n## Commands\n...\n\n## Output\nartifacts/...",
475-
"startupPrompt": "Welcome! Use /command to start."
473+
"startupPrompt": "Greet the user, briefly introduce yourself, and ask what they'd like to work on."
476474
}
477475
```
478476

0 commit comments

Comments
 (0)