Add an AI-generated comment to the current ClickUp task
Add a well-structured comment to the current ClickUp task. The comment is AI-generated based on your prompt and task context, then presented for confirmation before posting.
/clickup:comment <prompt>
/clickup:comment blocking - waiting for API credentials
/clickup:comment progress update - completed auth flow
/clickup:comment question - should we use OAuth or API keys?
/clickup:comment ready for review
When this command is invoked:
Detect Current Task:
git rev-parse --abbrev-ref HEAD{type}/{task_id}-{title}fix/86bqy2f6j-payment-webhook β Task ID: 86bqy2f6jFetch Task Context:
Gather Git Context (optional, for richer comments):
git log --oneline staging..HEADgit diff --stat staging...HEADGenerate Comment: Based on the user's prompt, generate a well-structured markdown comment. Detect comment type from keywords:
| Keyword | Comment Type | Icon |
|---|---|---|
| blocking, blocked, waiting | Blocker | βΈοΈ |
| progress, update, completed | Progress Update | π |
| question, help, clarify | Question | β |
| ready, done, finished | Ready for Review | β |
| issue, problem, bug | Issue Found | π |
Show Preview for Confirmation:
π Task: Fix payment webhook race condition
πΏ Branch: fix/86bqy2f6j-payment-webhook-race
π Generated Comment:
---
## βΈοΈ Blocked
**Reason**: Waiting for API credentials
**Current Progress**:
- Implemented core webhook handler
- Added retry logic
**Next Steps**: Resume implementation once credentials are received.
**Branch**: `fix/86bqy2f6j-payment-webhook-race`
---
Post this comment to ClickUp? [Y/n]
Post Comment (on confirmation):
curl -X POST "https://api.clickup.com/api/v2/task/${TASK_ID}/comment" \
-H "Authorization: ${CLICKUP_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"comment_text": "..."}'
Confirm Success:
β
Comment posted to ClickUp
π View task: https://app.clickup.com/t/86bqy2f6j
## βΈοΈ Blocked
**Reason**: {user's reason}
**Current Progress**:
- {bullet points from git commits if available}
**Next Steps**: {what happens when unblocked}
**Branch**: `{branch-name}`
## π Progress Update
**Completed**:
- {items from user prompt or git commits}
**In Progress**:
- {current work}
**Branch**: `{branch-name}`
## β Question
{user's question}
**Context**: {relevant task/branch info}
## β
Ready for Review
**Summary**:
{brief summary of changes}
**Changes**:
- {list of changes from git}
**Branch**: `{branch-name}`
.env fileARGUMENTS: $ARGUMENTS