Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-post-mortem-docs-write.md
Original file line number Diff line number Diff line change
@@ -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)
7 changes: 4 additions & 3 deletions skills/recipe-post-mortem-setup/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The gws docs documents create command should use the --json flag instead of --params for the document title. In the Google Docs API, the title is a property of the Document resource passed in the request body, not a URL parameter. Using --params will likely result in the title being ignored or the command failing.

Suggested change
1. Create post-mortem doc: `gws docs documents create --params '{"title": "Post-Mortem: [Incident]"}'` (note the returned `documentId`)
1. Create post-mortem doc: `gws docs documents create --json '{"title": "Post-Mortem: [Incident]"}'` (note the returned `documentId`)

2. Write post-mortem template: `gws docs +write --document <documentId> --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].'`

Loading