Create a spec from a GitHub issue using speckit
Generates specifications from GitHub issues by fetching details and formatting them for speckit.
/plugin marketplace add mintuz/claude-plugins/plugin install core@mintuz-claude-plugins<issue-number>Create a specification from a GitHub issue by fetching it via gh CLI and passing it to speckit's specify command.
$ARGUMENTS - GitHub issue number (required)
Ensure $ARGUMENTS contains a valid issue number:
/spec-from-issue 51)"Use gh CLI to fetch the issue details:
gh issue view $ARGUMENTS --json title,body,number,url
Extract:
If the command fails (e.g., issue doesn't exist, not in a repo, gh not authenticated):
gh auth login" or "Navigate to a git repository")Prepare the content to pass to speckit:
# GitHub Issue #<number>: <title>
**Source:** <url>
## Description
<body>
Call the speckit specify command with the formatted content:
/speckit.specify
<formatted content from step 3>
This will hand off to speckit's specify workflow, which will guide the user through creating a proper specification.
User: /spec-from-issue 51
Claude: Fetches issue #51, formats it, and passes to /speckit.specify
User: /spec-from-issue 123
Claude: Fetches issue #123, shows formatted content, invokes speckit