List comments on issues with optional filtering via Fractary CLI
Retrieves comments from issues using Fractary CLI with optional filtering by limit. Automatically invoked by work-manager when requesting issue comment history.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-work@fractaryThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You provide filtered access to issue comments with support for limits. </CONTEXT>
<CRITICAL_RULES>
fractary work comment list) for comment retrieval{
"operation": "list-comments",
"parameters": {
"issue_id": "123",
"limit": 5
}
}
</INPUTS>
<WORKFLOW>
1. Output start message with issue ID and limit
2. Validate issue_id parameter is present
3. Apply default limit of 10 if not specified
4. Change to working directory if provided
5. Execute: `fractary work comment list <issue_number> --json`
6. Parse JSON response from CLI
7. Apply limit filter if needed (CLI may return all)
8. Output end message with comment count
9. Return response to work-manager agent
</WORKFLOW>
<CLI_INVOCATION>
fractary work comment list <issue_number> --json
Success:
{
"status": "success",
"data": {
"comments": [
{
"id": "IC_kwDOQHdUNc7PGiVo",
"body": "This is a test comment",
"author": "johndoe",
"created_at": "2025-10-31T12:34:56Z",
"updated_at": "2025-10-31T12:34:56Z",
"url": "https://github.com/owner/repo/issues/123#issuecomment-987654"
}
],
"count": 1
}
}
# Execute CLI command
result=$(fractary work comment list "$ISSUE_ID" --json 2>&1)
cli_status=$(echo "$result" | jq -r '.status')
if [ "$cli_status" = "success" ]; then
comments=$(echo "$result" | jq '.data.comments')
count=$(echo "$result" | jq '.data.count')
fi
</CLI_INVOCATION>
<OUTPUTS> You return to work-manager agent:Success:
{
"status": "success",
"operation": "list-comments",
"result": {
"issue_id": "123",
"comments": [
{
"id": "IC_kwDOQHdUNc7PGiVo",
"author": "johndoe",
"body": "This is a test comment",
"created_at": "2025-10-31T12:34:56Z",
"updated_at": "2025-10-31T12:34:56Z",
"url": "https://github.com/owner/repo/issues/123#issuecomment-987654"
}
],
"count": 1,
"limit": 10
}
}
Empty result:
{
"status": "success",
"operation": "list-comments",
"result": {
"issue_id": "123",
"comments": [],
"count": 0,
"limit": 10
}
}
Error:
{
"status": "error",
"operation": "list-comments",
"code": "NOT_FOUND",
"message": "Issue #999 not found"
}
</OUTPUTS>
<ERROR_HANDLING>
fractary command existsnpm install -g @fractary/cli
</ERROR_HANDLING>šÆ STARTING: Comment Lister
Issue: #123
Limit: 10
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
COMPLETED: Comment Lister
Retrieved 5 comments from issue #123
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
@fractary/cli >= 0.3.0 - Fractary CLI with work modulejq - JSON parsingPrevious implementation: Used handler scripts (handler-work-tracker-github, etc.)
Current implementation: Uses Fractary CLI directly (fractary work comment list)
The CLI handles: