Jira verify

From MoonLadderStudios/MoonMind · View interactive version

Jira verify is an AI agent skill from the GitHub repository MoonLadderStudios/MoonMind. Verify a Jira issue against the current repository state, then post a Jira comment with a PASS, PARTIAL, FAIL, or BLOCKED verdict. Works in two modes: (a) feature-branch mode, comparing a checked-out branch to its base ref; or (b) main/trunk mode, verifying that an issue is already implemented on th

How to use this skill

Skill file

Read the portable acceptance policy from the resolved moonspec-verify bundle

before assessing, verifying, or completing work. Resolve it at

$MOONMIND_ACTIVE_SKILLS_DIR/moonspec-verify/references/acceptance-policy.md

inside MoonMind; outside MoonMind resolve it from the installed skills directory

(the directory containing this SKILL.md, sibling

moonspec-verify/references/acceptance-policy.md) without requiring

MoonMind-only environment variables. A checked-in .agents/skills directory

must never shadow the selected snapshot.

It owns scope, mandatory versus optional evidence, reuse, and completion rules.

Preserve the original scope and previously met requirements as regression constraints;

prior reports are context, not current proof. Candidate success alone cannot close

or transition an issue as already landed. Completion requires objective evidence

on the intended completion target under that policy.

Jira Verify

Verify whether the repository satisfies a Jira issue, then publish a concise Jira comment with the result. This skill supports two equally valid verification modes:

current checkout. Explicit mode always controls which subject is inspected.

An empty diff does not prove landing or block verification. Detached HEAD and

non-main completion branches are supported under the shared acceptance policy.

Inputs

MoonMind Jira Access Model

Do not expect raw Jira credentials inside the managed agent shell. MoonMind keeps Atlassian credentials on the trusted control-plane/tool side. Use Jira artifacts or trusted Jira tool output as the source of truth. Use jira.add_comment for comment mutation, and use jira.get_transitions plus jira.transition_issue for status mutation when update status is explicitly true.

If Jira content is not already available to the runtime, use the trusted MCP path when exposed; see

the provider command catalog for the

selected-provider invocation shapes, and load it only when calling that path.

If jira.verify_connection reports jira_auth_failed, or jira.get_issue / jira.add_comment is unavailable or policy-denied, report BLOCKED. If update status is true and transition tools are unavailable or policy-denied, leave the verification/comment path intact but report status update as skipped/blocked in the outputs and Jira comment. Do not scrape private Atlassian browser pages, ask for ATLASSIAN_API_KEY, or call Jira directly with raw credentials.

Never print raw environment variables. Use targeted checks such as test -n "$MOONMIND_URL"; do not run printenv, env, set, or equivalent commands that can dump secrets into logs.

Workflow

  1. Resolve the Jira issue.
  1. Resolve and pin the subject under the shared acceptance policy.

comparison base, and separately the intended completion ref and revision.

and git grep <pattern> <target>. Run checks in an isolated detached worktree

created at that pinned revision; never use feature HEAD as target evidence.

use the merge-base diff to focus investigation without narrowing acceptance.

the target; otherwise inspect the actual target. Do not require a named branch.

checks suffice, including squash merges and empty diffs.

  1. Inspect implementation evidence.
  1. Build a traceability ledger before commenting.
  1. Decide the overall result.
  1. If update status is true, plan whether to update Jira status, but do not transition yet.
  1. Draft the Jira comment.

Suggested follow-up comment shape (posted after the step 9 transition attempt, when operator context explicitly requests a separate outcome comment):

Status update for `<ISSUE>`: **<already done | transitioned | skipped | blocked | failed>**

Verification: `<PASS|PARTIAL|FAIL|BLOCKED>` on `<branch>` at `<short-sha>`
Transition: `<selected transition ID/name, or reason no transition was attempted>`
Detail: `<sanitized outcome, e.g. transition receipt, already-done status, or blocker>`

Suggested comment shape (branch mode):

Branch verification for `<ISSUE>`: **<PASS|PARTIAL|FAIL|BLOCKED>**

Mode: branch
Branch: `<branch>` at `<short-sha>`
Compared against: `<base-ref>`

| Jira item | Status | Evidence |
| --- | --- | --- |
| <goal / AC summary> | met | `<file>` / `<test>` |

Gaps / blockers:
- <only when applicable>

Validation:
- Tests run: `<command>` -> `<result>`
- Tests not run: <reason>

Status update (planned, pending execution after this comment):
- <omitted when `update status` is false; otherwise already done / planned transition ID-name / skipped / blocked>

Suggested comment shape (main/trunk mode, work already merged):

Implementation verification for `<ISSUE>`: **<PASS|PARTIAL|FAIL|BLOCKED>**

Mode: main/trunk
Default branch: `<branch>` at `<short-sha>`
Implementing change(s): `<merge-sha>` (PR #<num>), `<merge-sha-2>` (PR #<num-2>)

| Jira item | Status | Evidence |
| --- | --- | --- |
| <goal / AC summary> | met | `<file:line>` at `<sha>` / `<test>` |

Gaps / blockers:
- <only when applicable>

Validation:
- Tests run: `<command>` -> `<result>`
- Tests not run: <reason>

Status update (planned, pending execution after this comment):
- <omitted when `update status` is false; otherwise already done / planned transition ID-name / skipped / blocked>
  1. Scan and post to Jira (executed as part of step 6, before any status transition; the step 9 follow-up comment reuses the same scan and post path).

the provider command catalog for the

invocation shapes.

  1. Only after the comment posts successfully, execute the status update planned in step 6.

Outputs

Failure Modes

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.