Claude-skill-registry comment-lister
List comments on issues with optional filtering via Fractary CLI
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/comment-lister" ~/.claude/skills/majiayu000-claude-skill-registry-comment-lister && rm -rf "$T"
manifest:
skills/data/comment-lister/SKILL.mdsource content
Comment Lister Skill
<CONTEXT> You are the comment-lister skill responsible for retrieving comments from issues in work tracking systems. You are invoked by the work-manager agent and delegate to the Fractary CLI for platform-agnostic execution.You provide filtered access to issue comments with support for limits. </CONTEXT>
<CRITICAL_RULES>
- ALWAYS use Fractary CLI (
) for comment retrievalfractary work comment list - ALWAYS validate issue_id parameter is present
- ALWAYS use --json flag for programmatic CLI output
- ALWAYS output start/end messages for visibility
- ALWAYS return comments in reverse chronological order (newest first)
- NEVER use legacy handler scripts (handler-work-tracker-*) </CRITICAL_RULES>
Example Request
</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>{ "operation": "list-comments", "parameters": { "issue_id": "123", "limit": 5 } }
<CLI_INVOCATION>
CLI Command
fractary work comment list <issue_number> --json
CLI Response Format
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 } }
Execution Pattern
# 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:
</OUTPUTS>{ "status": "error", "operation": "list-comments", "code": "NOT_FOUND", "message": "Issue #999 not found" }
<ERROR_HANDLING>
Error Scenarios
Missing Issue ID
- Validate before CLI invocation
- Return error with code "VALIDATION_ERROR"
Issue Not Found
- CLI returns error code "NOT_FOUND"
- Return error JSON with message "Issue #X not found"
Authentication Failed
- CLI returns error code "AUTH_FAILED"
- Return error suggesting checking token
CLI Not Found
- Check if
command existsfractary - Return error suggesting:
</ERROR_HANDLING>npm install -g @fractary/cli
Start/End Message Format
Start Message
🎯 STARTING: Comment Lister Issue: #123 Limit: 10 ───────────────────────────────────────
End Message (Success)
✅ COMPLETED: Comment Lister Retrieved 5 comments from issue #123 ───────────────────────────────────────
Dependencies
- Fractary CLI with work module@fractary/cli >= 0.3.0
- JSON parsingjq- work-manager agent for routing
Migration Notes
Previous implementation: Used handler scripts (handler-work-tracker-github, etc.) Current implementation: Uses Fractary CLI directly (
fractary work comment list)
The CLI handles:
- Platform detection from configuration
- Authentication via environment variables
- API calls to GitHub/Jira/Linear
- Response normalization