# Gh Issue Comment

> Add, edit, or delete GitHub issue comments using gh CLI.

- Skill: `dceoy/gh-issue-comment` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dceoy/gh-issue-comment`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dceoy/gh-issue-comment/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dceoy (https://skillmd.com/u/dceoy)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dceoy/gh-issue-comment

---


# GitHub Issue Comment

## When to use

- The user asks to comment on an issue or post an update.
- You need to edit or delete your last comment.

## Inputs to confirm

- Issue number or URL.
- Comment body (or file path).
- Whether to edit/delete the last comment.

## Workflow

1. Verify auth:
   ```bash
   gh --version
   gh auth status
   ```
2. Post a comment:
   ```bash
   gh issue comment 123 --body "Status update: fix in progress"
   gh issue comment 123 --body-file update.md
   ```
3. Edit or delete last comment if requested:
   ```bash
   gh issue comment 123 --edit-last --body "Updated info"
   gh issue comment 123 --delete-last --yes
   ```
4. Confirm:
   ```bash
   gh issue view 123 --comments
   ```

## Examples

```bash
# Quick update
~ gh issue comment 123 --body "Working on this now."

# Edit last comment
~ gh issue comment 123 --edit-last --body "Revised ETA: tomorrow."
```

## Notes

- Without `--body`/`--body-file`, `gh` opens an interactive prompt.
- `--web` opens the browser for composing a comment.

## References

- GitHub CLI manual: https://cli.github.com/manual/
- `gh issue comment --help`

