Create github issues

From pjt222/agent-almanac · View interactive version

Create github issues is an AI agent skill from the GitHub repository pjt222/agent-almanac. Structured GitHub issue creation from review findings or task breakdowns. Groups related findings into logical issues, applies labels, and produces issues with standard templates including summary, findings, and acceptance criteria. Designed to consume output from review-codebase or similar review s

How to use this skill

Skill file

Create GitHub Issues

Findings → grouped GitHub issues w/ labels + acceptance criteria + cross-refs.

Use When

In

Do

Step 1: Prep Labels

Needed labels exist in repo.

  1. List: gh label list --limit 100
  2. Identify labels from findings (severity, phase, label fields)
  3. Severity map: critical, high-priority, medium-priority, low-priority
  4. Phase/theme: security, architecture, code-quality, accessibility, testing, performance
  5. create_labels = true → gh label create "name" --color "hex" --description "desc"
  6. Colors: red=crit/sec, orange=high, yellow=med, blue=arch, green=test

Got: All label refs exist. No dup.

If err: gh not auth → gh auth login. Create denied → skip, note missing.

Step 2: Group

Batch → logical issues, no sprawl.

  1. theme → phase/category (sec → 1-2 issues, a11y → 1)
  2. severity → level (CRIT → 1, HIGH → 1)
  3. file → primary file
  4. Within group: severity order (CRIT first)
  5. >8 findings → split by sub-theme
  6. Each group → 1 issue

Got: Groups w/ 1-8 findings each. Total: 5-15 for full review.

If err: No grouping metadata → 1 issue per finding (OK for <10, bad for larger).

Step 3: Compose

Std template.

  1. Title: [Severity] Theme: Brief description — [HIGH] Security: Eliminate innerHTML injection in panel.js
  2. Body:

```text

## Summary

One-paragraph overview of what this issue addresses and why it matters.

## Findings

1. [SEVERITY] Finding description (file.js:line) — brief explanation

2. [SEVERITY] Finding description (file.js:line) — brief explanation

## Acceptance Criteria

## Context

Generated from codebase review on YYYY-MM-DD.

Related: #issue_numbers (if applicable)

```

  1. Labels: severity + theme + custom
  2. File refs → body mention (not assignee)

Got: Title + numbered findings + checkbox criteria + labels.

If err: Body > 65536 chars → split + cross-ref.

Step 4: Create

Use gh CLI.

  1. dry_run = true → print + stop
  2. Create each:

```bash

gh issue create --title "title" --body "$(cat <<'EOF'

body content

EOF

)" --label "label1,label2"

```

  1. Record URLs
  2. Summary table: #number | Title | Labels | Findings count
  3. Sequence → edit first issue: "Blocked by #X" / "See also #Y"

Got: All created. Summary table w/ URLs.

If err: Individual fail → log + continue. Report end. Common: auth expired, label not found (create_labels=false), network timeout.

Check

Traps

→

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.