Skip to content

Instantly share code, notes, and snippets.

@mzbac
Last active December 18, 2025 06:15
Show Gist options
  • Select an option

  • Save mzbac/96175fb741775bc9489486a9c9c10f0a to your computer and use it in GitHub Desktop.

Select an option

Save mzbac/96175fb741775bc9489486a9c9c10f0a to your computer and use it in GitHub Desktop.
agent-tools.json
{
"version": "1.0",
"tools": [
{
"id": "jira.create",
"name": "Create Local Ticket",
"description": "Create a local Jira ticket as markdown. Returns the file path.",
"parameters": {
"type": "object",
"properties": {
"template": { "type": "string", "enum": ["bug", "feature", "task"] },
"title": { "type": "string" },
"priority": { "type": "string", "enum": ["low", "medium", "high"], "default": "medium" },
"assignee": { "type": "string", "default": "unassigned" }
},
"required": ["template", "title"]
},
"execution": {
"type": "shell",
"script": "mkdir -p .jira/tickets && ID=\"LOCAL-$(date +%s)\" && FILE=\".jira/tickets/$ID.md\" && cat > \"$FILE\" << EOF\n---\nid: $ID\ntype: $template\ntitle: $title\nstatus: open\npriority: ${priority:-medium}\nassignee: ${assignee:-unassigned}\ncreated: $(date -Iseconds)\n---\n\n# $title\nEOF\n&& echo \"Created: $FILE\""
},
"requiresApproval": false,
"category": "jira"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment