Create Issue
Create a new GitHub issue with formatted description, labels, and optional reference links
- Type
- Slash Command
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/minister/commands/create-issue.md
What Create Issue is
Create Issue is a slash command published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Create Issue gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Create Issue
Claude Code
- Download create-issue.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/minister/commands/create-issue.md, shared under the repository's MIT license. Read the full file on GitHub.
Creates a new GitHub issue in the current repository (or specified repo) with formatted description, labels, assignees, and optional reference links to related issues, PRs, or documentation.
Arguments
- - Issue title (wrap in quotes if it contains spaces)
- --body - Issue body/description (wrap in quotes)
- --labels ... - One or more labels to apply
- --assignee - GitHub username to assign
- --milestone - Milestone name or number
- --project - Add to GitHub Project (name or number)
- --refs ... - Reference URLs to include in the issue body
- --repo <owner/repo> - Create in specific repository (default: current)
- --template - Use interactive template mode with guided prompts
Workflow
Phase 1: Parse Arguments
- Extract Title
The first positional argument is the title. If no flags follow, the entire argument string is the title.
- Parse Optional Flags
Extract all optional parameters from the command arguments.
- Determine Target Repository
# If --repo not specified, use current repository
gh repo view --json owner,name -q '"\(.owner.login)/\(.name)"'Phase 2: Build Issue Body
Construct the issue body from the provided description and references.
Body Structure
${body_text}
${references_section}References Section
If --refs URLs are provided, analyze and categorize them:
Use the WebFetch tool to retrieve metadata for each URL:
- GitHub issue URLs → Extract issue number, title, status
- GitHub PR URLs → Extract PR number, title, status
- Documentation URLs → Extract page title
- Other URLs → Use raw URL with domain name
Format as a "Related Links" section:
## Related Links
- [#123: Original feature request](https://github.com/owner/repo/issues/123)
- [PR #456: Initial implementation](https://github.com/owner/repo/pull/456)
- [Design Doc: Architecture](https://example.com/docs/architecture)Phase 3: Interactive Template Mode (Optional)
When --template flag is used, guide the user through structured prompts:
Use the AskUserQuestion tool for each section:
1. **Issue Type**
Options: "Bug", "Feature", "Enhancement", "Documentation", "Question"
2. **Description Prompts** (based on type):
For Bug:
- What is the expected behavior?
- What is the actual behavior?
- Steps to reproduce?
- Environment details?
For Feature/Enhancement:
- What problem does this solve?
- Proposed solution?
- Acceptance criteria?
- Alternatives considered?
…The template mode builds the full gh issue create command from responses.
Phase 4: Create Issue
Execute the GitHub CLI command to create the issue:
gh issue create \
--repo "${repo}" \
--title "${title}" \
--body "${body}" \
${labels:+--label "$labels"} \
${assignee:+--assignee "$assignee"} \
${milestone:+--milestone "$milestone"} \
${project:+--project "$project"}Command Construction Notes:
- Use --body-file if body is long (>500 chars) to avoid shell limits
- Multiple labels: --label "bug" --label "needs-triage"
- Escape quotes in title/body properly
Phase 5: Post-Creation Actions
After successful creation, perform follow-up actions:
- Capture Issue URL
gh issue create [...] --json url,number -q '"\(.number): \(.url)"'- Display Summary
Created issue #${number}
Title: ${title}
URL: ${url}
Labels: ${labels}
Assigned: ${assignee}- Optional: Add to Project Board
If --project specified:
gh project item-add ${project_number} --url ${issue_url}- Optional: Link Related Issues
If --refs contains GitHub issue/PR URLs, add automatic cross-references:
# For each GitHub ref URL
gh issue comment ${ref_number} --body "Related: ${new_issue_url}"Examples
Example 1: Simple Issue
/create-issue "Fix login timeout on slow connections"Result:
Created issue #234
Title: Fix login timeout on slow connections
URL: https://github.com/athola/skrills/issues/234Example 2: Full Issue with Labels and References
/create-issue "Add MCP analytics dashboard" \
--body "Create a web dashboard showing skill usage metrics and recommendations" \
--labels "enhancement" "mcp" \
--assignee "athola" \
--refs "https://github.com/athola/skrills/issues/21" \
"https://example.com/docs/analytics-spec" Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Create Issue?
Create Issue is a slash command for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Create a new GitHub issue with formatted description, labels, and optional reference links
How do I install Create Issue in Claude Code?
Download create-issue.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Create Issue in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Create Issue safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Hookify Create behavioral rules to prevent unwanted actions Slash Command · athola/claude-night-market
- Karpathy Check Pre-flight gate walking four Karpathy principles (think first, simplicity, surgical edits, goal-driven). Use before implementation. Slash Command · athola/claude-night-market
- Justify Audit changes for additive bias, Iron Law compliance, and minimal intervention. Justifies every change against a "simplest safe change" standard. Slash Command · athola/claude-night-market
- Implementation Executor Execute implementation tasks systematically following the task plan with Subagent · athola/claude-night-market
- Create Skill Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure. Slash Command · athola/claude-night-market
- Create Hook Create hooks with brainstorming and security-first design Slash Command · athola/claude-night-market
- Dig Interactively refine research results by searching deeper into a specific subtopic or channel. Requires an active research session from /tome:research. Slash Command · athola/claude-night-market
- Create Command Create slash commands with brainstorming and best practices Slash Command · athola/claude-night-market