diff --git a/.claude/skills/swamp-model/SKILL.md b/.claude/skills/swamp-model/SKILL.md index b87908fe..ffa3cd43 100644 --- a/.claude/skills/swamp-model/SKILL.md +++ b/.claude/skills/swamp-model/SKILL.md @@ -157,41 +157,16 @@ in attributes using `${{ inputs. }}` expressions. ## Edit a Model -Open model input file in your editor, or update via stdin in non-interactive -mode. +**Recommended:** Use `swamp model get --json` to get the file path, then +edit directly with the Edit tool, then validate with +`swamp model validate --json`. Never modify the `id` field. -```bash -# Interactive: opens in editor -swamp model edit my-echo -swamp model edit my-echo --resource # Edit resource file instead - -# Non-interactive: update from stdin -cat updated-model.yaml | swamp model edit my-echo --json - -# With here-doc (agent-friendly) -swamp model edit my-echo --json < --json` to get the file path, +then edit directly with the Edit tool, then validate with +`swamp workflow validate --json`. Never modify the `id` field. -```bash -# Interactive: opens in editor -swamp workflow edit my-workflow - -# Non-interactive: update from stdin -cat updated-workflow.yaml | swamp workflow edit my-workflow --json - -# With here-doc (agent-friendly) -swamp workflow edit my-workflow --json <