Skill v1.0.0
LLM-judged scan90/100version: "1.0.0" name: speckit-taskstoissues description: Create GitHub issues from the active Spec Kit tasks list.
Speckit Tasks To Issues
Use this skill for the $speckit-taskstoissues phase. Support --dry-run by printing the gh issue create commands without creating issues.
Bootstrap
If .specify is absent, create .specify/memory, .specify/templates, .specify/scripts/bash, and specs. Add a minimal .specify/scripts/bash/check-prerequisites.sh only when absent. It must support --json --require-tasks --include-tasks and return FEATURE_DIR.
Workflow
- Run
.specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks.
Stop if FEATURE_DIR/tasks.md is missing.
- Verify
ghis installed and authenticated unless running--dry-run. - Parse task lines from
tasks.mdthat start with a Markdown task checkbox and
contain a T### task id.
- Create one issue per task with title
[SpecKit] <feature-dir-name>: <task-id> <task>.
- Before creating, check all repository issues by exact title; warn and skip
already-created issues.
- Always include
--assignee "$assignee"fromAGENT_KIT_GH_ASSIGNEE. - Pick exactly one best-fit existing repo label from
enhancement, bug, or documentation. Never invent labels; if the chosen label does not exist, warn and omit --label.
- Use this inline helper shape; do not add a script file:
dry_run=falsecase " $ARGUMENTS " in *" --dry-run "*) dry_run=true ;; esacassignee="${AGENT_KIT_GH_ASSIGNEE:?set AGENT_KIT_GH_ASSIGNEE to the GitHub login that should own generated issues}"feature_dir="<FEATURE_DIR from check-prerequisites>"tasks_file="$feature_dir/tasks.md"feature_name="$(basename "$feature_dir")"label_exists() {gh label list --limit 1000 --json name --jq '.[].name' | grep -Fxq "$1"}issue_exists() {gh issue list --state all --search "$1 in:title" --json title --jq '.[].title' | grep -Fxq "$1"}while IFS= read -r task_line; dotask_id="$(printf '%s\n' "$task_line" | grep -Eo 'T[0-9]{3,}' | head -n 1)"task_text="$(printf '%s\n' "$task_line" |sed -E 's/^- \[[ xX]\][[:space:]]*//; s/\[P\][[:space:]]*//g; s/T[0-9]{3,}[[:space:]]*//; s/^[[:space:]]+//')"[ -n "$task_id" ] || continue[ -n "$task_text" ] || continuetitle="[SpecKit] ${feature_name}: ${task_id} ${task_text}"body="$(cat <<EOF## Task${task_line}## Source- Feature: ${feature_dir}- Tasks: ${tasks_file}EOF)"lower="$(printf '%s\n' "$task_text" | tr '[:upper:]' '[:lower:]')"label="enhancement"case "$lower" in*bug*|*fix*|*regression*|*failure*|*defect*) label="bug" ;;*doc*|*docs*|*documentation*|*readme*|*runbook*|*guide*) label="documentation" ;;esaclabel_args=()if label_exists "$label"; thenlabel_args=(--label "$label")elseprintf 'WARN: label %s does not exist; omitting --label for %s\n' "$label" "$title" >&2fiif issue_exists "$title"; thenprintf 'WARN: issue already exists, skipping: %s\n' "$title" >&2continuefiif [ "$dry_run" = true ]; thenprintf 'gh issue create --title %q --body %q --assignee %q' "$title" "$body" "$assignee"[ "${#label_args[@]}" -eq 0 ] || printf ' --label %q' "$label"printf '\n'elsegh issue create --title "$title" --body "$body" --assignee "$assignee" "${label_args[@]}"fidone < <(grep -E '^- \[[ xX]\].*T[0-9]{3,}' "$tasks_file")
- Report created, skipped, and dry-run counts.