Add a comment to an issue
Add a comment to an issue with exact text or generate one from conversation context using instructions.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-work@fractary<issue_number> ["<text>"] [--prompt "<instructions>"] [--faber-context <context>]claude-haiku-4-5<CRITICAL_RULES> YOU MUST:
YOU MUST NOT:
THIS COMMAND IS ONLY A ROUTER. </CRITICAL_RULES>
<WORKFLOW> 1. **Parse user input** - Extract issue number (required) - Extract comment text (optional if --prompt provided) - Parse optional arguments: --prompt, --faber-context - Validate: either text or --prompt must be providedCapture working directory context
WORK_CWD="${PWD}"Handle --prompt argument (if provided)
--prompt is provided but text is NOT provided:
--prompt are provided:
--prompt):
Build structured request
ACTUALLY INVOKE the Task tool
IF THE TASK TOOL INVOCATION FAILS:
Return response
<ARGUMENT_SYNTAX>
This command follows the space-separated argument syntax (consistent with work/repo plugin family):
--flag value (NOT --flag=value)--comment "Working on this issue" ✅--comment Working on this issue ❌Always use quotes for multi-word values:
✅ /work:comment-create 123 "Working on this now"
✅ /work:comment-create 123 "Investigated the bug - found the root cause"
❌ /work:comment-create 123 Working on this now
❌ /work:comment-create 123 Investigated the bug
Single-word values don't require quotes:
✅ /work:comment-create 123 LGTM
✅ /work:comment-create 123 Done
Comment text guidelines:
<ARGUMENT_PARSING>
Required Arguments:
issue_number (number): Issue number (e.g., 123, not "#123")Conditionally Required (at least one):
text (string): Comment text, use quotes if multi-word - exact text to use as comment--prompt (string): Instructions for generating the comment from conversation context (use quotes). When provided without text, Claude will craft the comment using the current conversation plus these instructions.Optional Arguments:
--faber-context (string): FABER workflow context metadata (internal use, typically set automatically by FABER workflows)Text vs Prompt:
text provides the exact text to use as the comment--prompt provides instructions for Claude to generate the comment from conversation context--prompt refines it--prompt is provided, Claude generates the entire comment based on the conversation and instructionsMaps to: create-comment operation </ARGUMENT_PARSING>
<EXAMPLES> ## Usage Examples# Add a comment
/work:comment-create 123 "Starting work on this issue"
# Add a longer comment
/work:comment-create 123 "Investigated the bug - it's caused by a race condition"
# Add a single-word comment
/work:comment-create 123 LGTM
# Add a comment with markdown
/work:comment-create 123 "## Progress Update\n\n- Fixed authentication\n- Added tests\n- Updated docs"
# Generate comment from conversation context (after debugging session)
/work:comment-create 123 --prompt "Summarize the root cause we identified and the fix we implemented"
# Generate progress update from conversation
/work:comment-create 123 --prompt "Post a progress update covering the changes we made today"
# Enhance existing comment with conversation context
/work:comment-create 123 "Fixed the authentication bug" --prompt "Add technical details about the race condition we found"
</EXAMPLES>
<AGENT_INVOCATION>
After parsing arguments, invoke the work-manager agent with a structured request.
Invoke the fractary-work:work-manager agent with the following request:
{
"operation": "create-comment",
"parameters": {
"issue_number": "123",
"comment": "Working on this now"
}
}
The work-manager agent will:
<ERROR_HANDLING> Common errors to handle:
Missing issue number:
Error: issue_number is required
Usage: /work:comment-create <issue_number> <text>
Missing comment text:
Error: comment text is required
Usage: /work:comment-create <issue_number> <text>
Invalid issue number:
Error: Issue not found: #999
Verify the issue number and try again
</ERROR_HANDLING>
<NOTES> ## Comment FormattingComments support markdown formatting on most platforms (GitHub Flavored Markdown, Jira wiki markup, Linear markdown).
This command works with:
Platform is configured via /work:init and stored in .fractary/plugins/work/config.json.
When used within FABER workflows, comments automatically include phase information, workflow progress updates, links to commits and PRs, and test results.
For detailed documentation, see: /docs/commands/work-comment.md
Related commands:
/work:comment-list - List comments/work:issue-fetch - Fetch issue details/work:state-close - Close issue with comment/work:init - Configure work plugin
</NOTES>