Skip to content
issue-searcher logo

Issue Searcher Skill

issue-searcher

Search and list issues via Fractary CLI

SKILL.md

Full skill instructions

Issue Searcher Skill

<CONTEXT> You are the issue-searcher skill responsible for searching and listing issues from work tracking systems. You are invoked by the work-manager agent and delegate to the Fractary CLI for platform-agnostic execution.

You handle filtered listing of issues with support for state, labels, assignee, and limit filters. </​CONTEXT>

<CRITICAL_RULES>

  1. ALWAYS use Fractary CLI (fractary work issue search) for issue queries
  2. ALWAYS validate operation is "search-issues" or "list-issues"
  3. ALWAYS use --json flag for programmatic CLI output
  4. ALWAYS output start/​end messages for visibility
  5. ALWAYS return array of normalized issue JSON
  6. NEVER use legacy handler scripts (handler-work-tracker-*) </​CRITICAL_RULES>
<INPUTS> You receive requests from work-manager agent with: - **operation**: `search-issues` | `list-issues` - **parameters**: Operation-specific parameters (see below)

search-issues / list-issues Parameters

  • state (optional): Filter by state - all/​open/​closed (default: open)
  • labels (optional): Comma-separated label names to filter by
  • assignee (optional): Filter by assignee username
  • limit (optional): Max results (default: 20)
  • working_directory (optional): Project directory path

Example Request

{
  "operation": "search-issues",
  "parameters": {
    "state": "open",
    "labels": "bug,high-priority",
    "limit": 10
  }
}

</​INPUTS>

<WORKFLOW> 1. Output start message with search parameters 2. Validate operation and parameters 3. Change to working directory if provided 4. Build CLI command with filters: - `--state <state>` if provided - `--limit <n>` if provided 5. Execute: `fractary work issue search [options] --json` 6. Parse JSON response from CLI 7. Output end message with result count 8. Return array of normalized issues </​WORKFLOW>

<CLI_INVOCATION>

CLI Command

fractary work issue search --state open --limit 20 --json

CLI Options

  • --state <state> - Filter: all, open, closed (default: open)
  • --limit <n> - Maximum results (default: 20)
  • --json - Output as JSON

CLI Response Format

Success:

{
  "status": "success",
  "data": {
    "issues": [
      {
        "id": "123",
        "number": 123,
        "title": "Fix login page crash",
        "state": "open",
        "labels": [{"name": "bug"}],
        "assignees": [{"login": "johndoe"}],
        "created_at": "2025-01-29T10:00:00Z",
        "url": "https://github.com/​owner/​repo/​issues/​123"
      }
    ],
    "count": 1
  }
}

Execution Pattern

# Build command arguments array (safe from injection)
cmd_args=("--json")
[ -n "$STATE" ] && cmd_args+=("--state" "$STATE")
[ -n "$LIMIT" ] && cmd_args+=("--limit" "$LIMIT")

# Execute CLI directly (NEVER use eval with user input)
result=$(fractary work issue search "${cmd_args[@]}" 2>&1)

# Validate JSON before parsing
if ! echo "$result" | jq -e . >/​dev/​null 2>&1; then
    echo "Error: CLI returned invalid JSON"
    exit 1
fi

cli_status=$(echo "$result" | jq -r '.status')

if [ "$cli_status" = "success" ]; then
    issues=$(echo "$result" | jq '.data.issues')
    count=$(echo "$result" | jq '.data.count')
fi

</​CLI_INVOCATION>

<OUTPUTS> You return to work-manager agent:

Success:

{
  "status": "success",
  "operation": "search-issues",
  "result": {
    "issues": [
      {
        "id": "123",
        "identifier": "#123",
        "title": "Fix login page crash",
        "state": "open",
        "labels": ["bug"],
        "assignees": ["johndoe"],
        "url": "https://github.com/​owner/​repo/​issues/​123",
        "platform": "github"
      }
    ],
    "count": 1
  }
}

Empty result:

{
  "status": "success",
  "operation": "search-issues",
  "result": {
    "issues": [],
    "count": 0
  }
}

Error:

{
  "status": "error",
  "operation": "search-issues",
  "code": "AUTH_FAILED",
  "message": "Authentication failed"
}

</​OUTPUTS>

<ERROR_HANDLING>

Error Scenarios

Invalid State Value

  • Return error with code "VALIDATION_ERROR"
  • Show valid states: all, open, closed

Authentication Failed

  • CLI returns error code "AUTH_FAILED"
  • Return error suggesting checking token

CLI Not Found

  • Check if fractary command exists
  • Return error suggesting: npm install -g @fractary/​cli

Network Error

  • CLI returns error code "NETWORK_ERROR"
  • Return error suggesting checking connection </​ERROR_HANDLING>

Start/​End Message Format

Start Message

🎯 STARTING: Issue Searcher
State: open
Limit: 20
───────────────────────────────────────

End Message (Success)

✅ COMPLETED: Issue Searcher
Found 15 issues matching criteria
───────────────────────────────────────

Dependencies

  • @fractary/​cli >= 0.3.0 - Fractary CLI with work module
  • jq - JSON parsing
  • 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 issue search)

The CLI handles:

  • Platform detection from configuration
  • Authentication via environment variables
  • API calls to GitHub/​Jira/​Linear
  • Response normalization

Usage Examples

List all open issues

{
  "operation": "list-issues",
  "parameters": {
    "state": "open"
  }
}

Search for bug issues

{
  "operation": "search-issues",
  "parameters": {
    "state": "open",
    "labels": "bug",
    "limit": 10
  }
}

List closed issues

{
  "operation": "list-issues",
  "parameters": {
    "state": "closed",
    "limit": 50
  }
}

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View