Batch workflows

From MoonLadderStudios/MoonMind · View interactive version

Batch workflows is an AI agent skill from the GitHub repository MoonLadderStudios/MoonMind. Resolve a Jira project/status cohort and enqueue one curated Jira child workflow per issue with inherited runtime and stable evidence.

How to use this skill

Skill file

Batch Jira Workflows

Purpose

Resolve Jira issues in one project/status cohort and queue one curated child

workflow per issue. Every child inherits the parent runtime

(runtimeInheritance="caller") and a shared publish policy. The parent records

durable target and queue evidence; each child owns its configured publish

outcome.

This Skill is the Jira provider entrypoint. Use batch-github-workflows for a

GitHub issue-number range. Both entrypoints execute the same portable fan-out

engine from the resolved active Skill snapshot.

Inputs

preset:jira-orchestrate.

default true.

project/status query.

cannot infer it.

pr_with_merge_automation. The omitted default is derived from the

selected run (skill:jira-verify -> none, implement presets -> pr)

via the preset defaultFrom policy; the batch parent itself publishes

nothing (workflowPublish.mode: none).

Workflow

  1. Use the trusted Jira tool surface to search this fixed cohort:

```text

project = "<jira_project_key>" AND status = "<jira_status>"

```

Append additional_jql only when provided. Write the result to

artifacts/batch-workflows-targets.json in this canonical form:

```json

{

"provider": "jira",

"ref": "MM-123",

"jiraIssue": {"key": "MM-123", "summary": "...", "description": "...",

"url": "...", "status": "In Progress", "assignee": "..."},

"repository": "MoonLadderStudios/MoonMind"

}

```

Never use raw Jira credentials, web scraping, or guessed issue content.

  1. Invoke the Jira entrypoint exactly once:

```bash

python3 "$MOONMIND_ACTIVE_SKILLS_DIR/batch-workflows/bin/batch_workflows.py" \

--targets artifacts/batch-workflows-targets.json \

--run-ref <curated Jira run ref> \

--publish-mode <none|branch|pr|pr_with_merge_automation> \

--constraints-file <optional constraints path> \

--run-verify | --no-run-verify \

--update-status | --no-update-status \

--max-workflows <cap>

```

The engine binds Jira issue data into the selected child, stamps

runtimeInheritance="caller" plus the parent's effective runtime fallback,

rejects unsupported explicit publish modes, applies one publish policy,

creates a per-target idempotency key bound to the

child's inputs, and submits through POST /api/executions at MOONMIND_URL.

A retry resolves to the accepted child even when the re-read issue snapshot

(title, body, status, labels) changed; changed constraints, publish mode, or

runtime are new work. Accepted child identities survive unavailable read-back,

including delayed 404 responses, and retain their concurrency slots.

Targets that build the same child are

submitted once and listed under duplicates, not counted as requested twice.

When MoonMind supplies MOONMIND_EXECUTION_FANOUT_BEARER_TOKEN_FILE

(preferred) or MOONMIND_EXECUTION_FANOUT_BEARER_TOKEN, forward that scoped

bearer on create and describe calls. A declared token file that is missing or

empty is a hard failure; never fall back to the ambient value.

If input validation fails before a trustworthy target list can be written,

invoke the same entrypoint once with --preflight-error <message> and

--requested-count <count>. Do not handcraft or reuse a result artifact.

  1. Report the helper's artifacts/batch-workflows-result.json queued, skipped,

and error counts honestly and link every queued child workflow.

Security and execution constraints

unsupported_target reason.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.