From mypos-legal-copilot
Set Jira-native Priority, Due date, Labels and the Flag/Impediment field directly on the ticket via mcp__atlassian__editJiraIssue. Use after a legal-triage-* skill has produced priority + SLA + risk flags, and after jira-auto-assign has set the assignee. Replaces the previous behaviour of posting risk + SLA + deadline as Jira comments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mypos-legal-copilot:jira-fields-and-flagsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Push deadlines, priority, labels and impediment flags into the Jira ticket itself, where the team can actually filter and sort on them. No comments.
Push deadlines, priority, labels and impediment flags into the Jira ticket itself, where the team can actually filter and sort on them. No comments.
{
"ticket_key": "LEGAL-4321",
"priority": "Highest" | "High" | "Medium" | "Low" | "Lowest",
"sla_days": 1-90,
"matter_type": "nda" | "contract_review" | ...,
"risk_flags": ["regulator", "claim", "tight_deadline", "inspection"],
"human_review_required": true | false,
"today_iso": "2026-06-02"
}
due_date = today_iso + sla_days calendar days formatted YYYY-MM-DD.
If the resulting date falls on Saturday or Sunday, roll back to the previous Friday -- internal deadlines should land on workdays so they trigger morning sweeps.
Build a stable, alphabetically sorted label set:
matter:{matter_type} (e.g., matter:nda)auto-triaged-{today_iso} (e.g., auto-triaged-2026-06-02)risk:{flag} (e.g., risk:regulator, risk:claim)human_review_required: add needs-lawyer-reviewNever replace existing labels. Always merge: read the current label set via mcp__atlassian__getJiraIssue (fields: ["labels"]) and combine.
myPOS Jira uses the system Flagged field (customfield_10021, value Impediment) to mark a ticket as blocked / needs attention. Set it ON if any of:
risk_flags includes regulator, inspection, or claimhuman_review_required == truesla_days <= 2Otherwise clear it.
Field discovery. If the
customfield_10021ID is wrong on a particular Jira instance, look up the right ID once viamcp__atlassian__getJiraIssueTypeMetaWithFieldsand cache it inknowledge/config.mdunder "Jira field IDs". The skill always reads from there first; the customfield ID above is the documented fallback.
A single editJiraIssue call with all fields. Reasons:
mcp__atlassian__editJiraIssue(
cloudId = "fb47470f-f5c2-44bc-8182-f2a22f059adb",
issueIdOrKey = ticket_key,
fields = {
"priority": {"name": priority},
"duedate": due_date,
"labels": merged_labels,
"customfield_10021": flagged_value // [{"value": "Impediment"}] OR []
}
)
Where flagged_value is [{"value": "Impediment"}] when on, and [] when off (Jira represents "no flag" as an empty array, not null).
If the edit returns an error mentioning an unknown field, peel off that field and retry. Order of importance: priority > duedate > flagged > labels. Never silently drop priority or duedate. If those two cannot be set, return:
{"applied": false, "reason": "priority/duedate edit rejected: {error}", "fields_attempted": {...}}
{
"applied": true,
"priority": "High",
"due_date": "2026-06-09",
"labels_added": ["matter:nda", "auto-triaged-2026-06-02", "risk:claim"],
"flagged": true,
"fields_skipped": []
}
The calling command surfaces these in the AI Triage comment under "Fields set" -- not as a duplicate of what's already on the ticket, but as a one-line confirmation:
Fields set: priority=High, due=2026-06-09, flagged=yes, labels=[matter:nda, risk:claim, ...]
sla-already-elapsed.Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub mypostech/mps-legal-legalcopilot-ai