Skip to main content

DEC-AIC-0067: Adopt an issue-first planning workflow with the create-issue multi-agent skill and zero-bloat screenshot attachment

Accepted

Status: accepted · 2026-12-05

Context​

Work in ai-coach should start from a scoped GitHub issue so reproduction steps, current vs. desired behavior, acceptance criteria, and visual evidence are captured before implementation begins. Issue #68 introduced structured GitHub Issue Form templates (.github/ISSUE_TEMPLATE/bug_report.yml, enhancement.yml, new_feature.yml, config.yml) and the enhancement label (observed: .github/ISSUE_TEMPLATE/ @ 2026-12-05). However, contributors and maintainers working from an AI agent harness still lacked a guided workflow to shape issues, capture browser screenshots for visual bugs or UI enhancements, and publish them consistently via gh issue create. In addition, GitHub provides no public API for uploading user-attachments/assets images from the CLI, so without a standard attachment flow, screenshots risk either bloating git history or getting skipped.

Decision​

  1. Establish an issue-first planning workflow. Every non-trivial bug fix, enhancement, or new feature starts from a GitHub issue shaped against .github/ISSUE_TEMPLATE/*.yml, using Conventional Commits titles (fix(<scope>): ..., feat(<scope>): ..., docs(<scope>): ...) and matching repository labels (bug, enhancement, feature, plus optional documentation, architecture, refactor).
  2. Ship a unified create-issue multi-agent skill. Store the canonical skill at .agents/skills/create-issue/SKILL.md with supporting references (templates.md mirroring .github/ISSUE_TEMPLATE/*.yml, and screenshots.md detailing capture and attachment), symlink it into .claude/skills/, .codex/skills/, .cursor/skills/, .gemini/skills/, and .opencode/skills/ via relative symlinks (../../.agents/skills/create-issue), and list it in .agents/skills/README.md, AGENTS.md, and CONTRIBUTING.md.
  3. Act as facilitator, never author, and always preview before publishing. The skill routes between Bug, Enhancement, and New Feature, asks targeted clarifying questions instead of inventing reproduction steps or design decisions, shows the full title, labels, and Markdown body, and waits for explicit confirmation before calling gh issue create.
  4. Provide a clean New Feature routing hook. Keep the Bug and Enhancement flows complete inside create-issue, and expose a dedicated New Feature routing branch in SKILL.md so a follow-up feature-shaping / PRD workflow plugs in without restructuring the skill.
  5. Standardize zero-bloat screenshot capture and GitHub attachment.
    • Capture supports three paths: (A) Chrome DevTools MCP (take_screenshot, plus optional list_console_messages and list_network_requests for bugs), (B) claude --chrome or other browser-attached harnesses, and (C) manual local paths or drag-and-drop. Captured files are written only to a temporary directory (/tmp/issue-screenshots/), never inside the repository.
    • Attach publishes the issue via gh issue create first (with <!-- Attach: <path> --> placeholders when local screenshots exist) and then attaches images to GitHub's native user-attachments CDN: either automatically via the authenticated browser harness on the created issue page, or by opening the issue URL (gh issue view <n> --web) with exact local file paths for one-step drag-and-drop, then removing temporary files.
    • Never commit screenshots to git (no docs/assets/, no orphan asset branch, no base64 data URIs) and never upload to third-party image hosts.

Consequences​

  • Contributors and AI agents across Claude Code, Codex, Cursor, Gemini CLI, and OpenCode share one canonical issue-creation workflow aligned with .github/ISSUE_TEMPLATE/*.yml.
  • Bug reports and visual/UI enhancements consistently include visual evidence without bloating the repository or introducing external hosting dependencies or credentials.
  • The New Feature route is reserved and ready for a dedicated feature-shaping workflow without breaking existing Bug and Enhancement triggers.
  • When an automated browser session is not signed in to GitHub, screenshot upload requires one manual drag-and-drop step on the opened issue page.

Alternatives Considered​

  • Commit screenshots to an orphan assets branch or docs/assets/ folder and link via raw.githubusercontent.com. Rejected: bloats git object storage permanently, pollutes repository history/refs, and breaks if branches are pruned.
  • Upload screenshots to a third-party image host (e.g., Imgur, Cloudinary, S3). Rejected: adds external credentials, risks leaking private local vault screenshots to public third-party hosts, and creates link rot.
  • Build three separate skills (create-bug, create-enhancement, create-feature). Rejected: fragments entry points and duplicates routing, preview-before-publish, and screenshot-capture instructions.