AI Issue Publisher
Stop losing good AI ideas in chat history. Save them to GitHub with one command.
Turn valuable AI conversations into GitHub Issues β with clear ownership and accountability.
AI Issue Publisher is a CLI tool that converts AI-generated ideas from ChatGPT, Claude, Cursor, and other AI assistants into GitHub Issues.
Instead of losing useful suggestions in chat history, you can quickly save them to your project backlog while clearly labeling them as AI-generated drafts.
The AI creates the content. The human decides whether it should become work.
Why AI Issue Publisher?
AI tools generate a large number of potentially useful ideas:
- Feature suggestions
- Bug reports
- Refactoring proposals
- Product improvements
- Technical debt items
Most of these ideas disappear in chat history and never reach the project backlog.
AI Issue Publisher bridges that gap by providing a fast workflow for publishing AI-generated content directly to GitHub while preserving clear responsibility boundaries.
Core Philosophy
Author β Publisher
AI Issue Publisher is built around a simple principle:
- AI authors the content.
- Humans review the content.
- Humans choose whether to publish it.
Publishing is an explicit decision made by a person.
This distinction helps teams avoid confusion about ownership and ensures AI-generated work is always identifiable.
Dedicated AI Identity
Issues are created using a dedicated GitHub account (for example, ai-backlog-bot).
This makes it immediately obvious that:
- The issue originated from AI output.
- A human approved publication.
- The content should be treated as a draft until reviewed.
Features
- π Automatic clipboard reading
- π Automatic Git repository detection
- π Smart title extraction from Markdown (
# Heading)
- π Preview before publishing
- β
Explicit confirmation step
- π€ Dedicated AI bot account support
- β‘ Fast workflow (typically under one minute)
Installation
Option 1: Install via Go
go install github.com/replworks/ai-issue/cmd/ai-issue@latest
Option 2: Build from Source
git clone https://github.com/replworks/ai-issue.git
cd ai-issue
go mod tidy
go build -o ai-issue ./cmd/ai-issue
Optional global installation:
sudo mv ai-issue /usr/local/bin/
Verify installation:
ai-issue --help
ai-issue diagnose
Configuration
Create a Dedicated Bot Account
Recommended:
- Create a GitHub account such as
ai-backlog-bot.
- Generate a Personal Access Token (PAT).
- Grant repository access.
- Configure the token locally.
Set GitHub Token
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
For persistence:
Zsh
echo 'export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' >> ~/.zshrc
Bash
echo 'export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' >> ~/.bashrc
Usage
Typical Workflow
- Copy an AI response to your clipboard.
- Navigate to your Git repository.
- Run:
ai-issue
- Review the generated preview.
- Confirm publication.
That's it.
Commands
ai-issue
Publish the markdown from your clipboard as a new GitHub Issue.
ai-issue diagnose
Check Git availability, repository resolution, publisher validation, clipboard availability, and token configuration.
ai-issue --help
Display command help.
Example
AI Output
# Add timestamps to logging system
Current logs do not contain timestamps, making debugging difficult.
Acceptance Criteria
- Include UTC timestamps
- Preserve current log format
- Add tests
Command
ai-issue
Preview
Repository: yourname/project
Title: Add timestamps to logging system
Body preview:
Current logs do not contain timestamps, making debugging difficult.
**Publisher:** @ai-backlog-bot
This issue will be created by ai-backlog-bot account.
Create Issue? (Y/n):
Result
β
Issue created successfully!
https://github.com/yourname/project/issues/42
Troubleshooting
GITHUB_TOKEN is required
Configure the environment variable:
export GITHUB_TOKEN=...
Repository could not be determined
Run the command inside a Git repository.
Permission denied
Verify that the bot account has access to the target repository.
Clipboard is empty
Copy the AI-generated content before running the command.
Need more details?
Run:
ai-issue diagnose
Project Structure
ai-issue/
βββ cmd/
β βββ ai-issue/
βββ internal/
β βββ adapter/
β βββ cli/
β βββ compliance/
β βββ construction/
β βββ domain/
β βββ extraction/
β βββ preview/
β βββ publisher/
β βββ repository/
βββ .goreleaser.yml
βββ ARCHITECTURE.md
βββ FRAMEWORK.md
βββ LICENSE
βββ PRODUCT_SPEC.md
βββ README.md
βββ TASKS.md
Development
Run Tests
go test ./...
Release
This project uses GoReleaser for GitHub Releases.
Install:
go install github.com/goreleaser/goreleaser@latest
Snapshot release:
goreleaser release --snapshot --clean
Production release:
goreleaser release
- macOS (arm64, amd64)
- Linux (arm64, amd64)
- Windows (amd64)
License
MIT License
Built for AI-native developers who believe that AI can generate ideas, but humans remain responsible for deciding what gets shipped.