github-issue

Manage GitHub Issue operations via `gh issue` API and CLI.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill github-issue-cogni-ai-ou
Or copy as Structured Prompt for Agentā–¼
Please help me install this Agent Skill.
Skill: github-issue
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/github-issue
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill github-issue-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of correctly handling GitHub Issue events by using the proper API/CLI actions, maintaining workspace cleanliness, and routing responses to the right thread.

Core Features & Use Cases

  • Event-aware issue routing: Detects issue comment triggers and ensures responses land in the Issue comment thread (not the PR thread).
  • Native, safe issue operations: Performs labeling, assignment, and description edits using gh issue commands (and close/reopen lifecycle actions when requested).
  • Safety and workspace hygiene guardrails: Prevents accidental local-file comments/commits and enforces cleanup for non-modifying tasks.

Use case: When an agent is triggered by a comment on an Issue, it can apply labels and update the Issue description using gh issue edit, or post a follow-up comment using gh issue comment, without polluting the repository history.

Quick Start

Ask the AI to handle your Issue comment event by labeling Issue #123 with "bug" and posting a short confirmation comment using the GitHub Issue API.

Frequently Asked Questions about github-issue

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub issue labeling and commenting from issue triggers?ā–¼

Yes, you can handle issue comment events by using `gh issue edit` to modify descriptions or apply labels, and `gh issue comment` to post follow-up responses directly in the thread.

What is the best way to keep my repository clean when an agent updates GitHub issues?ā–¼

The best way is to use native API operations that enforce workspace hygiene guardrails, preventing accidental local-file comments and repository commits during issue routing tasks.

Can I use this Skill to manage GitHub Pull Request comments and lifecycle actions?ā–¼

No, this Skill explicitly excludes Pull Request handling and is designed strictly for managing GitHub Issue operations, including labeling, assigning, and editing issue state.

Does this GitHub issue workflow support closing and reopening issues via the CLI?ā–¼

Yes, it supports lifecycle actions for issues such as closing and reopening when requested, using `gh issue` commands to execute these state changes safely via the CLI.

Why are my agent's issue comments polluting the local repository history?ā–¼

This happens when comment content is written to local files instead of routed through the API. This Skill enforces safety rules that avoid committing or writing comment content locally, ensuring workspace cleanliness.