Create a new work item
Create a new work item with title, type, description, labels, milestone, and assignee. Use --prompt to generate body from conversation context. Use --branch-create or --spec-create for automated workflows.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-work@fractary"<title>" [--type "feature|bug|chore|patch"] [--body "<text>"] [--prompt "<instructions>"] [--label <label>] [--milestone <milestone>] [--assignee <user>] [--branch-create] [--spec-create]claude-opus-4-5<CRITICAL_RULES> YOU MUST:
YOU MUST NOT:
WHEN COMMANDS FAIL:
THIS COMMAND IS ONLY A ROUTER. </CRITICAL_RULES>
<WORKFLOW> 1. **Parse user input** - Extract title (required) - Parse optional arguments: --type, --body, --prompt, --label, --milestone, --assignee, --branch-create, --spec-create - Validate required arguments are presentCapture working directory context
WORK_CWD="${PWD}"Handle --prompt argument (if provided)
--prompt is provided but --body is NOT provided:
--prompt and --body are provided:
--body as the base, but enhance/refine it using the context instructions--body is provided (no --prompt):
--body as-is (current behavior)Build structured request
--type to label format (e.g., "type: feature")branch_create to true if --branch-create flag is providedspec_create to true if --spec-create flag is providedACTUALLY 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)--body "This is a description" ✅--body This is a description ❌Always use quotes for multi-word values:
✅ /fractary-work:issue-create "Title with spaces" --body "Description with spaces"
✅ /fractary-work:issue-create "Bug fix" --type bug --label high-priority
❌ /fractary-work:issue-create Title with spaces --body Description with spaces
Single-word values don't require quotes:
✅ /fractary-work:issue-create "Title" --type feature
✅ /fractary-work:issue-create "Title" --label urgent
Labels cannot contain spaces:
✅ /fractary-work:issue-create "Title" --label urgent --label high-priority
❌ /fractary-work:issue-create "Title" --label "high priority" # Spaces not supported in label values
Use hyphens or underscores instead: high-priority, high_priority
</ARGUMENT_SYNTAX>
<ARGUMENT_PARSING>
Required Arguments:
title: Issue title (use quotes if multi-word)Optional Arguments:
--type: Issue type (feature|bug|chore|patch, default: feature) - Automatically converted to "type: <value>" label--body: Issue description (use quotes if multi-word) - exact text to use as body--prompt: Instructions for generating the issue body from conversation context (use quotes). When provided without --body, Claude will craft the body using the current conversation plus these instructions. This is useful for capturing discussion, decisions, and plans into a well-structured issue.--label: Additional labels (can be repeated, space-separated values not allowed)--milestone: Milestone name or number--assignee: User to assign (use @me for yourself)--branch-create: Automatically create a Git branch for this issue (requires fractary-repo plugin)--spec-create: Automatically create a specification after issue (and branch if --branch-create provided) creation (requires fractary-spec plugin)Maps to: create-issue operation
Type Conversion: The --type flag is automatically converted to a label in the format "type: <value>". For example, --type feature becomes the label "type: feature". This label is then merged with any additional --label flags.
Body vs Prompt:
--body provides the exact text to use as the issue body--prompt provides instructions for Claude to generate the body from conversation context--body is the base and --prompt refines it--prompt is provided, Claude generates the entire body based on the conversation and instructions
</ARGUMENT_PARSING># Create a new feature issue
/fractary-work:issue-create "Add CSV export feature" --type feature
# Create a bug with description
/fractary-work:issue-create "Fix login timeout" --type bug --body "Users logged out after 5 minutes"
# Create with multiple labels
/fractary-work:issue-create "Fix login bug" --type bug --label urgent --label security
# Create with milestone and assignee
/fractary-work:issue-create "Implement auth" --type feature --milestone "v1.0 Release" --assignee @me
# Create and automatically create branch
/fractary-work:issue-create "Add dark mode" --type feature --branch-create
# Create, create branch, and create spec (full workflow)
/fractary-work:issue-create "Add CSV export" --type feature --branch-create --spec-create
# Create issue with body generated from conversation context
# (Claude will use the discussion to craft a detailed body)
/fractary-work:issue-create "Implement user auth flow" --type feature --prompt "Include the OAuth2 approach we discussed, the token refresh strategy, and the error handling requirements"
# Create issue capturing the full problem/solution discussion
/fractary-work:issue-create "Fix race condition in queue processor" --type bug --prompt "Summarize the root cause analysis and agreed solution from our discussion"
# Use context to guide body generation with additional labels
/fractary-work:issue-create "Add dark mode support" --type feature --prompt "Focus on the CSS variables approach and component changes we identified" --label frontend --label ui
</EXAMPLES>
<AGENT_INVOCATION>
After parsing arguments, invoke the work-manager agent with a structured request.
CRITICAL: Capture the current working directory and pass it to the agent to ensure operations execute in the correct repository.
Invoke the fractary-work:work-manager agent with the following request:
{
"operation": "create-issue",
"parameters": {
"title": "Issue title",
"description": "Optional description",
"labels": "type: feature,label1,label2",
"milestone": "Optional milestone",
"assignee": "Optional assignee",
"branch_create": false,
"spec_create": false,
"working_directory": "/path/to/project"
}
}
Note:
branch_create to true if the --branch-create flag is provided. This will automatically create a Git branch after the issue is created (requires fractary-repo plugin to be configured).spec_create to true if the --spec-create flag is provided. This will automatically create a specification after the issue (and branch if applicable) is created (requires fractary-spec plugin to be configured).The work-manager agent will:
CLAUDE_WORK_CWD environment variable from working_directoryWhy working_directory is required:
When agents execute via Task tool, they run from the plugin directory, not the user's project directory. Passing working_directory ensures scripts load the correct configuration and create the issue in the correct repository. See: /.tmp/FRACTARY_WORK_PLUGIN_BUG_REPORT.md
IMPORTANT: The --type flag must be converted to a label before sending to the agent.
When the user provides --type <value>, convert it to "type: <value>" label format and merge with any additional --label flags:
--type feature → "type: feature" label--type bug → "type: bug" label--type chore → "type: chore" label--type patch → "type: patch" labelExample: /fractary-work:issue-create "Title" --type bug --label urgent becomes:
{
"operation": "create-issue",
"parameters": {
"title": "Title",
"labels": "type: bug,urgent"
}
}
</AGENT_INVOCATION>
<ERROR_HANDLING> Common errors to handle:
Missing required argument:
Error: title is required
Usage: /fractary-work:issue-create <title> [--type <type>]
Invalid type:
Error: Invalid type: invalid
Valid types: feature, bug, chore, patch
</ERROR_HANDLING>
<NOTES> ## Issue TypesThe work plugin supports these universal issue types:
These map to platform-specific types automatically:
This command works with:
Platform is configured via /fractary-work:init and stored in .fractary/plugins/work/config.json.
The --prompt argument enables a powerful workflow pattern: after discussing a problem and solution with Claude, you can create an issue that captures all that thinking without manually writing the body.
Use Cases:
How it works:
/fractary-work:issue-create with --prompt providing instructionsExample workflow:
User: Let's discuss how to implement rate limiting for our API...
[... discussion about approaches, trade-offs, decisions ...]
User: /fractary-work:issue-create "Implement API rate limiting" --type feature --prompt "Include the token bucket approach we agreed on, the Redis backend decision, and the per-endpoint configuration requirements"
For detailed documentation, see: /docs/commands/work-issue.md
Related commands:
/fractary-work:issue-fetch - Fetch issue details/fractary-work:issue-list - List issues/fractary-work:issue-update - Update issue/fractary-work:issue-assign - Assign issue/fractary-work:comment-create - Add comment/fractary-work:label-add - Add labels/fractary-work:init - Configure work plugin
</NOTES>