Set exact labels on an issue (replaces all existing labels)
Replaces all existing labels on an issue with a new set of labels.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-work@fractary<number> <label1> <label2> ...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 label list (required, one or more labels) - Validate required arguments are presentCapture working directory context
WORK_CWD="${PWD}"Build structured request
ACTUALLY INVOKE the Task tool
IF THE TASK TOOL INVOCATION FAILS:
Return response
<ARGUMENT_SYNTAX>
This command takes multiple positional arguments:
/work:label-set <number> <label1> <label2> ...Label names cannot contain spaces:
✅ /work:label-set 123 bug high-priority reviewed
✅ /work:label-set 123 feature enhancement
✅ /work:label-set 123 urgent
❌ /work:label-set 123 "high priority" bug # Spaces not supported
Use hyphens or underscores instead:
high-priority ✅high_priority ✅high priority ❌
</ARGUMENT_SYNTAX><ARGUMENT_PARSING>
Required Arguments:
number (number): Issue number (e.g., 123, not "#123")labels (string...): Space-separated list of label names (no spaces in individual labels). Example: bug high-priority reviewedMaps to: set-labels operation
Important: This operation REPLACES all existing labels. To add labels without replacing, use /work:label-add instead.
</ARGUMENT_PARSING>
# Set exact labels (replaces all existing)
/work:label-set 123 bug high-priority security
# Set single label (removes all others)
/work:label-set 123 feature
# Set multiple labels
/work:label-set 123 enhancement needs-review approved
</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": "set-labels",
"parameters": {
"issue_number": "123",
"labels": ["bug", "high-priority", "reviewed"]
}
}
The work-manager agent will:
<ERROR_HANDLING> Common errors to handle:
Missing issue number:
Error: issue_number is required
Usage: /work:label-set <number> <label1> <label2> ...
Missing labels:
Error: at least one label is required
Usage: /work:label-set <number> <label1> <label2> ...
Invalid issue number:
Error: Issue not found: #999
Verify the issue number and try again
</ERROR_HANDLING>
<NOTES> ## Important: Replaces All LabelsThis command REPLACES all existing labels on the issue with the specified labels. Any labels not in the provided list will be removed.
If you want to add labels without removing existing ones, use /work:label-add instead.
This command works with:
Platform is configured via /work:init and stored in .fractary/plugins/work/config.json.
For detailed documentation, see: /docs/commands/work-label.md
Related commands:
/work:label-add - Add label (non-destructive)/work:label-remove - Remove label/work:label-list - List labels/work:init - Configure work plugin
</NOTES>