.agents/skills/work-issue-intake/SKILL.md

Collect issue context

Read the entry point's shared rules. This stage is read-only.

Input: an issue number/URL, or an unambiguous issue selected in the conversation. Ask if missing; do not select an arbitrary open issue.

  1. Confirm the factory Git remote and that the selected URL belongs to je3yk/software-factory and identifies an issue, not a PR. Use authenticated GitHub access, preferably gh; report inaccessible content as a blocker.

  2. Read the issue's title, body, author, labels, state, and timestamps. Fetch all comment pages, retaining authors, timestamps, and permalinks. With resolved repository and issue values:

    gh issue view "$ISSUE" --repo "$REPO" --json number,url,title,body,author,labels,state,createdAt,updatedAt
    gh api --paginate "repos/$REPO/issues/$ISSUE/comments?per_page=100"
    
  3. Read relevant linked specifications and existing PRs. Distinguish current requirements from superseded or conflicting comments; ask about conflicts that change the outcome.

  4. If the issue is closed or already has an implementation PR, report it and agree whether to resume or do follow-up work. Do not reopen it or create duplicate work automatically.

Handoff: issue URL/state, a complete comment/context summary with source permalinks, existing implementation references, and unresolved questions. When context is complete and no decision blocks progress, return to the entry point for solution definition; do not implement here.

Original Markdown, including metadata
---
name: work-issue-intake
description: Collect a selected software-factory issue and all comments for the internal work-issue workflow. Use before defining a solution when issue context is missing or incomplete.
---

# Collect issue context

Read the [entry point's shared rules](../work-issue/SKILL.md). This stage is read-only.

**Input:** an issue number/URL, or an unambiguous issue selected in the conversation. Ask if missing; do not select an arbitrary open issue.

1. Confirm the factory Git remote and that the selected URL belongs to `je3yk/software-factory` and identifies an issue, not a PR. Use authenticated GitHub access, preferably `gh`; report inaccessible content as a blocker.
2. Read the issue's title, body, author, labels, state, and timestamps. Fetch **all** comment pages, retaining authors, timestamps, and permalinks. With resolved repository and issue values:

   ```sh
   gh issue view "$ISSUE" --repo "$REPO" --json number,url,title,body,author,labels,state,createdAt,updatedAt
   gh api --paginate "repos/$REPO/issues/$ISSUE/comments?per_page=100"
   ```

3. Read relevant linked specifications and existing PRs. Distinguish current requirements from superseded or conflicting comments; ask about conflicts that change the outcome.
4. If the issue is closed or already has an implementation PR, report it and agree whether to resume or do follow-up work. Do not reopen it or create duplicate work automatically.

**Handoff:** issue URL/state, a complete comment/context summary with source permalinks, existing implementation references, and unresolved questions. When context is complete and no decision blocks progress, return to the entry point for solution definition; do not implement here.