From 672af15e0ab9697c0f7ff23d97a6e01461bf0978 Mon Sep 17 00:00:00 2001 From: "claude[bot]" Date: Sat, 25 Apr 2026 12:18:58 +0000 Subject: [PATCH] fix: correct gws docs +write flags in recipe-post-mortem-setup The +write subcommand requires --document and --text . The --title and --body flags do not exist. Add a preceding step to create the document via `gws docs documents create` and capture the returned documentId before writing the template content. Co-Authored-By: Claude Code --- .changeset/fix-post-mortem-docs-write.md | 5 +++++ skills/recipe-post-mortem-setup/SKILL.md | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/fix-post-mortem-docs-write.md diff --git a/.changeset/fix-post-mortem-docs-write.md b/.changeset/fix-post-mortem-docs-write.md new file mode 100644 index 00000000..eda8b5b4 --- /dev/null +++ b/.changeset/fix-post-mortem-docs-write.md @@ -0,0 +1,5 @@ +--- +"@googleworkspace/cli": patch +--- + +Fix recipe-post-mortem-setup to use correct gws docs +write flags (--document and --text instead of --title and --body) diff --git a/skills/recipe-post-mortem-setup/SKILL.md b/skills/recipe-post-mortem-setup/SKILL.md index 88dcfc83..7d0edb41 100644 --- a/skills/recipe-post-mortem-setup/SKILL.md +++ b/skills/recipe-post-mortem-setup/SKILL.md @@ -23,7 +23,8 @@ Create a Google Docs post-mortem, schedule a Google Calendar review, and notify ## Steps -1. Create post-mortem doc: `gws docs +write --title 'Post-Mortem: [Incident]' --body '## Summary\n\n## Timeline\n\n## Root Cause\n\n## Action Items'` -2. Schedule review meeting: `gws calendar +insert --summary 'Post-Mortem Review: [Incident]' --attendee team@company.com --start '2026-03-16T14:00:00' --end '2026-03-16T15:00:00'` -3. Notify in Chat: `gws chat +send --space spaces/ENG_SPACE --text '🔍 Post-mortem scheduled for [Incident].'` +1. Create post-mortem doc: `gws docs documents create --params '{"title": "Post-Mortem: [Incident]"}'` (note the returned `documentId`) +2. Write post-mortem template: `gws docs +write --document --text '## Summary\n\n## Timeline\n\n## Root Cause\n\n## Action Items'` +3. Schedule review meeting: `gws calendar +insert --summary 'Post-Mortem Review: [Incident]' --attendee team@company.com --start '2026-03-16T14:00:00' --end '2026-03-16T15:00:00'` +4. Notify in Chat: `gws chat +send --space spaces/ENG_SPACE --text '🔍 Post-mortem scheduled for [Incident].'`