Issues from assessment

From bdfinst/agentic-dev-team · View interactive version

Issues from assessment is an AI agent skill from the GitHub repository bdfinst/agentic-dev-team. Convert a `/cd-test-architecture` assessment into a parent + Phase-tagged child issues on the tracker the operator points at (ADO, GitHub, GitLab, Jira). Dispatches by parent URL host to the tracker's own CLI (`az boards`, `gh`, `glab`, `acli`). When no parent URL is given, or when the required CLI

How to use this skill

Skill file

Issues from Assessment

Role: worker. Converts the assessment produced by /cd-test-architecture into the tracker artifacts the calling test-improvement workflow expects (Feature/Epic + Phase-tagged Stories + Tasks with predecessor links), or — when no tracker CLI is available — into local plan files with the same structure. Lifts the preview-then-confirm + gh issue create patterns from /issues-from-plan.

You have been invoked with the /issues-from-assessment command.

Parse Arguments

Arguments: $ARGUMENTS

If <assessment-path> is absent or the file is missing, ask the operator to point at one.

Path + label templates. Every filesystem path and every operator-visible tracker label in the Steps below carries <workflow> as a placeholder — the skill interpolates the resolved --workflow value at run time. No literal workflow name appears in a path or label string.

Steps

1. Resolve sink (host-based dispatch + CLI probe)

Parse the --parent URL host. Pick the CLI and probe it:

| Host pattern | CLI | Probe |

|---|---|---|

| dev.azure.com | az (with az boards extension) | command -v az >/dev/null 2>&1 && az extension show -n azure-devops >/dev/null 2>&1 |

| github.com | gh | command -v gh >/dev/null 2>&1 && gh auth status >/dev/null 2>&1 |

| *.atlassian.net | acli (Atlassian CLI) | command -v acli >/dev/null 2>&1 — if missing, try REST with $JIRA_TOKEN |

| gitlab.com / self-hosted GitLab | glab | command -v glab >/dev/null 2>&1 && glab auth status >/dev/null 2>&1 |

| empty / omitted | (none) | local-files mode |

If the probe fails, tell the operator exactly what's missing and the canonical install / auth command, then fall back to local-files mode automatically. Example:

gh is not installed. Run `/project-init` to set up this repo's tooling, or install
gh directly from https://cli.github.com/ and run `gh auth login`.
Falling back to local-files mode — Stories will be written to .claude/plans/<workflow>/.

Record the resolved sink in .claude/memory/<workflow>/<slug>/phase-1.md so subsequent workers (/coverage-baseline, /coverage-delta, /quality-targets-converge) reuse the same dispatch decision.

2. Read the assessment + derive children

Parse the assessment file's sections per /cd-test-architecture's contract:

[Component tests] Stories are intentionally NOT created from the assessment. Creating them here would bind the test code to the recommended behavior in the assessment rather than the approved behavior in the Gherkin — and the Phase-2 human gate exists precisely to let the operator sharpen, add to, or correct the inferred behaviors before any test binds to them. /gherkin-public --create-stories produces them after the gate.

For each derived child, build the title + body + phase-tag + predecessor list per the prompt's "ADO mapping" section in reports/legacy-test-modernization-prompt.md. The phase tags are Phase-1 through Phase-5. Predecessor links follow the rules:

3. Preview + confirm

Print the full list (titles, types, predecessors, one-line acceptance summary) — grouped by phase. Ask:

Create these N issues against <parent or local-files>? (yes / no / dry-run output only)

Do not call any tracker CLI or write any plan files until the operator answers yes. If --dry-run was given, print the list and exit zero.

4. Create the parent (tracker mode only)

If --parent <url> was provided, the parent already exists — capture its ID/number from the URL. Otherwise (local-files mode), create the parent file:

.claude/plans/<workflow>/FEATURE.md

Contents: the assessment summary (components table, target pre-merge gate, link to the MinimumCD component-test page), plus a placeholder block for running metric snapshots that /coverage-baseline, /coverage-delta, and /quality-targets-converge will append to.

5. Create the children — partial-failure safe

Two modes share the same control flow; only the create-call differs. Every tracker label carries <workflow> as its leading token so an operator scanning a mixed board can tell which workflow authored an issue.

Tracker mode. For each child in dependency order, call the resolved CLI. Lift the GitHub pattern verbatim from /issues-from-plan, including its Conventional Commit title rule — GitHub is the only tracker here bound to commitlint.config.js/issue-title-lint.yml; ADO/GitLab/Jira titles keep the plain [<phase-tag>] <component> form from step 2 unchanged. For GitHub, prefix that same phase-tag title with a type — test: fits every phase here (audit/baseline/refactor-for-testability/de-duplicate/re-scope are all test-suite work): test: [Baseline] <component>. Verify with printf '%s' "<title>" | npx commitlint --verbose before creating.

# GitHub — github.com
gh issue create --title "test: [<phase-tag>] <title>" --body "$(cat <<'EOF'
## What to Build

<one-paragraph behavior description>

Part of #<parent>

## Phase

Phase-<n>

## Depends On

- #<predecessor>: <reason>   <!-- "none" if no predecessors -->

## Acceptance Criteria

- [ ] <gherkin scenario 1>
- [ ] <gherkin scenario 2>

## Architectural Context

<assessment excerpt for this row>

## Testing Approach

<which test layer, which doubles, which pipeline stage>
EOF
)" --label "<workflow>,phase-<n>,<minimumcd-type>"

For the other trackers:

# Azure DevOps — dev.azure.com
az boards work-item create \
  --org "https://dev.azure.com/<org>" --project "<project>" \
  --type "User Story" --title "<title>" \
  --description "<body>" \
  --fields "Microsoft.VSTS.Common.AcceptanceCriteria=<gherkin>" \
           "System.Tags=<workflow>; phase-<n>; <minimumcd-type>"
# Then `az boards work-item relation add` for parent + predecessor links.

# GitLab — gitlab.com / self-hosted
glab issue create --title "<title>" --description "<body>" \
  --label "<workflow>,phase-<n>,<minimumcd-type>" \
  --linked-mr none
# Predecessor links via `glab issue note add` referencing #<id>.

# Jira — *.atlassian.net
acli jira workitem create --type Story --summary "<title>" \
  --description "<body>" \
  --label "<workflow>" --label "phase-<n>" --label "<minimumcd-type>"
# Parent + `is blocked by` links via `acli jira workitem link`.

Record the child-slug → tracker-id map as you go (in .claude/memory/<workflow>/<slug>/issue-map.json).

Local-files mode. Write one .claude/plans/<workflow>/phase-<n>/<child-slug>.md per child. The file's body holds the same fields the tracker would (Phase, Depends On, Acceptance Criteria, Architectural Context, Testing Approach). Cross-Story predecessor links use relative paths (e.g. Blocked by: ../phase-4/baseline-orders-api.md). A Status: line at the top defaults to Open and gets flipped to Done: <date> by /coverage-delta and /quality-targets-converge when the matching gate passes.

Partial-failure safety. If any CLI call (or file write) fails partway, do not abort silently. Report:

Leave the partial state on disk and let the operator decide whether to resume.

6. Backfill predecessor links

For tracker mode, after every child exists, walk the child-slug → tracker-id map and add the predecessor links:

For local-files mode, the Blocked by: lines were written in Step 5 — no backfill needed.

7. Persist phase-1 progress

Write .claude/memory/<workflow>/<slug>/phase-1.md with:

8. Report

Print:

Examples / Integration

Notes

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.