Accept the target from one of the following:
ENG-123https://linear.app/yourorg/issue/ENG-123https://linear.app/yourorg/issue/ENG-123#comment-456 — extract the issue ID and comment ID from the URLIf no target is provided, ask the human for one before proceeding.
If the Linear MCP connector is not configured, prompt the human to set it up and stop.
Use mcp__linear__get_issue with the issue identifier (e.g. ENG-123) to fetch issue details and confirm it exists before proceeding.
If the issue is not found, surface the error and stop.
Ask (or infer from context) whether to:
If the action is ambiguous, ask the human to clarify.
Accept the comment body from one of:
Identity footer: Always append the following footer to every comment posted by this skill, separated from the body by a blank line:
---
_Posted by {your identity}_
If the comment is an update to an existing comment with this footer already present, replace the existing footer rather than appending a second one.
Format the comment in Markdown. Keep it concise — do not pad with filler.
Show the human the final comment body and the target issue ID before posting. Ask:
“Post this comment to
{issue-id}? (yes / edit / cancel)”
Do not post without explicit confirmation. If the human selects “edit”, accept revised content and re-show the preview.
Use the Linear MCP connector:
mcp__linear__save_comment with the issue ID and comment body.mcp__linear__save_comment with the comment ID to edit it.On success, confirm to the caller: “Comment posted to {issue-id}.”
On failure, surface the full error and ask the human how to proceed — do not retry silently.