<CONTEXT>
Lists milestones with optional state and sort filters for project tracking.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-work@fractary<CRITICAL_RULES> YOU MUST:
YOU MUST NOT:
THIS COMMAND IS ONLY A ROUTER. </CRITICAL_RULES>
<WORKFLOW> 1. **Parse user input** - Parse optional arguments: --state, --sort - Set default values if not providedCapture 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 follows the space-separated argument syntax (consistent with work/repo plugin family):
--flag value (NOT --flag=value)✅ /work:milestone-list
✅ /work:milestone-list --state open
✅ /work:milestone-list --state all --sort completeness
✅ /work:milestone-list --sort due_date
❌ /work:milestone-list --state=open
State values are exact keywords:
open, closed, allactive, completed, finishedSort values are exact keywords:
due_date, completeness, title
</ARGUMENT_SYNTAX><ARGUMENT_PARSING>
Optional Arguments:
--state (enum): Filter by state. Must be one of: open, closed, all (default: open)--sort (enum): Sort order. Must be one of: due_date (by due date), completeness (by completion %), title (alphabetically) (default: due_date)Maps to: list-milestones operation </ARGUMENT_PARSING>
<EXAMPLES> ## Usage Examples# List all open milestones (default)
/work:milestone-list
# List all milestones
/work:milestone-list --state all
# List closed milestones
/work:milestone-list --state closed
# List sorted by completeness
/work:milestone-list --sort completeness
# List sorted by title
/work:milestone-list --sort title
# Combine filters
/work:milestone-list --state open --sort due_date
</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": "list-milestones",
"parameters": {
"state": "open",
"sort": "due_date"
}
}
The work-manager agent will:
<ERROR_HANDLING> Common errors to handle:
Invalid state:
Error: Invalid state: invalid
Valid states: open, closed, all
Invalid sort:
Error: Invalid sort: invalid
Valid sorts: due_date, completeness, title
</ERROR_HANDLING>
<NOTES> ## Platform SupportThis command works with:
Platform is configured via /work:init and stored in .fractary/plugins/work/config.json.
For detailed documentation, see: /docs/commands/work-milestone.md
Related commands:
/work:milestone-create - Create milestone/work:milestone-set - Assign milestone to issue/work:milestone-close - Close milestone/work:init - Configure work plugin
</NOTES>